cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: No output in an http get request

From: Michael Wallner <mike_at_iworks.at>
Date: Tue, 03 Jan 2006 14:55:33 +0100

Hi Alejandro Ramiro Ruiz, you wrote:

> but I don't know how to execute this in a way that no output at all
> could be shown. I get the information I need by the curl_easy_getinfo()
> method so, I need no output. I would like to make the request in
> absolute silent. Someone can help me please?.

size_t dummy(char *data, size_t n, size_t l, void *s) { return n*l; }

...

curl_easy_setopt(ch, CURLOPT_HEADER, 0);
curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, dummy);

HTH,

-- 
Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gz
Received on 2006-01-03