default input stream for requests

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.

thanks,
Patrick

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