hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Wilson <tecywiz...@hotmail.com>
Subject RedirectStrategy and HttpHost
Date Fri, 08 Apr 2016 16:12:52 GMT
Hey httpclient-users,

I've got another question for you!

To make requests to a particular IP with a certain host I'm using:

	HttpClient.execute(HttpHost tgt, HttpRequest req)

For example I'd give as the target, while the request points 
to www.example.com. This works fine and dandy (as long as I don't use -1 
as the port, but that's another issue.)

Now, I'd also like to similarly override the target when handling HTTP 
redirects, but alas RedirectStrategy.getRedirect only returns a request. 
How should I achieve what I want?

I'm probably missing something really dumb here, so please forgive me if 
I am.


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

View raw message