cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl output

From: Richard Atterer <richard_at_2005.atterer.net>
Date: Mon, 4 Apr 2005 19:37:52 +0200

On Mon, Apr 04, 2005 at 07:10:05PM +0200, Jose (Runlevel) wrote:
> I'm writting the next simple application, and I want do do a post to a
> servlet and I don't want to see the html output, What can I do to hide
> this output?

size_t blackhole(void*, size_t size, size_t nmemb, void*) { return size * nmemb; }
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, blackhole);

HTH,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  GnuPG key:
  | \/¯|  http://atterer.net  |  0x888354F7
  ¯ '` ¯
Received on 2005-04-04