I have a use case that I am trying to find the best approach for.
Basically I'll be hitting multiple URIs where some URIs will need different
proxy configurations. I am using HttpClient 4.2.3.
What I'm trying to figure out is this:
When I setup an HttpClient is setup the proxy like this:
HttpHost proxy = new HttpHost("my.proxy.host", 80, "http");
httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,
proxy);
This says to me that I should create a separate HttpClient per unique proxy
configuration and then send requests to specific clients. If thats the
case, is it ok to pass all of those clients the same Pooling connection
manager instance?
If not is there a way to have multiple proxy configurations within the same
client (or per each request) (this seems to be possible later version, but
I'm a bit locked into this version unfortunately)
Any help appreciated...
Thanks,
Steve