Curl request is failing on the SSL?

I have this code if(ereg(“^(https)”,$url)) curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false); // execute, and log the result to curl_put.log $result = curl_exec($curl); $error =…

Calling php code from php code on different server

The situation is following. I have a local (development) PHP server (Win + IIS) on my computer and I would like to call a function on a remote server because there is an executable file on the remote …

How do I make a request using HTTP basic authentication with PHP curl?

I’m building a REST web service client in PHP and at the moment I’m using curl to make requests to the service. How do I use curl to make authenticated (http basic) requests? Do I have to add the …