views:

84

answers:

1

Hello all,

I am trying to get the response from a URI using httpclient and httpget. when i am trying to execute the httpclient.execute method it is giving me the http host connect exception. However when i am passing the same URI to the XML parsing code as inputstream the code works fine. Does someone has any idea on the problem.. Help appreciated in advance

vaibhav

A: 

Are you behind a proxy? The HttpClient library probably uses a different way to configure the proxy than the XML library you are using. The following links may be useful, depending on the version of HttpClient you are using.