hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ossf...@dubioso.net>
Subject Re: Another Form-problem, cookies?
Date Thu, 29 Nov 2007 16:21:42 GMT
distortion wrote:
> 
> Did some scanning with WireShark and noticed that when i log in to the site
> using Firefox the GET /my.php, which is redirected from /login.php, the
> http-packet contains a Referer, that says:
> Referer: http://www.torrentbytes.net/login.php\r\n
> 
> And when i attempt the same thing with my Java-program the http-packet for
> GET /my.php doesn't have any Referer at all, so I'm guessin' that this is
> what's causing my problems. Is it possible to send a Referer-attribute or
> something?

Sure:
http://jakarta.apache.org/httpcomponents/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpMethod.html#setRequestHeader(java.lang.String,%20java.lang.String)

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message