On Dec 4, 2007 6:57 PM, Saurabh AMBASTA
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a website which opens with when pinged with IE or Firefox. However,
> when I try to send a request with the http client, I get a socket closed
> exception.
>
> I have tried to set the same headers as sent by Mozilla but still not able
> to solve this issue.
>
Do you access these sites in your browser through a proxy??If yes then
you will have to set up http client to use that proxy.

httpclient.getHostConfiguration().setProxy("myproxyhost", 8080);
  httpclient.getState().setProxyCredentials("my-proxy-realm", " myproxyhost",
  new UsernamePasswordCredentials("my-proxy-username", "my-proxy-password"))

-- 
Puneet
http://sahyog.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to