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=38003>. 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=38003 ------- Additional Comments From [EMAIL PROTECTED] 2005-12-22 10:41 ------- Peter, An absolute request URI _always_ overrides the corresponding HostConfiguration settings. If you want to set a virtual host for a given physical one please use HostParams http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/params/HostParams.html#setVirtualHost(java.lang.String) HttpClient httpclient = new HttpClient(); HostConfiguration hostconf = new HostConfiguration(); hostconf.setHost("www.google.com"); hostconf.getParams().setVirtualHost("www.google.nz"); // Must be a relative URL!!! GetMethod httpget = new GetMethod("/"); try { httpclient.executeMethod(hostconf, httpget); // do stuff } finally { httpget.releaseConnection(); } 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]
