cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: @ sign in request

From: Duncan McQueen <dwmcqueen_at_gmail.com>
Date: Mon, 18 Dec 2006 22:09:36 -0600

I forgot to add, here is my code:

curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorBuffer);
        curl_easy_setopt(curl, CURLOPT_PORT, port);
        curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
        curl_easy_setopt(curl, CURLOPT_HEADER, 0);
        curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writer);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
        // Attempt to retrieve the remote page
        result = curl_easy_perform(curl);
        // Always cleanup
        curl_easy_cleanup(curl);

On 12/18/06, Duncan McQueen <dwmcqueen_at_gmail.com> wrote:
> I am making a simple post request using libcurl in my application.
> However, the request appers to cut off the URL at the @ sign
> (supposedly because it thinks it is a file). Is there a way to
> disable this feature so it passes the whole text (including the @
> sign)?
>
> Thanks,
>
> Duncan McQueen
>
Received on 2006-12-19