HTTPClient 2.0.2 and HTTP PUT

Discussion in 'Java' started by Kevin McMurtrie, Feb 15, 2005.

  1. How do you write to an HTTP PUT OutputStream using HTTPClient 2.0.2?
    The PutMethod class, for some stupid reason, consumes an InputStream.
    I'm sending high bandwidth streams from native code so the usual hacks
    to convert stream directions, like making a pipe with another thread,
    are not suitable.

    The Apache docs suggest that you can get two-way stream access through
    HttpConnection but it's barely documented. I don't see how it interacts
    with the protocol management classes like PutMethod, especially in
    relationship to who gets to use the streams and at what time. Does
    anyone have some sample code?

    Thanks!
     
    Kevin McMurtrie, Feb 15, 2005
    #1
    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. Maverick
    Replies:
    1
    Views:
    12,315
    Maverick
    Feb 7, 2004
  2. Jimi Hullegård

    Network timeout with HTTPClient and Tomcat

    Jimi Hullegård, Sep 5, 2005, in forum: Java
    Replies:
    1
    Views:
    1,384
    Chris Uppal
    Sep 7, 2005
  3. Chris Uppal
    Replies:
    5
    Views:
    841
    Alex Buell
    Dec 21, 2005
  4. Joe Linux
    Replies:
    0
    Views:
    644
    Joe Linux
    Sep 15, 2006
  5. Gabriel Rossetti
    Replies:
    3
    Views:
    576
    Jerry Hill
    Apr 25, 2008
Loading...

Share This Page