[OSM-dev] OSM API
Jason Dent
jason at streetsidesoftware.nl
Mon Feb 18 18:32:17 GMT 2008
I am a bit new to working with the OSM data and api. So I am following the
Using curl to upload data example.
This is the command line I used (I substituted my user name and password):
curl -u user:password -i -o output.txt -T node.txt
http://api.openstreetmap.org/api/0.5/node/create
This is what I got:
HTTP/1.1 417 Expectation Failed
Connection: close
Content-Length: 0
Date: Mon, 18 Feb 2008 18:20:14 GMT
Server: lighttpd/1.4.13
The contents of node.txt is:
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.5" generator="OSM API server">
<node lat="52.3732639" lon="4.6198278">
<tag k="name" v="House"/>
<tag k="description" v="Test House to be deleted"/>
<tag k="user" v="jdent"/>
</node>
</osm>
As you may guess, after I created it I was planning on deleting it. But
first, I need to successfully creat it.
The problem is, I don't know how to interpret error 417. I searched the OSM
site, but that wasn't much help.
Would someone please tell me where I am going wrong?
Thank you,
Jason
More information about the dev
mailing list