cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl (perl) avoid any output

From: Robert Meissner <robert.meissner_at_informatik.tu-chemnitz.de>
Date: Sat, 10 Nov 2007 13:30:58 +0100

am Samstag, 10. November 2007 um 03:13 schrieben Sie:
>> Finally my script [1] is working fine. How am i supposed to avoid
>> any output of this script (verbose mode is now off)? I don't want
>> to see any data on the screen whatsoever.

> Set up a dummy write callback handler (CURLOPT_WRITEFUNCTION) that
> throws away the data, or, if the perl binding supports it, a dummy
> file object to CURLOPT_WRITEDATA.

Thanks for your reply. I know about that funktions, but my i can't
succeed with them [1].

| sub clear {
| my ($data, $pointer) = @_;
| ??????? <- how to clear up date in here?
| return length($data)
| }
|
| $curl->setopt(CURLOPT_WRITEFUNCTION, \&clear);

Regards,
Robert

-- 
[1] http://search.cpan.org/~crisb/WWW-Curl-2.0/easy.pm.in
Received on 2007-11-10