title: Axis2 NTLM Authentication for Proxy-Server
body: <p>What is the correct way to authenticate an Axis2 (Version 1.4) Client at a http proxy server that requires NTLM authentication?</p>
  
  <p>I'm using the following code to provide the proxy credentials, but the authentication still fails (see details at the end):</p>
  
  <pre><code>Options options = serviceStub._getServiceClient().getOptions();
  options.setProperty(HTTPConstants.CHUNKED, false);
  options.setProperty(HTTPConstants.PROTOCOL_VERSION, HTTPConstants.HEADER_PROTOCOL_10);
  
  ProxyProperties proxyProperties = new ProxyProperties();
  proxyProperties.setProxyName("123.123.123.123");
  proxyProperties.setProxyPort(8080);
  proxyProperties.setUserName("myUser@www.example.org");
  proxyProperties.setPassWord("1234");
  proxyProperties.setDomain("");
  options.setProperty(HTTPConstants.PROXY, proxyProperties);
  </code></pre>
  
  <p>With exactly the same credentials, a webbrowser, such as Firefox is able to get trough the proxy, so I assume, the proxy server is correctly set up. With the Axis2 client however, the authentication failes (HTTP status code is "407 Proxy Authentication Required").</p>
  
  <p>Further details:
  I compared the network traffic from firefox and my client using a network sniffer. The main difference seems to be, that the axis2 client is sending an empty response for the ntlm challenge.</p>
  
  <p>Has anyone successfully authenticated at a http proxy server using NTLM? Can you give me a code example?</p>