title: How do you do a HTTP POST with digest authentication in Golang?
body: <p>I am trying to use the <a href="https://gerrit-review.googlesource.com/Documentation/rest-api.html#authentication" rel="noreferrer">Gerrit API</a> that requires digest authentication. After reading up some I know I am supposed to make a request, get a 401, then use the realm and nonce and maybe other headers to then create the actual request authentication using MD5. I have found some examples on digest but they all seem to be the server side, not the client side.</p>