I've gotten similar errors with the yahoo api, and I've had to add
charset="utf-8" to the cfhttp code:
Like this
<cfhttp url="http://local.yahooapis.com/MapsService/V1/geocode"
charset="utf-8" timeout="180">
Russ
> -----Original Message-----
> From: Wilfried Wacker [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 08, 2007 5:58 PM
> To: CF-Talk
> Subject: cfhhtp for geoocding with google maps
>
> Hallo,
> i need the koordinates from an Adress.
> Google-Maps API allowd a Call via http like:
> --------
> http://maps.google.com/maps/geo?q=musterstr%201,+12345%20Berlin,+DE&output
> =csv&key=xxxxx
> The result is the Koordinates
> --------
> If i use cfhhtp with the same parameters, i always becom an error.
>
> The used Code is:
> ------------
> <cfhttp
> url="http://maps.google.com/maps/geo?q=musterstr%201,+12345%20Berlin,+DE&o
> utput=csv&key=xxxxx"
> method="GET"
> resolveurl="true">
> <CFHTTPPARAM type="HEADER" name="User-Agent" value="Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.0)">
> <CFHTTPPARAM type="HEADER" name="Connection" value="Keep-Alive">
> <CFHTTPPARAM type="HEADER" name="Cache-Control" value="no-cache">
>
> </cfhttp>
> <cfoutput>#cfhttp.fileContent#
> <CFDUMP var="#FORM#">
>
> </cfoutput>
> -----------------
>
> The answer from the CF-Server:
> -----------
> Filecontent: Connection Failure
>
> Header: HTTP/1.1 200 OK Content-Type: text/plain; charset=UTF-8;
> charset=UTF-8 Set-Cookie:
> PREF=ID=ded1e7d3cb548bb2:TM=1181340230:LM=1181340230:S=xlwEN2gN-Ok9ngKb;
> expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com Date:
> Fri, 08 Jun 2007 22:03:50 GMT Last-Modified: Fri, 08 Jun 2007 22:03:50 GMT
> Cache-Control: private Server: mfe
> ------------
>
> can somone help me?
>
> (W2K Server with IIS, CF MX 6.1, no Proxy)
>
> Best regards.
>
> Wilfried
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280520
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4