Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Apache Commons HttpClient 3.1 POST example?

Reply
Thread Tools

Apache Commons HttpClient 3.1 POST example?

 
 
Sebastian
Guest
Posts: n/a
 
      06-22-2011
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
 
Reply With Quote
 
 
 
 
Sebastian
Guest
Posts: n/a
 
      06-22-2011
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jakarta Commons HttpClient and a socket reset Joe Linux Java 0 09-15-2006 02:53 PM
Apache FileUpload - java.lang.NoClassDefFoundError: org/apache/commons/io/FileCleaner kebabkongen@hotmail.com Java 2 03-16-2006 09:20 AM
commons httpclient - PutMethod run OutOfMemoryError ?? Bastian Java 0 12-06-2005 09:49 AM
how to set cipher-suite in commons httpclient the_caspie@hotmail.com Java 2 08-29-2005 12:26 PM
Importing Hotmail Addressbook from Java Client using commons-httpclient APIs Gamas Java 0 02-04-2005 11:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57