Skip to content

which version of curl supports auth-int for PUT or POST #7556

Answered by jay
yangziok asked this question in Q&A
Discussion options

You must be logged in to vote

According to a comment in the code auth-int is not supported for PUT or POST. It looks like what it is doing is using an empty hash in all cases for the body, so even though it appears to send auth-int for PUT it is probably not actually valid. It is possible if you hash the actual PUT file that it may work, I don't know.

curl/lib/vauth/digest.c

Lines 766 to 777 in bfbde88

if(digest->qop && strcasecompare(digest->qop, "auth-int")) {
/* We don't support auth-int for PUT or POST */
char hashed[65];
char *hashthis2;
hash(hashbuf, (const unsigned char *)"", 0);
convert_to_ascii(hashbuf, (unsigned char *)hashed);
hashthis2 = aprintf("%s:%s", h…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bagder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #7553 on August 11, 2021 06:31.