W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1999

default input stream for requests

From: Patrick <patrick@spacesurfer.com>
Date: Mon, 29 Nov 1999 12:45:04 +0000
Message-ID: <38427550.3A74FBFD@spacesurfer.com>
To: www-lib@w3.org
I have an application which uses the libwww to parse html through http
requests, it usually works fine. However sometimes if the file requested
is not html (eg pdf) or the url requires user authentication then the
application expects to receive standard input. If I redirect /dev/zero
to the stadard input then the application crashes. I was wondering if I
could get help on the following questions:
 - How do I set the default stream to null, so that if the request
requires input then the requt simply aborts.
 - How do I get the library to only accept text/html objects.


Patrick Mackinlay                                patrick@spacesurfer.com
Support                                          tel: (44) (0)7050699851
SpaceSurfer division                             fax: (44) (0)8700635743
Web Orientated Technologies Ltd              http://www.spacesurfer.com/
Received on Monday, 29 November 1999 07:43:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC