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

Trouble with mget.c

From: Worik Macky Turei Stanton <worik@noggon.co.nz>
Date: 07 Mar 2001 19:51:05 +1300
To: www-lib@w3.org
Message-ID: <87y9uirs12.fsf@noggon.co.nz>
Friends

I have been playing with mget.c from the Examples.

This line...
 HTRequest_setOutputStream(request, HTFWriter_new(request, stdout, YES));

... Shouldn't this mean that the data gets written to the stdout as it
is received?  It is silent.

From the docs for HTRequest_setOutputStream....

The output stream is to be used to put data down to as they come in
from the network and back to the application.  The default value is
NULL which means that the stream goes to the user (display).

I tried opening a file and passing a pointer to that...

FILE * f;
:
:
f = fopen(name, "w");
 HTRequest_setOutputStream(request, HTFWriter_new(request, f, YES));

But although the file is touched it does not get the content.

Commenting out the line entirly appears to make no difference.

Can anybody help me?

Worik
-- 
                     Worik Macky Turei Stanton
                          worik@noggon.co.nz
                              Aotearoa
    This line would not have seven words if only it had eight words less.
Received on Wednesday, 7 March 2001 01:48:28 GMT

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