In quite a few curl examples people use:
curl_setopt($ch, CURLOPT_HEADER, 0);
What is the benefit of doing this?
I managed to display an image and I want to know what options I should put on/off and why.
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1); // use?
curl_setopt($curlGetToken, CURLOPT_ENCODING, 'gzip'); // does it slow down MY server
When CURLOPT_HEADER is set to 0 the only effect is that header info from the response is excluded from the output. So if you don’t need it that’s a few less KBs that curl will return to you.