drupal_http_request times out on Google Maps geocoding URL
-
07-11-2019 - |
Question
When I navigate to http://maps.google.com/maps/api/geocode/json?address=1200+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false
(the Google Maps Geocoding API test address) in my browser (Chrome), I get a json response as expected. However, when I drupal_http_request()
the same url, I get a request timeout error. I tried setting the timeout to 60 instead of 30 but it doesn't help.
Why does drupal_http_request('http://maps.google.com/maps/api/geocode/json?address=1200+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false')
return a timeout error?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange