http header values
In order to access websites with domain protection, I need to set the Referer: value in the http header .
Your String openURL(URL url, String userAgent, Map<String,String> cookies) correctly sets the UserAgent:
but when I set
def cookies = [Referer: "http://www.cricfree.tv"]
wireshark shows the header as
Cookies: Referer=http://www.cricfree.tv\r\n
rather than the required
Referer: http://www.cricfree.tv\r\n
How do I set the Referer value?
Your String openURL(URL url, String userAgent, Map<String,String> cookies) correctly sets the UserAgent:
but when I set
def cookies = [Referer: "http://www.cricfree.tv"]
wireshark shows the header as
Cookies: Referer=http://www.cricfree.tv\r\n
rather than the required
Referer: http://www.cricfree.tv\r\n
How do I set the Referer value?