Advertisement
taujago

Untitled

Dec 1st, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1.     $req_url = $url."/".$method;
  2.     $ch = curl_init();
  3.  
  4.  
  5.     curl_setopt($ch,CURLOPT_URL, $req_url);
  6.  
  7.     curl_setopt($ch,CURLOPT_POST, 1);
  8.     curl_setopt($ch,CURLOPT_POSTFIELDS, $json_data);
  9.     curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  10.  
  11.     $result = curl_exec($ch);
  12.  
  13.  
  14.     curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement