hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Thielen <da...@windward.net>
Subject http client sample failing for Digest authentication
Date Wed, 28 Dec 2016 00:13:33 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message