cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Empty POST requests with libcurl on Tiger PPC

From: Nanbackups <nanbackups_at_gmail.com>
Date: Tue, 2 Mar 2010 15:36:49 -0500

On Mon, Feb 22, 2010 at 2:23 PM, Nanbackups <nanbackups_at_gmail.com> wrote:

> I do not have any authentication options set via CURLOPT_USERPWD or
> related options. I do have have proxy authentication, although this
> example transfer was without a proxy enabled.
> The other options I'm setting are, with some conditionals and other
> logic around them removed:
>
> SetPointerOpt(CURLOPT_ERRORBUFFER, error_text)
> SetStringOpt(CURLOPT_URL, request.url())
> // Verify the peer's certificate.
> SetBoolOpt(CURLOPT_SSL_VERIFYPEER, true)
> // Verify the name in the peer's certificate
> // matches the host name.
>  SetInt64Opt(CURLOPT_SSL_VERIFYHOST, 2)
>
> success = success &&
>    SetStringOpt(CURLOPT_PROXY, host) &&
>    SetInt64Opt(CURLOPT_PROXYPORT, port);
> success = success && SetStringOpt(CURLOPT_PROXYUSERPWD, *proxy_user_pass);
> success = success && SetStringOpt(CURLOPT_CAINFO, cacerts);
>
> // Callbacks.
> SetPointerOpt(CURLOPT_WRITEFUNCTION,
>        (const void*)(&ResponseCallback)) &&
> SetPointerOpt(CURLOPT_WRITEDATA, response->mutable_response()) &&
> SetBoolOpt(CURLOPT_VERBOSE, true) &&
> SetPointerOpt(CURLOPT_DEBUGFUNCTION,
>        (const void*)(&DebugCallback)) &&
> SetPointerOpt(CURLOPT_DEBUGDATA, callback_helper) &&
> // Don't follow redirects.
> SetBoolOpt(CURLOPT_FOLLOWLOCATION, false) &&
> SetPointerOpt(CURLOPT_PROGRESSFUNCTION,
>        (const void*)(&ProgressCallback)) &&
> SetPointerOpt(CURLOPT_PROGRESSDATA, &aborted_) &&
> SetBoolOpt(CURLOPT_NOPROGRESS, false);
>
> // Header.
> success = SetPointerOpt(CURLOPT_ENCODING, NULL);
> curl_header = curl_slist_append(curl_header,
>        "Accept-Encoding: gzip, deflate");
> curl_header = curl_slist_append(curl_header, "Content-Encoding: gzip");
> success = SetPointerOpt(CURLOPT_HTTPHEADER, curl_header);
>

Do the options I specified help?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-02