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).
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).