Apache Commons HttpClient 3.1 POST example?

S

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
 
S

Sebastian

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top