DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37161>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37161 ------- Additional Comments From [EMAIL PROTECTED] 2005-10-19 14:43 ------- (In reply to comment #5) > Thanks a lot. > > httpConnectionManager.setParams(httpConnectionManagerParams); > > does the trick. As for > > hostConfiguration.setHost("localhost", 8080); > > it seems to work fine even without it. Because in fact new HostConfiguration() has absolutely the same effect as HostConfiguration.ANY_HOST_CONFIGURATION, just less readable In the real app I don't know to which > host I'm going to connect, but I know that I have to use a certain proxy and > local address. That's why I try to use > > HostConfiguration hostConfiguration = new HostConfiguration(); > > hostConfiguration.setProxyHost(proxyHost); > hostConfiguration.setLocalAddress(localAddress); > > httpClient.setHostConfiguration(hostConfiguration); > > I could set the parameters for the ANY host configuration, but that might > affect other managers which should use other http proxies. It will not, as long as you set this parameter on a particular instance of HttpConnectionManager I guess what I need > is not possible as some separate ProxyConfiguration/LocalAddressConfiguration > config classes might be necessary but please correct me if I'm wrong. > You can have as many specific HostConfiguration instances per any given host/proxt combo as you please. In all other cases pool settings associated with HostConfiguration#ANY_HOST_CONFIGURATION will apply Oleg -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
