Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $req_url = $url."/".$method;
- $ch = curl_init();
- curl_setopt($ch,CURLOPT_URL, $req_url);
- curl_setopt($ch,CURLOPT_POST, 1);
- curl_setopt($ch,CURLOPT_POSTFIELDS, $json_data);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
- $result = curl_exec($ch);
- curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement