Does not work appeal to the domain (or IP) by using the port.
Example:
WORK!
NOT WORK!
Why?
I want to use some of the API, but they work only with the port!
Example API:
http://ipgeobase.ru:7020/geo?ip=5.255.255.5&json=1
CURL also does not work.
Example:
NOT WORK!
Example:
Code:
file_get_contents('http://google.com');
Code:
file_get_contents('http://google.com:80');
Why?
I want to use some of the API, but they work only with the port!
Example API:
http://ipgeobase.ru:7020/geo?ip=5.255.255.5&json=1
CURL also does not work.
Example:
Code:
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => 'http://ipgeobase.ru:7020/geo?ip=5.255.255.5&json=1',
CURLOPT_RETURNTRANSFER => 1
));
exit(var_dump(curl_exec($ch)));