i'm trying to update a node from my project (C#)<br>when i do the web request, the GetResponse returns with "The remote server returned an error: (417) Expectation Failed."<br><br>do i need to change the content type ? or do i have to include action='modify' in the node ?
<br><br><br> string strXml = "<?xml version='1.0' encoding='UTF-8'?><osm version='0.5' generator='OSMTAGEDITOR'><node id='30226967' lat='50.8489498
' lon='5.6878935' user='rubke' timestamp='2008-01-20T14:56:52Z'><tag k='amenity' v='place_of_worship' /><tag k='denomination' v='christian/catholic' /><tag k='name' v='St-Servaasbasiliek' /><tag k='religion' v='christian' /></node></osm>";
<br><br> HttpWebRequest HttpWRequest = (HttpWebRequest)WebRequest.Create("<a href="http://api.openstreetmap.org/api/0.5/node/30226967">http://api.openstreetmap.org/api/0.5/node/30226967</a>");<br>
HttpWRequest.PreAuthenticate = true;<br> HttpWRequest.Credentials = new NetworkCredential("xxxx", "xxxx");<br> HttpWRequest.Method = "PUT";<br> HttpWRequest.ContentLength
= strXml.Length;<br> HttpWRequest.ContentType = "text/plain";<br> using (StreamWriter writer = new StreamWriter(HttpWRequest.GetRequestStream()))<br> {<br> writer.WriteLine
(strXml);<br> }<br> WebResponse response = HttpWRequest.GetResponse();<br><br> using (StreamReader reader = new StreamReader(response.GetResponseStream()))<br> {<br> while (
reader.Peek() != -1)<br> {<br> Console.WriteLine(reader.ReadLine());<br> }<br> }<br>