Snippets tagged “curl-setopt”
4 snippets use this tag.
- Can't connect to HTTPS site using cURL. Returns 0 length content instead. What can I do?PHP
There are several possible reasons why cURL is returning a 0 length response when trying to connect to an HTTPS site.
- Curl error 60, SSL certificate issue: self signed certificate in certificate chainPHP
This error message appears when curl is unable to verify the SSL/TLS certificate presented by the server.
- curl POST format for CURLOPT_POSTFIELDSPHP
To make a POST request with PHP's cURL functions, you can use the CURLOPT_POST option to send POST data.
- How to include Authorization header in cURL POST HTTP Request in PHP?PHP
To include the Authorization header in a cURL POST request in PHP, you can use the CURLOPT_HTTPHEADER option and pass it an array of headers like this: