cURL / Mailing Lists / curl-library / Single Mail



From: Zhen Wang <>
Date: Wed, 19 Feb 2003 15:25:48 +0800

Hi all,
  I met a problem when I writing codes with curl. And the codes like

struct MemoryStruct chunk;
chunk.memory=NULL; /* we expect realloc(NULL, size) to work */
chunk.size = 0; /* no data at this point */
curl_easy_setopt(pURL, CURLOPT_WRITEFUNCTION, ReceiveHTML);
curl_easy_setopt(pURL, CURLOPT_FILE, (void *)&chunk);
curl_easy_setopt(pURL, CURLOPT_NOBODY, 0);
CURLcode rtCode=curl_easy_perform(pURL);

But I have no idea about getting a CURLE_URL_MALFORMAT error since the URL
works well in IE when I directly type the address in the address bar. Anyone
help me?
Best regards,

Help STOP SPAM with the new MSN 8 and get 2 months FREE*

This email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
Received on 2003-02-19