hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tankelevich Leonid" <Leonid.Tankelev...@comverse.com>
Subject Is HttpMethod reusable?
Date Sun, 15 Apr 2007 06:45:07 GMT
Hello world,

HttpClient 3.0:

I reuse a single org.apache.commons.httpclient.HttpMethod object for
sending a series of requests with different entities.
Entities have the same content type, but differ in the length.
I replace entities in the HttpMethod object using setRequestEntity()
method.
The method works fine for first request, but does not update
Content-Length header, and sometimes truncates the content in next
requests.

Any idea?

Thanks,
Leonid Tankelevich


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