Hope you're keeping well.
I'm setting up a new site. Have setup the Awin feeds using the automation tool with no problem. However, all the Webgains feeds come empty.
It is not the feed url as I downloaded one manually and the feed was fine.
I had this problem before (https://www.pricetapestry.com/node/6775 ), but when I tried your correction for curl_setopt($ch,CURLOPT_HEADER,0); it broke the site.
I know that I managed to get it working previously, but stupidly for some reason I forgot to make a note of what happened and how it got working.
On this site I downloaded a fresh install of PT.