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=37197>. 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=37197 Summary: Preemptive auth flags disregarded during ssl tunnel creation Product: HttpClient Version: 3.0 RC4 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Commons HttpClient AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Using a Squid2.4 proxy, the connection is dropped when trying to connect to a ssl site. In order for the connection to remain open, preemptive authorization is needed for the proxy. The preemptive authorization flags are not propagated down to where the ssl tunnel is created in HttpMethodDirectors executeConnect method. A new ConnectMethod object is created for the tunnel but the preemptive flags set as parameters are not being set on the new ConnectMethod object. Here is the code that would replicate the problem using a Squid(2.4) proxy : HttpClient client = new HttpClient(); client.getHostConfiguration().setProxyHost(new ProxyHost("someproxy", 3128)); client.getParams().setAuthenticationPreemptive(true); client.getState().setProxyCredentials(AuthScope.ANY, new UsernamePasswordCredentials("user", "password")); GetMethod httpget = new GetMethod("https://www.verisign.com/"); httpget.getProxyAuthState().setPreemptive(); client.executeMethod(httpget); httpget.releaseConnection(); -- 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]
