W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 2001

Re: newbie question

From: Yves Lafon <ylafon@w3.org>
Date: Wed, 31 Jan 2001 14:05:47 +0100 (MET)
To: Frédéric Schwien <fred@igtech.fr>
cc: Jigsaw Mailling list <www-jigsaw@w3.org>
Message-ID: <Pine.GSO.4.32.0101311346410.27262-100000@tarantula.inria.fr>
On Tue, 30 Jan 2001, Frédéric Schwien wrote:

> Then, for the client HTTP Header decoding part, I planned to use the
> org.w3c.www.http.HttpRequestMessage class . (I do not think there is
> any copyright problem to this , is it ? )

No problem, see http://www.w3.org/Consortium/Legal/copyright-software-19980720

> Well, following the Documentation, i made something like :
>
> MimeParserRequestFactory m = new MimeParserRequestFactory();
> MimeParser mp = new MimeParser(serviceSocket.getInputStream(), m);
> HttpRequestMessage hr = (HttpRequestMessage) mp.parse();


> But then, the HttpRequestMessage object only get the host and method
> fields . None of the others ... I tried to have a look at the Jigsaw
> code, but I would have to investiagte for days before understanding
> the way it is done .

Perhaps what you read has just that!
You may want to put a Stream that will just print what it read, or do some
tcpdump and see what's happening on the wire.

See org.w3c.jigsaw.http.Client to see how the MimeParser is used.
(getNextRequest() for example).
Hope this helps,

-- 
Yves Lafon - W3C / Jigsaw - XML Protocol - HTTP
"Baroula que barouleras, au tiéu toujou t'entourneras."
Received on Wednesday, 31 January 2001 08:05:50 GMT

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