Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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