Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- $fields = http_build_query($data);
- $post = curl_init();
- $url = $url . '?' . $fields;
- curl_setopt($post, CURLOPT_URL, $url);
- curl_setopt($post, CURLOPT_POST, 1);
- curl_setopt($post, CURLOPT_RETURNTRANSFER, false);
- curl_setopt($post, CURLOPT_POSTFIELDS, $fields);
- $result = curl_exec($post);
- curl_close($post);
Add Comment
Please, Sign In to add comment