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. Advertisements

  2. Sebastian

    Sebastian Guest

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

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 (here). After that, you can post your question and our members will help you out.