Guest User

Untitled

a guest
Nov 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. <?php
  2.  
  3. $url = 'http://example.com/api/';
  4.  
  5. $ch = curl_init($url);
  6. curl_setopt($ch, CURLOPT_POST, 1);
  7. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
  8. $result = curl_exec($ch);
Add Comment
Please, Sign In to add comment