You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2005/10/21 14:24:29 UTC
DO NOT REPLY [Bug 37197] New: -
Preemptive auth flags disregarded during ssl tunnel creation
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: httpclient-dev@jakarta.apache.org
ReportedBy: wolman@gmail.com
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: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org