notsolowki:
okay this might work but just to clarify do you mean the response to the server from the browser. as in capture the response back to the server after the 401. or do you mean the nonce from the 401
no, from a web browser after successful authentication
things are never as easy as they seem right. what i thought was going to be a simple http GET command ended up being way more complex that i expected. if anyone has any code that can give me an example of the client side digest authentication that dont use the esp8266http library please share it.
okay so basically i need to contact the server and get that 401 response, then the arduino program needs to collect the nonce and the opaque from the 401 reply then the arduino builds the proper header with the nonce and the opaque and the hashing sequence mentioned from the wiki?
The MD5 hash of the combined username, authentication realm and password is calculated. The result is referred to as HA1.
The MD5 hash of the combined method and digest URI is calculated, e.g. of "GET" and "/dir/index.html". The result is referred to as HA2.
The MD5 hash of the combined HA1 result, server nonce (nonce), request counter (nc), client nonce (cnonce), quality of protection code (qop) and HA2 result is calculated. The result is the "response" value provided by the client.