3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "http://10.0.0.222/iptecno/posicio-global?destination=node/6"; $postData = array("name" => "roberto", "pass" => "Razorin00", "op" => "Log in", "form_id" => "user_login_block"); $elements = array(); foreach ($postData as $name=>$value) { $elements[] = "{$name}=".urlencode($value); } $handler = curl_init(); curl_setopt($handler, CURLOPT_URL, $url); curl_setopt($handler, CURLOPT_POST,true); curl_setopt($handler, CURLOPT_POSTFIELDS, $elements); $response = curl_exec ($handler); curl_close($handler); print_r($response);