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

client side post method

From: Christophe <cvigny@netserveur.fr>
Date: Tue, 21 Oct 1997 14:52:15 +0200
Message-Id: <199710211251.OAA30349@lyonnet.dtr.fr>
To: <www-jigsaw@w3.org>
Hello,

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.

Please tell me what to do.
Thank's for your help

my code :

request.setURL(new URL(InsNomad[1]));
request.setMethod("POST");

//don't work because I need an OutputStream .
PrintWriter writer = new PrintWriter(request.getOutputStream());
writer.println("URL=http://essai.com&Email=suite@essai.com");
writer.close();

reply   = manager.runRequest(request);
System.out.println("length       : "+reply.getContentLength());
Received on Tuesday, 21 October 1997 08:51:34 GMT

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