hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trinh Quocan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCLIENT-592) https connection establishment with ISA NTLM proxy
Date Wed, 02 Aug 2006 14:55:16 GMT
    [ http://issues.apache.org/jira/browse/HTTPCLIENT-592?page=comments#action_12425253 ] 
            
Trinh Quocan commented on HTTPCLIENT-592:
-----------------------------------------

is also modified :

>      try {
        if (this.connectMethod.getResponseBodyAsStream() != null) {
          this.connectMethod.getResponseBodyAsStream().close();
        }
>      }
>      catch (IOException ex) {
>        if (!internalcose) {
>          throw ex;
>        }
>      }

to manage close exception

> https connection establishment with ISA NTLM proxy
> --------------------------------------------------
>
>                 Key: HTTPCLIENT-592
>                 URL: http://issues.apache.org/jira/browse/HTTPCLIENT-592
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient, HttpConn
>    Affects Versions: 3.1 Alpha 1
>         Environment: NTLM proxy
>            Reporter: Trinh Quocan
>
> httpclient tries to connect to a proxy to acces to through https
> httpclient first uses a connect request without authentification, when proxy requires
authentification, httpclient then sends the same request with authentication, but using the
same socket
> in some cases proxy doesn't answer to validate authentification... but when another socket
is used to send connect request with authentification, then that works
> this piece of code is modified,
> package : org.apache.commons.httpclient
> classe : HttpMethodDirector :
> methode : executeConnect
> >    boolean internalcose = true;
>     for (;;) {
>       if (authstate.isAuthRequested()) {
>         if (processAuthenticationResponse(this.connectMethod)) {
>           retry = true;
> >          /*
> close the socket used to send request without authentification, the next loop will reopen
another one  */
> >          if (internalcose) {
> >            this.conn.close();
> >         }
> >          internalcose = !internalcose;
>         }
>       }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message