Dear Developers, I am working on http/https digest auth using libcurl,tried 7.48.0 and 7.64.1,neither of them can work. Here is the failed packet:
GET /nagios/ HTTP/1.1 Host: 192.168.10.199:1237 Authorization: Digest username="nagiosadmin", realm="Nagios Access", nonce="+5CRzebeBQA=c14aa76c6e75b68856f64f74a71940e69477bfbb", uri="/nagios/", cnonce="NDg2ZTkyOGIyZWY3N2QzNDVjYWYwM2FiN2YxOTI5OTA=", nc=00000001, qop=auth, response="7e4c3c9e92f97cd6a82b0d339496a685", algorithm="MD5" User-Agent: ecntcwmp 1.0 Accept: */* Content-Type: text/xml; charset="utf-8" HTTP/1.1 401 Unauthorized Date: Fri, 13 May 2022 16:02:36 GMT Server: Apache/2.4.10 (Fedora) WWW-Authenticate: Digest realm="Nagios Access", nonce="uD+UzebeBQA=63cef96ee9c22e980ce0953254a6eeebba9bcd69", algorithm=MD5, domain="/nagios/http://192.168.10.199/nagios/", qop="auth" Content-Length: 381 Content-Type: text/html; charset=iso-8859-1 Here is the successful packet using curl command tool,I tried to get all the information identically. GET /nagios/ HTTP/1.1 Host: 192.168.10.199:1237 Authorization: Digest username="nagiosadmin", realm="Nagios Access", nonce="lIPJ7+beBQA=ba6f9f19c6da70a3dbb62402168218c9dce56505", uri="/nagios/", cnonce="YmNiMWE1MGI0NDIzOTczMDM2MWQ3ZjdkNzZjMGM0NmE=", nc=00000001, qop=auth, response="5029d63fb7c319e75f3f9390747e0e24", algorithm="MD5" User-Agent: ecntcwmp 1.0 Accept: */* Content-Type: text/xml; charset="utf-8" HTTP/1.1 200 OK Date: Fri, 13 May 2022 16:12:10 GMT Server: Apache/2.4.10 (Fedora) Authentication-Info: rspauth="2526eac6f2fa932af008edb0bd024ad2", cnonce="YmNiMWE1MGI0NDIzOTczMDM2MWQ3ZjdkNzZjMGM0NmE=", nc=00000001, qop=auth Last-Modified: Wed, 11 May 2022 13:19:10 GMT ETag: "d-5debc49648ea2" Accept-Ranges: bytes Content-Length: 13 Content-Type: text/html; charset=UTF-8 Is this the version problem or the encode/decode problem? Thanks, Michelle 获取 Outlook for iOS<https://aka.ms/o0ukef>
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html