Thank you Henrik, that solved the problem. I did not "review" the code enough, had I read the documentation for CURLOPT_HEADERFUNCTION I would have seen it also affected the write callback. My bad. Thank you for your help.
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html