hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Philippe Steinmetz <caskate...@gmail.com>
Subject Re: Generating Content-MD5 for a request
Date Wed, 17 Mar 2010 02:07:23 GMT
On Tue, Mar 16, 2010 at 6:58 PM, Carl-Gustaf Harroch <charroch@gmail.com>wrote:

> What should the md5 be generated against?


I'm not sure I follow this question. Per the HTTP/1.1 spec, the Content-MD5
is the header used to verify the entity body of a request.


> Have you tried the
> httpClient.addRequestInterceptor?
>

Of course I can calculate the MD5 myself but I was hoping httpclient would
have the feature built-in. Apparently I was wrong.


>
> On 17 March 2010 01:55, Jean-Philippe Steinmetz <caskater47@gmail.com>
> wrote:
> > Hello everyone,
> >
> > A server i'm communicating with requires the Content-MD5 header to be
> > generated for all PUT/POST requests. I've been digging around in the
> > documentation for quite some time and the only thing I seem to find is
> the
> > ContentMD5Module that is used for checking responses. How can I get
> > generated Content-MD5 headers into all of my requests?
> >
> > Jean-Philippe Steinmetz
> >
>
>
>
> --
> Carl-Gustaf Harroch
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message