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&output=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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
CF 8 – Scorpio beta now available, 
easily build great internet experiences – Try it now on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280517
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to