• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFHTTP Connection Timeout Google API

New Here ,
Dec 29, 2010 Dec 29, 2010

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!

TOPICS
Advanced techniques

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 29, 2010 Dec 29, 2010

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation