i want to submit any IP address to this site with cUrl
. my cUrl options could not work correctly:
$h = curl_init();
curl_setopt($h, CURLOPT_URL, "http://www.whatismyip.com/ip-whois-lookup/");
curl_setopt($h, CURLOPT_POST, true);
curl_setopt($h, CURLOPT_POSTFIELDS, array(
'IP' => '2.179.144.117',
'submitted' => 'submitted'
));
curl_setopt($h, CURLOPT_HEADER, false);
curl_setopt($h, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($h);
echo $result;