Hi Telvis,

I've used your solution but getting some problem. I'm getting my proxy ip
address instead of host (like google.com) ip address. I have set the proxy
but still getting the same ip:
Following is the code where I'm setting proxy and using your code:

        ClientConnectionManager conman = new AladoClientConnectionManager()
        HttpHost proxy = new HttpHost("<proxy-name>", <port>, "http")
        HttpParams params = new BasicHttpParams()
        params.setParameter(ClientPNames.HANDLE_REDIRECTS, false)
        params.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy)
        DefaultHttpClient httpclient = new DefaultHttpClient(conman, params)
        //httpclient.getParams().setParameter(ClientPNames.HANDLE_REDIRECTS,
false)
        //httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,
proxy)
        httpclient.getCredentialsProvider().setCredentials(new
AuthScope("<proxy-name>", <port>), new
UsernamePasswordCredentials("<proxy-user>", "<password>"))

Also when i print the context in the Custom client operator class i'm
getting the proxy params correctly. Please let me know if you need some
additional info. 



--
View this message in context: 
http://httpcomponents.10934.n7.nabble.com/get-InetAddress-for-the-HTTP-TARGET-HOST-tp18332p19322.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to