cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Getting CURLOPT_HTTPHEADER back to normal?

From: Casey ODonnell <caseyodonnell_at_gmail.com>
Date: Fri, 25 Jun 2004 09:56:08 -0400

I figured it out. I wasn't setting:

curl_easy_setopt(m_pCURL, CURLOPT_INFILESIZE_LARGE, 0);

So I think it believed that since there was a size there, it ought to
try and read something.

When you set:

curl_easy_setopt(m_pCURL, CURLOPT_CUSTOMREQUEST, "DELETE");

Do you get it back to normal with:

curl_easy_setopt(m_pCURL, CURLOPT_CUSTOMREQUEST, NULL);
or
curl_easy_setopt(m_pCURL, CURLOPT_CUSTOMREQUEST, "");

I assumed the NULL and it seems to be working well.

Cheers.
Casey

> "inside of fread" ? That would indicate that it tried to read
> something and when using the default internal read function
> it reads from the FILE * you set with
> CURLOPT_READDATA. In this case a NULL, which I figure
> fread doesn't like.
Received on 2004-06-25