Msg#: 4571024 posted 8:01 am on May 6, 2013 (gmt 0)
hi i have created the code to check the status of the url enter by the client which check the status is 200 or not, but i return 200 also whether url does not exist please help. $url="Some url"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); curl_exec($ch); $retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo $retcode;
Msg#: 4571024 posted 6:42 pm on May 6, 2013 (gmt 0)
same problem as me, this is why (your internet provider) is probably your ISP and when the DNS lookup fails they are hijacking your request and returning their search page. do a search on "NXDOMAIN response hijacking"