@ 2015-12-08T12:18:25Z <?php
$down = '123'.'45'; //Mbps . Decimal
$up = '123'.'45'; //Mbps . Decimal
$ping = 1337;
$server = '3729';
$accuracy = 8;
$hash = md5("$ping-$up-$down-297aae72");
$headers = Array(
'POST /api/api.php HTTP/1.1',
'Host: www.speedtest.net',
'User-Agent: DrWhat Speedtest',
'Content-Type: application/x-www-form-urlencoded',
'Origin: http://c.speedtest.net',
'Referer: http://c.speedtest.net/flash/speedtest.swf',
'Cookie: PLACE YOUR COOKIE HERE', // change this for history tests
'Connection: Close'
);
$post = "startmode=recommendedselect&promo=&upload=$up&accuracy=$accuracy&recommendedserverid=$server&serverid=$server&ping=$ping&hash=$hash&download=$down";
//$post = urlencode($post);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.speedtest.net/api/api.php');
curl_setopt($ch, CURLOPT_ENCODING, "" );
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
$data = curl_exec($ch);
foreach (explode('&', $data) as $chunk) {
$param = explode("=", $chunk);
if (urldecode($param[0])== "resultid"){
print 'http://www.speedtest.net/my-result/'.urldecode($param[1]).' Speed test succesful.';
}
}
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.7 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/pLeqF:20
Stack trace:
#0 {main}
thrown in /in/pLeqF on line 20
Process exited with code 255 . Output for 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 Fatal error: Call to undefined function curl_init() in /in/pLeqF on line 20
Process exited with code 255 . preferences:dark mode live preview
171.86 ms | 402 KiB | 229 Q