Hi, Just to clarify, at what level should I be setting the 'http.route.local-address' parameter?
Would you advise using a separate HttpClient for this, or a separate ConnectionManager, or can it simply be set on each request? I am looking for the most efficient solution, not necessarily the cleanest/easiest. Thanks, Tony > Message du 17/12/09 02:29 > De : "Tony Poppleton" > A : "HttpClient User Discussion" > Copie à : > Objet : Re: Using multiple IP addresses > > > Thanks, that is much easier than expected! > Tony > > > > Message du 16/12/09 21:44 > > De : "Oleg Kalnichevski" > > A : "HttpClient User Discussion" > > Copie à : > > Objet : Re: Using multiple IP addresses > > > > > > Tony Poppleton wrote: > > > Hi Christine, > > > > > > I am just looking for the simplest solution. Using one http client and > > > one connection manager would be nice, although not necessary if that is > > > overcomplicated. > > > > > > Thanks, > > > Tony > > > > > > > > > > 'http.route.local-address' parameter is your friend. > > > > http://hc.apache.org/httpcomponents-client/tutorial/html/connmgmt.html#d4e473 > > > > Oleg > > > > > > > >> Message du 15/12/09 14:30 > > >> De : "Christine Karman" > > >> A : "HttpClient User Discussion" > > >> Copie à : > > >> Objet : Re: Using multiple IP addresses > > >> > > >> > > >> Tony Poppleton wrote: > > >>> Hi, > > >>> > > >>> I have two IP addresses on my computer, and would like to send out > > >>> requests on both using a single Java application and HttpClient. Is > > >>> this possible? I.e. one request sent out from the first IP, and the > > >>> next request sent out from the second IP. > > >>> > > >> Do you want one instance of HttpClient to do so, and one > > >> connectionManager? > > >> > > >> dagdag > > >> Christine > > >>> Thanks, > > >>> Tony > > >>> > > >> > > >> -- > > >> dagdag is just a two-character rotation of byebye. > > >> > > >> > > >> --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: [email protected] > > >> For additional commands, e-mail: [email protected] > > >> > > >> --------------------------------------------------------------------------------------- > > >> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail. > > >> Aucun virus connu a ce jour par nos services n'a ete detecte. > > >> > > >> > > >> > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > --------------------------------------------------------------------------------------- > > Orange vous informe que cet e-mail a ete controle par l'anti-virus mail. > > Aucun virus connu a ce jour par nos services n'a ete detecte. > > > > > > > > --------------------------------------------------------------------------------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. >
