Apache Commons HttpClient 3.1 POST example?

Discussion in 'Java' started by Sebastian, Jun 22, 2011.

  1. Sebastian

    Sebastian Guest

    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
     
    Sebastian, Jun 22, 2011
    #1
    1. Advertising

  2. Sebastian

    Sebastian Guest

    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
     
    Sebastian, Jun 22, 2011
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gamas
    Replies:
    0
    Views:
    2,330
    Gamas
    Feb 4, 2005
  2. Replies:
    2
    Views:
    2,147
  3. Bastian
    Replies:
    0
    Views:
    977
    Bastian
    Dec 6, 2005
  4. Replies:
    2
    Views:
    13,899
  5. Joe Linux
    Replies:
    0
    Views:
    658
    Joe Linux
    Sep 15, 2006
Loading...

Share This Page