cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Empty HTTP POST request

From: Max Burke <maxburke_at_gmail.com>
Date: Thu, 12 Jan 2012 20:07:58 -0800

On Thu, Jan 12, 2012 at 10:41 AM, Dan Fandrich <dan_at_coneharvesters.com> wrote:
>
> The first and last pointers are not being initialized to NULL before
> calling curl_formadd. When libcurl gets the, it finds garbage it can't
> do anything with. If you look at the return code of curl_formadd, you'll
> probably see an error code returned.

Doh, that was definitely it. Thanks!

The calls to curl_formadd were returning CURLE_OK, strangely.

Cheers,
-Max
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-13