W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 2001

Re: Posting problem using HttpManager

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 9 Jul 2001 14:55:42 +0200 (MET DST)
To: Menarek John-NJM010 <John_Menarek-NJM010@email.mot.com>
cc: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
Message-ID: <Pine.GSO.4.33.0107091430580.17470-100000@tarantula.inria.fr>
On Thu, 5 Jul 2001, Menarek John-NJM010 wrote:

> 		Two Http headers are going out!!!!!!
>
> 		In Jigsaw the sending of request bytes is done by three methods

Hum, I regulary use Jigsaw's HTTP stack to do PUT (in Winie and when
jigsaw is turned into a proxy) and POST (also in the proxy)
Here is an example:

        InputStream body;
        Hashtable headers;

        request = createRequest(headers);
	request.setMethod(method);
	request.setURL(hurl);
	if (body != null) {
	    request.setOutputStream(body);
	    if (body instanceof ProgressMonitorInputStream) {
		ProgressMonitorInputStream pin =
		    (ProgressMonitorInputStream) body;
		pm = pin.getProgressMonitor();
	    }
        }
        reply = manager.runRequest(request);

(taken from JW.java from Winie [1] )

[1] http://jigsaw.w3.org/Winie/

-- 
Yves Lafon - W3C
"Baroula que barouleras, au tiéu toujou t'entourneras."
Received on Monday, 9 July 2001 08:55:46 GMT

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