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


Have fun!


Henrik Frystyk Nielsen,
World Wide Web Consortium
Received on Friday, 26 February 1999 20:29:49 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 14:24:34 UTC