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 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|RESOLVED |REOPENED Resolution|INVALID | Summary|Explicity Set Host Is Being |Redesign virtual host API |Ignored | Target Milestone|--- |4.0 ------- Additional Comments From [EMAIL PROTECTED] 2005-12-22 13:49 ------- (In reply to comment #5) > HttpClient httpclient = new HttpClient(); > HostConfiguration hostconf = new HostConfiguration(); > // or whatever IP you wish > hostconf.setHost("127.0.0.1"); ... > GetMethod httpget = new GetMethod("http://google.com/"); > try { > httpclient.executeMethod(hostconf, httpget); > System.out.println(httpget.getResponseBodyAsString()); > } finally { > httpget.releaseConnection(); > } > Folks, Actually, come to think of it, this does seem to be a better way of handling virtual hosts. Let us revisit this discussion in the course of the 4.0 API redesign 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]
