0
I found this website http://www.fonefinder.net/findome.php , that locates phone provider by number (ex: http://www.fonefinder.net/findome.php?npa=562&nxx=866&thoublock=1666) shows VERIZON CALIFORNIA INC.-CA (GTE) . I am trying to get result using linux curl and through php curl but receive "You must input more numeric digits." like no data is sent. I tried below methods and they do not work. What is wrong and how can i get results?
curl --data "npa=562&nxx=866&thoublock=1666&usaquerytype" \
link --header "Content-Type:text/html"
also tried x-www-form and with this script:
<?
//extract data from the post
extract($_POST);
//set POST variables
$url = 'link';
$fields = array('npa' => urlencode(544), );
//url-ify the data for the POST
foreach($fields as $key=>$value) {
$fields_string .= $key.'='.$value.'&';
}
rtrim($fields_string, '&');
//open connection
$ch = curl_init();
//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
//execute post
$result = curl_exec($ch);
echo "$result";
//close connection
curl_close($ch);
?>
All methods result in "You must input more numeric digits."
Why POST? Their form appears to use GET. – Lars Rohrbach – 2015-07-04T00:06:42.577