hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: http client sample failing for Digest authentication
Date Wed, 28 Dec 2016 15:08:50 GMT
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="me@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


(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


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

View raw message