Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #5513

Apache Commons HttpClient 3.1 POST example?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Sebastian <sebastian@undisclosed.invalid>
Newsgroups comp.lang.java.programmer
Subject Apache Commons HttpClient 3.1 POST example?
Date Wed, 22 Jun 2011 09:59:37 +0200
Organization albasani.net
Lines 13
Message-ID <its7d9$acd$1@news.albasani.net> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net EGS9KT+wHLgp3vvXOHUM1Exep0IYZHjXMUTKhLuNBi/rMxINMPbLnkN9f/UYtmtZPCwwEGvpPZcsdx8iR0oYy0xhIm0wjZRRfWxdEipRDzFQlEe4gLr7c4/oYS/j1H0+
NNTP-Posting-Date Wed, 22 Jun 2011 07:59:38 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="EB7uUZWYLZOacgsaKG2dcMy8fUEMy6g5SAx+CvpFebhWc8Jjy5PYMLgB9NKyH9HqG1/kt3UM2XtdMn4qyi7mmP8tu1NF4e6lOHEwuWd14v8+0nHGqITd1E3JIapVFYo7"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
Cancel-Lock sha1:Ve8mi1QL9AENjB52f7unru1Lfns=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5513

Show key headers only | View raw


Hello there,

could anyone point me to an example showing how to
do HTTP POST with Apache Commons HttpClient 3.1 ?
I need to put an XML document in the body of the
post request.

I did this with Apache HttpComponents HttpClient 4.1,
however, the API is substantially different from 3.1,
and I need to port backwards. (The Apache site seems
only to have a short Http GET example, based on 3.0).

-- Sebastian

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

Apache Commons HttpClient 3.1 POST example? Sebastian <sebastian@undisclosed.invalid> - 2011-06-22 09:59 +0200
  Re: Apache Commons HttpClient 3.1 POST example? Sebastian <sebastian@undisclosed.invalid> - 2011-06-22 10:29 +0200

csiph-web