"demo", "passw"=> "demo", ); $data = http_build_query($post); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "http://google.com"); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); curl_close($curl); //file_put_contents($post["vucemCove"].".xml", $response); echo "Resultado del CURL ".$response;