Quantcast
Viewing all articles
Browse latest Browse all 19115

0006195: Curl with --digest option does not create Authorization header

If one executes:<br /> <br /> curl -v -o /dev/null --digest <a href="http://user:<a href="mailto:password@www.centos.org">password@www.centos.org</a>">http://user:<a href="mailto:password@www.centos.org">password@www.centos.org</a></a> [<a href="http://user:<a href="mailto:password@www.centos.org">password@www.centos.org</a>" target="_blank">^</a>]<br /> <br /> the output is:<br /> <br /> ...<br /> > GET / HTTP/1.1<br /> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2<br /> > Host: www.centos.org<br /> > Accept: */*<br /> ...<br /> <br /> while output of:<br /> <br /> curl -v -o /dev/null --basic <a href="http://user:<a href="mailto:password@www.centos.org">password@www.centos.org</a>">http://user:<a href="mailto:password@www.centos.org">password@www.centos.org</a></a> [<a href="http://user:<a href="mailto:password@www.centos.org">password@www.centos.org</a>" target="_blank">^</a>]<br /> <br /> is:<br /> <br /> ...<br /> > GET / HTTP/1.1<br /> > Authorization: Basic dXNlcjpwYXNzd29yZA==<br /> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2<br /> > Host: www.centos.org<br /> > Accept: */*<br /> ...<br /> <br /> (note the absence of "Authorization:" header in the first case).

Viewing all articles
Browse latest Browse all 19115

Trending Articles