Proxy authentication not working when using HTTPS
-------------------------------------------------

                 Key: AXIS2C-1555
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1555
             Project: Axis2-C
          Issue Type: Bug
          Components: transport/http
    Affects Versions: 1.6.0
            Reporter: Halewijn Geerts


Proxy authentication is not working when using HTTPS. A Proxy without 
authentication does work when axis2c was build without curl. In a build with 
curl, proxy is ignored ( with or without authentication ). 

For build without curl: 

- In http_sender.c, axis2_http_client_recieve_header is called after 
axis2_http_client_send without checking if send call succeeded.

- In http_client.c, axis2_http_client_connect_ssl_host : 

proxy authentication data should be passed in connect_string:

if ( inAuthenticationString )
{
    connect_string = AXIS2_MALLOC( env->allocator,
                                                             
axutil_strlen(host) * sizeof(axis2_char_t) +
                                                             
axutil_strlen(inAuthenticationString) * sizeof(axis2_char_t) +
                                                             50 * 
sizeof(axis2_char_t) );
    sprintf(connect_string, "CONNECT %s:%d HTTP/1.0\r\nProxy-Authorization: 
%s\r\n\r\n", host, port, inAuthenticationString );
}
else
{
    connect_string = AXIS2_MALLOC( env->allocator,
                                                            axutil_strlen(host) 
* sizeof(axis2_char_t) +
                                                            30 * 
sizeof(axis2_char_t) );
    sprintf(connect_string, "CONNECT %s:%d HTTP/1.0\r\n\r\n", host, port);
}


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to