curl-users
[ curl-Bugs-592857 ] example program sepheaders.c wrong
Date: Thu, 08 Aug 2002 15:43:54 -0700
Bugs item #592857, was opened at 2002-08-08 15:43
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=592857&group_id=976
Category: documentation
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: example program sepheaders.c wrong
Initial Comment:
This example program, sepheaders.c, is missing a call
to curl_easy_setopt() with the CURLOPT_WRITEDATA flag
so the callback function write_data() will get a FILE*
when its called.
Insert the following lines:
/* tell curl what file handle to pass to write_data() */
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA,
bodyfile);
after the bodyfile is opened for write.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=592857&group_id=976
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-08-09