Skip to main content
Known Participant
December 29, 2010
Question

CFHTTP Connection Timeout Google API

  • December 29, 2010
  • 1 reply
  • 1079 views

Hi, I'm having an issue with cfhttp.  If I enter the following in a browser.

http://maps.googleapis.com/maps/api/geocode/json?address=Chicago,+IL&sensor=false

It tries to download a JSON file (exactly what I want).

If I use the following code it times out.

<cfhttp url="http://maps.googleapis.com/maps/api/geocode/json?address=Chicago,+IL&sensor=false" result="geoJson" method="get" resolveurl="no" throwonerror="yes" charset="utf-8" timeout="20"></cfhttp>

If I enter one of my sites as the URL it works so its specific to the googleapis.  I'm using the V3 setup which no longer requires a key. I've moved the timeout value up, down and removed it with the same thing (just letting you know to rule that out).

Any ideas?

Thanks so much for any help!

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
December 29, 2010

I'd start by running a sniffer like Fiddler in your browser to see if there are any HTTP headers that need to be included when you do the CFHTTP tag. If there are any then just include them via CFHTTPPARAMs.

-reed