Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Sebastian 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: References: 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: Cancel-Lock: sha1:r942Y66T2MJHISh6dig+S0jNYoI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5514 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