The issue of custom DNS resolver has been discussed on several
occasions. The consensus was (if my memory does not fail me) that domain
name resolution was clearly out of HttpClient's scope. Instead we have
provided a way to plug in a custom DN resolution mechanism by supporting
virtual host names in the target host's configuration.

HostConfiguration hostconfig = new HostConfiguration();
hostconfig.setHost("127.0.0.1", "www.whatever.com", 80,
        Protocol.getProtocol("http"));
HttpClient agent = new HttpClient();
agent.setHostConfiguration(hostconfig);

This can also be done on individual methods using HttpMethod.getHostConfiguration().setHost(...).


Mike


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to