On Wed, 14 Mar 2012, Jeff Pratt wrote:
cresult = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); curl_slist_free_all(headers); /* free custom header list */
CURLOPT_HTTPHEADER will _not_ copy the list you pass in, so you better let it linger around until after you've called curl_easy_perform()...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
