Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $stringJ = json_encode($data);
- //Open connection
- $ch = curl_init();
- //set the url, number of POST vars, POST data
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $stringJ);
- //execute post
- $result = curl_exec($ch);
- echo $result;
- //close connection
- curl_close($ch);
- // curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement