- 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>
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