12-30-2014 04:43 AM
I am trying to access the Google Maps API using SAS. I am using the URL engine in FILENAME statement to access the page. Below is the code I am using
FILENAME goog url "http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway" puser='user' ppass='pass' debug proxy='proxy.com';
However I am getting the following ERROR in log:
ERROR: Invalid reply received from the HTTP server. Use the debug option for more info.
I am able to access other websites like Yahoo, Google, etc in a similar manner.
Help is appreciated.
12-30-2014 05:13 AM
This runs fine for me (I am not using the proxy option):
FILENAME goog url "http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway" puser='user' ppass='pass' debug ;
input x $100.;
01-05-2015 09:20 AM
Well, that depends on your setup.
Do you run SAS on a local installation or do you run SAS on a server?
Does your local PC or Server have access to the internet? Do you require a proxy to access the internet?
This might be an issue to discuss with your networking/firewall/infrastructure department.