Skip to content

HTTP digest authentiction not working? #27

@schoettl

Description

@schoettl

Hi, thank you for this library!

I tried to access an API using digest authentication.

This works:

curl --digest -u "user:pass" http://localhost/private/test.txt

This does not work:

curlGetString "http://localhost/private/test.txt" [CurlHttpAuth [HttpAuthDigest], CurlHeader True, CurlUserName "user", CurlUserPassword "pass"]

The output suggests that only one request is done.

(CurlHttpReturnedError,"HTTP/2 401 \r\ndate: Thu, 15 Dec 2022 22:56:03 GMT\r\ncontent-type: application/json; charset=UTF-8\r\ncontent-length: 152\r\nserver: nginx/1.14.0 (Ubuntu)\r\nwww-authenticate: Digest realm=\"Xentral-API\",qop=\"auth\",nonce=\"602d44f9a3a6ee1f52fadxxxxxx\",opaque=\"533118e447c76f15f7axxxxxxx\"\r\nstrict-transport-security: max-age=31536000; includeSubDomains\r\nx-frame-options: SAMEORIGIN\r\n\r\n")

But the command line curl -vv suggests that for digest auth a follow-up request is made. Maybe that follow up is not implemented? Any ideas on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions