c# - Set Content-MD5 in get request -


i have following code:

httprequestmessage message = new httprequestmessage(httpmethod.get, uri); byte[] md5 = {my hash}; message.content.headers.contentmd5 = md5; 

the problem is, message.content null.

the client use of type system.net.http.httpclient

now question, how can send httpcontent in get request?

my solution is, created own header. planned use content-md5 caching, created own caching header.


Comments

Popular posts from this blog

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -