hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nation, Carey" <Carey.Nat...@turner.com>
Subject How do I set the request body for an HttpPost in 4.x
Date Fri, 15 Oct 2010 16:11:44 GMT
I'm sure this is obvious and I'm sure I just didn't ask google the
proper question, but I'm stumped.


I need to post a big blob of xml to a servlet.  The xml needs to be in
the request body.  In 3.x you said something like req.setBody( string).
I can't find anything like that in 4.x.  I just need it to end up:


Content-type: text/xml

Content-length: yourLengthHere


<xml />






Carey Nation <mailto:carey.nation@cnn.com> 
Lead Software Engineer
Broadcast Production Systems
Video Solutions Group
(404)827-2935 (wk)
(404)824-0033 (cell) 


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