#!/usr/local/bin/php -q
<?php
function check_squid($url,$proxy){
$http = curl_init();
curl_setopt($http,CURLOPT_PROXY,$proxy);
curl_setopt($http,CURLOPT_URL,$url);
$result = curl_exec($http);
curl_close($http);
return $result;
}
if(!check_squid("https://www.linuxidc.com","{$_SERVER["argv"][1]}:8080")) exit(2);
?>