hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Cruise <a...@cluonflux.com>
Subject Re: How do you simulate clicking on a hyperlink?
Date Mon, 30 Jan 2006 02:44:50 GMT
JYurow@aol.com wrote:
> I was about to go to the  HttpClient API 
> to see how to read different parts of the header after using  GetMethod to 
> fetch the index.html page.  Then I will have to work out how  to set the Referer 
> to the proper value before fetching the logon.htm page.
>   
You don't have to read anything, you just have to set a header on the 
second request.  You need getMethod.setHeader("Referer", url1);

You don't even need to visit url1 first; url2 can't tell the difference.

-0xe1a

---------------------------------------------------------------------
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