Hi all,<div><br></div><div>I have the following code to create a changeset which works okay with the production URL <b style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)"><a href="http://api.openstreetmap.org/" class="external free" rel="nofollow" style="text-decoration:none;color:rgb(51,102,187);background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeF59z4EJADEIQ1F36k7u5E7ZKXeUQPACJ3wK7UNokVxVk9kHnQH7bY9hbDyDhNXgjpRLqFlo4M2GgfyJHhjq8V4agfrgPQX3JtJQGbofmCHgA/nAKks+JAjFAAAAAElFTkSuQmCC');background-color:initial;padding-right:13px;background-repeat:no-repeat no-repeat">http://api.openstreetmap.org/</a> . </b><span style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)">The code however returns an error when i use the test api url of </span><span style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)"> </span><b style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)"><a href="http://api06.dev.openstreetmap.org/" class="external free" rel="nofollow" style="color:rgb(51,102,187);background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeF59z4EJADEIQ1F36k7u5E7ZKXeUQPACJ3wK7UNokVxVk9kHnQH7bY9hbDyDhNXgjpRLqFlo4M2GgfyJHhjq8V4agfrgPQX3JtJQGbofmCHgA/nAKks+JAjFAAAAAElFTkSuQmCC');background-color:initial;padding-right:13px;background-repeat:no-repeat no-repeat">http://api06.dev.openstreetmap.org/</a>. </b><span style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)">Is the test api down now or is there any thing wrong with my code. Thanks.</span></div>
<div><span style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)"><br></span></div><div><font face="sans-serif"><span style="line-height:19px">function createChangeset() {</span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> var d = $.Deferred();</span></font></div><div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> $.ajax({</span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> url: '<a href="http://api.openstreetmap.org/api/0.6/changeset/create">http://api.openstreetmap.org/api/0.6/changeset/create</a>',</span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> type: 'POST',</span></font></div><div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> </span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> data: "<osm><changeset><tag k='created_by' v='Easymappr' /><tag k='comment' v='OSM edited with EasyMappr' /></changeset></osm>",</span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> beforeSend: makeBeforeSend("PUT"),</span></font></div><div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> success: function(resp) {</span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> d.resolve(resp);</span></font></div><div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> alert(resp);</span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> },</span></font></div><div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> error: function(err){</span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> d.reject(err);</span></font></div><div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> alert("Error: "+err);</span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> },</span></font></div><div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> timeout: 30 * 1000</span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> });</span></font></div><div><font face="sans-serif"><span style="line-height:19px"><br></span></font></div>
<div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span> return d;</span></font></div><div><font face="sans-serif"><span style="line-height:19px"><span class="Apple-tab-span" style="white-space:pre"> </span>}</span></font></div>
<div><span style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)"><br></span></div><div><span style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)">Regards,</span></div>
<div><span style="font-family:sans-serif;font-size:13px;line-height:19px;background-color:rgb(255,255,255)">David </span></div>