Question : curl get example
Answered by : yucky-yak-ecsdj7sqtmzw
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Source : https://stackoverflow.com/questions/14978411/http-post-and-get-using-curl-in-linux | Last Update : Wed, 08 Jul 20
Question : curl get return code
Answered by : uptight-unicorn-rtu7lrf8814i
curl -I http://www.example.org
Source : https://superuser.com/questions/272265/getting-curl-to-output-http-status-code | Last Update : Thu, 25 Mar 21
Question : Curl Get
Answered by : shaniba-shanif
public function sendSms($mobile)
{ $message ='Your message'; $url = 'www.your-domain.com/api.php?to='.$mobile.'&text='.$message; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec ($ch); $err = curl_error($ch); //if you need curl_close ($ch); return $response;
}
Source : https://stackoverflow.com/questions/48279382/curl-request-in-laravel | Last Update : Tue, 02 Aug 22