w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Command line curl to PHP curl and PHP curl returning blank file

You didn't set the POST option:

curl_setopt($ch, CURLOPT_POST, 1);

If that doesn't work:

I notice you're connecting via SSL. Unless you have all the certificates sorted, try this

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

But read up on what this means.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.