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


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

Re: 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 Re: Apache Commons HttpClient 3.1 POST example?
Date Wed, 22 Jun 2011 10:29:25 +0200
Organization albasani.net
Lines 21
Message-ID <its955$e11$1@news.albasani.net> (permalink)
References <its7d9$acd$1@news.albasani.net>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net aPh1sFbUw0OIbSNTnuNtgOUQ8Jptoh2aZF5DAFju2T76S/CWDSeuq1sackXQG1eCn8gJCga49Ipl/NNnCffi+ZKI6pvvL+xaaOJWY4ZIZc5aTcvbYk1XDRgd7nmMOh1j
NNTP-Posting-Date Wed, 22 Jun 2011 08:29:25 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="klyNuxre+VIe15GFnv5QUtu3SOLb+sWbJxQV5hLjUzEBDpZGbEBENImQQgA17hZiVb8mriJlqx8/ejVXvbgSi+0JeDx440I47aRmI+piTBFGW47N3FxUq2Pvz+EyhUCl"; 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
In-Reply-To <its7d9$acd$1@news.albasani.net>
Cancel-Lock sha1:r942Y66T2MJHISh6dig+S0jNYoI=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5514

Show key headers only | View raw


Am 22.06.2011 09:59, schrieb Sebastian:
> 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

Meanwhile, I've managed toc obble something together by
combining two of the samples (the PostSOAP sample and
the AlternateAuthentication sample). I apologize for
having posted prematurely.

-- Sebastian

Back to comp.lang.java.programmer | Previous | NextPrevious 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