Rogers Erika-LER003 writes: > I'm attempting to write a client that sends a post to the jigsaw server > and based on that post, jigsaw send back the appropriate reply. > However, I am unsure of where i jigsaw posts are processed (I need to > modify this) and also how to generate a post. Any help would be > appreciated. The POST Request are processed by the PostableFrame [1][2][3]. To generate a POST Request, see java.net.URLEncoder. Jigsaw provide a URLDecoder[4]. ex: request.setMethod("POST"); string body = java.net.URLEncoder.encode('your post data'); request.setOutputStream(new StringBufferInputStream(body)); ... Benoit [1] org.w3c.jigsaw.frames.PostableFrame [2] http://www.w3.org/Jigsaw/Doc/Reference/org.w3c.jigsaw.frames.PostableFrame.html [3] http://www.w3.org/Jigsaw/Doc/Programmer/api/org.w3c.jigsaw.frames.PostableFrame.html [4] org.w3c.jigsaw.forms.URLDecoder - Benoît Mahé ------------------------------------------------------- World Wide Web Consortium (W3C) Architecture domain - Jigsaw Team http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89 ---------------------------------------------------------------------Received on Wednesday, 15 July 1998 07:44:48 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:27 GMT