title: Authentication fails in HttpClient but OK in browser
body: <p>I'm using <code>HttpClient 4.0</code> to get some XML from the remote host. When I use URL such as <a href="https://user:pwd@www.somesite.com" rel="nofollow noreferrer">https://user:pwd@www.somesite.com</a> it works fine in the browser but fails in the HttpClient with this stacktrace (follows). Any suggestions? I'm using <code>SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER</code> while setting <code>ThreadSafeClientConnManager</code> to handle HTTPS requests</p>
  
  <p>The code (partial):</p>
  
  <pre><code>final HttpGet get= new HttpGet(url);
  final HttpResponse response = this.client.execute(get);
  return new BasicResponseHandler().handleResponse(response);
  </code></pre>
  
  <p>Stacktrace:</p>
  
  <pre><code>01-05 22:34:03.783: ERROR/SearchResults(11565): 
      Failed to process request to URL: 
      https://user:pwd@www.somesite.com/products/foo/meta/xml_proper_encoding.jsp?version=1
  01-05 22:34:03.783: ERROR/SearchResults(11565): 
      org.apache.http.client.HttpResponseException: Unauthorized 
  </code></pre>