Guest User

Untitled

a guest
May 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. ...
  2. $fields = http_build_query($data);
  3. $post = curl_init();
  4.  
  5. $url = $url . '?' . $fields;
  6. curl_setopt($post, CURLOPT_URL, $url);
  7. curl_setopt($post, CURLOPT_POST, 1);
  8. curl_setopt($post, CURLOPT_RETURNTRANSFER, false);
  9. curl_setopt($post, CURLOPT_POSTFIELDS, $fields);
  10.  
  11. $result = curl_exec($post);
  12.  
  13. curl_close($post);
Add Comment
Please, Sign In to add comment