I'm using HttpClient 4.0 to get some XML from the remote host. When I use URL
such as https://user:[email protected] it works fine in the browser but
fails in the HttpClient with this stacktrace (follows). Any suggestions? I'm
using SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER while setting
ThreadSafeClientConnManager

The code (partial):
final HttpGet get= new HttpGet(url); 
final HttpResponse response = this.client.execute(get);
return new BasicResponseHandler().handleResponse(response);

Stacktrace
01-05 22:34:03.783: ERROR/SearchResults(11565): Failed to process request to
URL:
https://user:[email protected]/products/foo/meta/xml_proper_encoding.jsp?version=1
01-05 22:34:03.783: ERROR/SearchResults(11565):
org.apache.http.client.HttpResponseException: Unauthorized



-- 
View this message in context: 
http://old.nabble.com/Authentication-fails-in-HttpClient-but-OK-in-browser-tp27026795p27026795.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


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

Reply via email to