Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Http digest preemptive authentication

$
0
0
Humm, after many experiments, I am afraid this is impossible to achieve natively with WinHttp (tried to call WinHttpSetCredentials before each request : no Authorization header is added with Digest, as per doc).
The best I can imagine is changing the request body (and accordingly content-length header) when resending request, after 401 server response.
Do you how I could do that ? I use a custom streambuf to intercept seek calls: can be used as a hook (WinHttp handle could be available and used at this step).

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>