How to set header in curl in PHP?
In the PHP extension library curl, you can set the option constant "CURLOPT_HTTPHEADER" through the function "curl_setopt()" to set the header. When using it, just pass the header data into the third parameter.
Copy after login
Recommended tutorial: "PHP"
The above is the detailed content of How to set header in curl in PHP?. For more information, please follow other related articles on the PHP Chinese website!