Welcome Guest, Not a member yet? Register   Sign In
What's the interest of setting CURLOPT_HEADER to true by default?
#1

Hello,

I was working for the first time with the CurlRequestClass today and found out that CURLOPT_HEADER was at true by default in CURLRequest.php. As a reminder this makes CURL set some headers in the body response which can be unhandy while working with REST API for example.

I wonder what's the main point of this and, if there's any, why isn't there any method in the library to set the curl options ourselves?  Smile
I might aswell miss something.

Thanks for your responses.
Reply


Messages In This Thread
What's the interest of setting CURLOPT_HEADER to true by default? - by ViLar - 07-15-2020, 07:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB