def set_cookie(name, domain, value = "", path = "/", httponly = false, expires = "")
			sig = encode(GrabzIt::Utility.nil_check(@applicationSecret)+"|"+GrabzIt::Utility.nil_check(name)+"|"+GrabzIt::Utility.nil_check(domain)+
			"|"+GrabzIt::Utility.nil_check(value)+"|"+GrabzIt::Utility.nil_check(path)+"|"+GrabzIt::Utility.b_to_str(httponly)+
			"|"+GrabzIt::Utility.nil_check(expires)+"|0")

			qs = "key="
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(@applicationKey)))
			qs.concat("&domain=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(domain)))
			qs.concat("&name=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(name)))
			qs.concat("&value=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(value)))
			qs.concat("&path=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(path)))
			qs.concat("&httponly=")
			qs.concat(GrabzIt::Utility.b_to_str(httponly))
			qs.concat("&expires=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(expires)))
			qs.concat("&sig=")
			qs.concat(sig)

			return (get_result_value(get(@protocol + WebServicesBaseURLGet + "setcookie.ashx?" + qs), "Result") == TrueString)
		end
def set_cookie(name, domain, value = "", path = "/", httponly = false, expires = "")
			sig = encode(GrabzIt::Utility.nil_check(@applicationSecret)+"|"+GrabzIt::Utility.nil_check(name)+"|"+GrabzIt::Utility.nil_check(domain)+
			"|"+GrabzIt::Utility.nil_check(value)+"|"+GrabzIt::Utility.nil_check(path)+"|"+GrabzIt::Utility.b_to_str(httponly)+
			"|"+GrabzIt::Utility.nil_check(expires)+"|0")

			qs = "key="
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(@applicationKey)))
			qs.concat("&domain=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(domain)))
			qs.concat("&name=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(name)))
			qs.concat("&value=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(value)))
			qs.concat("&path=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(path)))
			qs.concat("&httponly=")
			qs.concat(GrabzIt::Utility.b_to_str(httponly))
			qs.concat("&expires=")
			qs.concat(CGI.escape(GrabzIt::Utility.nil_check(expires)))
			qs.concat("&sig=")
			qs.concat(sig)

			return (get_result_value(get(@protocol + WebServicesBaseURLGet + "setcookie.ashx?" + qs), "Result") == TrueString)
		end
Sets a new custom cookie on GrabzIt, if the custom cookie has the same name and domain as a global cookie the global

 cookie is overridden
 @note This can be useful if a websites functionality is controlled by cookies
 @param name [String] the name of the cookie to set
 @param domain [String] the domain of the website to set the cookie for
 @param value [String, ''] the value of the cookie
 @param path [String, '/'] the website path the cookie relates to
 @param httponly [Boolean, false] is the cookie only used on HTTP
 @param expires [String, ''] when the cookie expires. Pass a nil value if it does not expire
 @return [Boolean] returns true if the cookie was successfully set
 @raise [RuntimeError] if the GrabzIt service reports an error with the request it will be raised as a RuntimeError