W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1997

Re: client side post method

From: Daniel Veillard <veillard@rufus.w3.org>
Date: Tue, 21 Oct 1997 13:04:16 -0400
Message-Id: <199710211704.NAA00799@rufus.w3.org>
To: "Christophe" <cvigny@netserveur.fr>
Cc: www-jigsaw@w3.org

>I'am trying to use the Jigsaw client side API. It work fine but I wonder
>how to make a post method using the object request in an HttpManager ?
>I don't find any method to get an OutputStrean from the request to write on
>it.

  Basically when integrating Jigsaw client side and Amaya I ended up with:

http_conn.setRequestMethod("POST");
http_conn.setDoOutput(true);
http_conn.setDoInput(true);
out = http_conn.getOutputStream();
out.write(postcommand, 0, len);
out.close();
http_conn.connect();
in = conn.getInputStream();

   and read the answer.

http_conn is the HttpURLConnection (obtained by a cast from the
URLConnection).

  hope this help,

Daniel
Received on Tuesday, 21 October 1997 13:04:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT