hi. i wonder as if `CURL object in PHP` corresponds in ASP.
as if you want to see example.
PHP Code:function ulkeBul($ip) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://ip-to-country.webhosting.info/node/view/36");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'ip_address='.$ip.'');
$kaynak = curl_exec ($ch);
curl_close ($ch);
preg_match("'belongs to <b>(.*?)</b>'s", $kaynak , $donen);
return $donen["1"];
}
echo ulkeBul($_SERVER["REMOTE_ADDR"]);
i want to implement that example. As if someone can help me..


Reply With Quote

Bookmarks