cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Send post data without recieving contents

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 20 Aug 2007 09:16:20 +0200 (CEST)

On Sun, 19 Aug 2007, Brandon wrote:

> I want to post data to a website, but I don't want it to transfer the
> contents of the page back to my script, at all really. Is this possible?
>
> CURLOPT_RETURNTRANSFER doesn't seem to do what I want.

CURLOPT_RETURNTRANSFER doesn't exist in libcurl, that's an option the PHP/CURL
binding introduced and supports.

With libcurl, you either:

a) just discard the data in a write callback but that will still get the
    response downloaded.

or

b) you return a failure from the write callback so that the transfer is
    aborted

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-08-20