Hello, > AFAIK, it is the HttpMethod instances, through multiple > HttpConnections, that connect to various hosts. If so, could anyone > pls explain what is HttpClient.getHostConfiguration used for? After > all, an HttpClient shouldn't be associated with any specific host, > correct?
Every connection is made based on a HostConfiguration, which tells HttpClient what proxy to use or what local address. Also, you can create a method with a relativ URL that doesn't specify the host. The HostConfiguration in the HttpClient is the default host config for relative URLs. hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
