wrote:
>
> Daniel Pitts wrote:
>
>> wrote:
>>>
>>> I am beginner in httpunit i am trying to get resonse from a
>>> remote host, but i am not able to get it
>>>
>>> the error is
>>> connnection Exception: connection refused; connect
>>>
>>> how can i resolve it
>>
>> Make sure a few things: 1. The remote host is listening on the port
>> you are trying to connect to (often 80, or 8080) 2. The host you
>> are connecting to is reachable from the host you are on. (using
>> ping, for instance) 3. You are specifying the correct host name and
>> port.
>>
>
> How to make sure the remote host is listening to the port i am
> connecting, iam just giving the url from which i want the response.
>
You say you can reach this remote host using a web-browser? Does the
web-browser have a local http-proxy configured?
In Internet Explorer, select the "Tools" menu, "Internet Options",
"Connections", "LAN Settings" and see if the "Proxy" is ticked.