Re: Posting problem using HttpManager

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 UTC