cURL / Mailing Lists / curl-library / Single Mail


Re: Send post data without recieving contents

From: Brandon <>
Date: Sun, 19 Aug 2007 23:01:21 -0400

Sorry for a second email, but let me clarify:
I want the server to behave exactly the same as if I recieved the data, but
since the data it sends back is large and useless, I would like a way to
close the connection, or something similar.

This guy apparently wants the same thing:

Emil Romanus replied and said this "I'd suggest writing a callback function
for the CURLOPT_WRITEFUNCTION. The callback function should simply return
size*nmem and do nothing else."

Anyone know how to do this? Thanks so much, sorry for another email.

On 8/19/07, 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.
Received on 2007-08-20