On Wed, 2016-12-28 at 00:13 +0000, David Thielen wrote:
> I am running the sample for digest authentication. I didn't change anything, 
> just using the provided sample and I am getting the error "HTTP/1.1 401 
> UNAUTHORIZED"
> 
> If I go direct to http://httpbin.org/digest-auth/auth/user/passwd in prompts 
> me for user/passwd and then provides the page. So the website is working 
> right.
> 
> Looking at Fiddler, there are 2 requests and the second has for auth:
> 
> No Proxy-Authorization Header is present.
> Authorization Header is present: Digest username="user", 
> realm="m...@kennethreitz.com", nonce="b2c603bb7c93cfa197945553a1044283", 
> uri="/digest-auth/auth/user/passwd", 
> response="5bc193bd90e3acb1cb9242138e6bd100", 
> opaque="a6766136f0585f6a7daeb124cdcdbd45", qop=auth, nc=00000001, 
> cnonce="9609c2bb4a21dd0a"
> 
> No idea where that realm came from - that is not me.
> 
> What am I doing wrong?
> 
> Thanks - dave

Dave

(1) If you are referring to ClientPreemptiveDigestAuthentication it is
not meant to be used without modification. One is expected to provide
correct realm and nounce values.

(2) More importantly something has changed on the httpbin.org side and
their digest authentication logic no longer works with HttpClient. I had
no bandwidth to find out the cause of the problem. Volunteers are
welcome.

Oleg  


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to