Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendPostData($url, $post = array()){
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
- curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));
- return curl_exec($ch);
- }
Advertisement
Add Comment
Please, Sign In to add comment