Curl command to PHP script

So I need to create a Curl Script in my PHP and I am confused I dont know that much Curl (As in I only know how to copy and paste and cross my fingers).

The Curl Command is

curl https://website.com/v1/route -u key-of-power

so far I have

                $ch = curl_init();
                curl_setopt ( $ch, CURLOPT_URL, https://website.com/v1/route);
                curl_setopt ( $ch, CURLOPT_POST, 1 );
                curl_setopt ( $ch, CURLOPT_POSTFIELDS, $data);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                curl_setopt ($ch, CURLOPT_TIMEOUT, 30);
                $payment_response = curl_exec ($ch);
                curl_close ($ch);

so I need to know where key-of-power goes so my curl can pass.

Thank in advance!!


Download curl.command.to.php.script.zip
Direct Link


Download


Download curl.command.to.php.script.zip
Mediafire


Download


Download curl.command.to.php.script.zip
Filevice


Download

Both comments and pings are currently closed.

Comments are closed.