hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: java.net.ConnectException: Connection refused: connect
Date Sat, 10 May 2008 11:34:59 GMT
On Fri, 2008-05-09 at 03:19 -0700, ghan_java wrote:
> i have build a request to connect a third party , when i put this request at
> address bar in browser , i got proper response. 
> 
> but if i tried same thing using HttpClient.  
> We are tying to send request through API : Apache – HttpClient to value
> first server using following detail :
> 
> Host: api.myvaluefirst.com( a third party service provider )
> Port: 80
> Method: “GET”
> Http version: 1.0
> 
> But we got a following exception 
> 
> apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> 
> java.net.ConnectException: Connection refused: connect
>  
> Should we need local-host Address and local-port?
> should i need some more setting ..
> 
> please guide me .
> 

Are you sure the browser has not been configured to send requests via an
HTTP proxy?

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message