GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
curl and geonames  XML
Forum Index -> General
Author Message
gonche1124



Joined: 20/11/2011 18:31:25
Messages: 1
Offline

I'm writing an applescript that uses curl to get the contents of the api.goname.org webpage. But every time I ran the query:

Code:
 "http://api.geonames.org/findNearbyWikipedia?lat=47&lng=9&username=XXX"
 


I get:
Code:
 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <geonames> <status message="Please add a username to each call in order for geonames to be able to identify the calling application and count the credits usage." value="10"/> </geonames> 


I don't know if curl doesn't work with geonames because when I paste the url in safari, it works fine!

Any help will be appreciated!

Thanks
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

Did you add the quotes? Without quotes the shell will cut the url.

Best

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team