cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: (null) output from WriteMemoryCallback function

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 18 May 2004 11:16:11 +0200 (CEST)

On Tue, 18 May 2004, Mark Warburton wrote:

> When I modify the example file getinmemory.c at the end of main and add:
> printf("%s\n",chunk.memory);
>
> and compile it using:
> cc -o getinmemory getinmemory.c -l curl
> it runs perfectly and prints out the web page.
>
> BUT, when I change the url in the source file from
> http://cool.haxx.se/
> to something horrible like:
> http://v3.espacenet.com/results?
> sf=n&FIRST=1&F=0&CY=ep&LG=en&DB=EPODOC&PN=Us3
> 000000&Submit=SEARCH&=&=&=&=&=
>
> and recompile it outputs: (null) after downloading the web page

Are those the only changes you made?

Have you tried setting CURLOPT_VERBOSE to 1 to get to see more details?

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-05-18