[OSM-talk] GPS trace tab
Erik Johansson
erjohan at gmail.com
Tue Mar 14 07:57:52 GMT 2006
On 3/14/06, Tom Carden <tom at tom-carden.co.uk> wrote:
> On 3/13/06, nick at hogweed.org <nick at hogweed.org> wrote:
> >
> > How hard would it be to use HTTP authentication and use a textarea to paste
> > GPX into? That way, clients could call the GPX upload through HTTP client
> > libraries like cURL.
> >
>
> I know you're talking about libcurl, which I've not used for years,
> but doesn't cURL cope perfectly well with multipart forms?
>
>
> would work with OSM, no?
Yes, but you will get logged out by doing this.
curl -d "email=$EMAIL&pass=$PASSWD&action=login" -c osm-cookie
http://www.openstreetmap.org/login.html
curl -b osm-cookie -F gpxfile=@/$FILEPATH/$FILE
http://www.openstreetmap.org/upload.html
--
/Erik
More information about the talk
mailing list