W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Re: How can I handle an HT_UPGRADE 101 Message?

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Fri, 26 Feb 1999 20:29:45 -0500
Message-Id: <3.0.5.32.19990226202945.03137100@localhost>
To: Stuart Myles <smyles@wsj.dowjones.com>, "www-lib@w3.org" <www-lib@w3.org>
At 16:08 2/25/99 -0500, Stuart Myles wrote:

>At present, I send the request and the 101 message gets treated as an
>Error that terminates my request.

I have added a small "upgrade" sample app and made a few changes to how it
is handled in HTTP.c. Basically, now it simply calls a stream converter and
feeds the rest of the data to that stream. The upgrade sample app pumps all
"upgrade'd data" asis to stdout.

You can of couse add your own stream converter to handle the output -
currently I just have a rather simple one registered in HTInit.c for mime
type "message/x-rfc822-upgrade".

The patch below is committed to libwww's cvs base as well as the upgrade
sample app.

Get it from CVS as described in

	http://www.w3.org/Library/cvs.html#update

Have fun!

Henrik



--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk

Received on Friday, 26 February 1999 20:29:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT