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: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to