[ https://issues.apache.org/jira/browse/AXIS2-4050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666100#action_12666100 ]
Andreas Veithen commented on AXIS2-4050: ---------------------------------------- One problem I see in the ProxyConfiguration in the HTTP transport is the following piece of code: String host = System.getProperty(HTTP_PROXY_HOST); if (host != null) { this.setProxyHost(host); proxyCred = new UsernamePasswordCredentials("",""); } This is executed _after_ the HttpTransportProperties.ProxyProperties processing. This means that whenever the http.proxyHost system property is set, the username and password used for proxy authentication will always be empty. > client proxy authentication failed, screwed up http headers > ----------------------------------------------------------- > > Key: AXIS2-4050 > URL: https://issues.apache.org/jira/browse/AXIS2-4050 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: transports > Affects Versions: 1.4 > Environment: Linux debian etch > Reporter: Stefan Lischke > Assignee: Dimuthu Leelarathne > Priority: Blocker > Fix For: nightly > > > (see also http://markmail.org/message/lvabtbivnwuptfm2) > trying to connect an Axis2 Client to a Web Service through a proxy with > authentication. > Tried with > System.setProperty("http.... > and also with > HttpTransportProperties.ProxyProperties.. > I see those configuration enables proxy, but does screw up the > proxy-authentication. Here is the Request HTTP POST > POST http://xxxxxxxxxxxxxxxxxxxxx HTTP/1.0\r\n > Request Method: POST > Request URI: http://xxxxxxxxxxxxxxxxxxxxxxxxx > Request Version: HTTP/1.0 > Content-Type: text/xml; charset=UTF-8\r\n > SOAPAction: "http://xxxxxxxxxxxxxxxxx"\r\n > User-Agent: Axis2\r\n > Proxy-Connection: Keep-Alive\r\n > Content-Length: 5098 > Proxy-Authorization: Basic Og==\r\n > Credentials: : > Host: xxxxxxxxx:4711\r\n > \r\n -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.