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: how to set (local) source port?
Date Thu, 30 Apr 2009 20:22:34 GMT
John Walton wrote:
> I need to set the local source port on outbound connections with httpclient 4.0.
> 
> I can see the PlainSocketFactory includes the localport number in a
> connectSocket call.
> 
> Can anyone help with any hints on how to get the local port set?
> 
> Thanks,
> JW
>


Use 'http.route.local-address' parameter. For details see the section on 
  HTTP connection routing of the HttpClient tutorial:

http://wiki.apache.org/HttpComponents/HttpClientTutorial

Oleg

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


---------------------------------------------------------------------
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