[OSM-talk] Edit OSM Attributes

Christopher Schmidt crschmidt at metacarta.com
Mon Nov 27 14:34:43 GMT 2006


On Mon, Nov 27, 2006 at 03:09:26PM +0100, Thomas Walraet wrote:
> Christopher Schmidt a ?crit :
> > 
> > Alternatively, I can ask for OSM usernames and passwords. Let me tell
> > you how excited it makes me to collect login information on an off-site
> > service. (Not at all.)
> 
> Can't you just generate an HTTP POST request for the user browser to the 
> OSM API ?

No, because the API requires PUT.

> User identification is done via HTTP, so the browser should pop the 
> dialog asking login and password...
> 
> It's already working that way when I use the "OSM API" link on you map.

Yep, works great for the GET request. Unfortunately, the only way to do
a PUT via the browser is XMLHttpRequest, which is limited by
cross-domain restrictions, which means that it's a no-go.

Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the talk mailing list