Trouble with mget.c

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 UTC