Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

curl get example

curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Comment

curl get return code

curl -I http://www.example.org
Comment

curl detailed response

curl -i google.de
Comment

Curl Get

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;
}
Comment

curl get request

curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET http://hostname/resource
Comment

PREVIOUS NEXT
Code Example
Shell :: check ram arch linux 
Shell :: is there any difference between git push and git push origin master 
Shell :: git update password 
Shell :: nvm change node version 
Shell :: git force sync with remote 
Shell :: how to go to a folder in git bash 
Shell :: github start ssh agent 
Shell :: install android sdk 
Shell :: Kali free ports in use 
Shell :: global configuration git 
Shell :: install brew on linux 
Shell :: brew install mongodb 
Shell :: windows vpn service 
Shell :: Skype Downlaod Command. 
Shell :: find command recursive 
Shell :: install gatsby typography 
Shell :: docker update all images 
Shell :: shell load file as variable 
Shell :: optimize github repo 
Shell :: install opencv raspberry pi 
Shell :: vim jump to line number 
Shell :: how to uninstall all powershell modules 
Shell :: tinymce django install 
Shell :: git unadd all files 
Shell :: istio grafana 
Shell :: how to start docker in ubuntu 
Shell :: how to install terraform macos 
Shell :: count number of lines in directory linux 
Shell :: bash read file line by line 
Shell :: list users in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =