[OSM-talk] GPS trace tab
Tom Carden
tom at tom-carden.co.uk
Tue Mar 14 00:31:36 GMT 2006
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?
Something like (not tested)...
curl -d "email=you at example.com&pass=yourpass&action=login" -c
cookies.txt http://www.openstreetmap.org/login.html
curl -b cookies.txt -F upload=example.gpx -F submit=Upload
http://www.openstreetmap.org/upload.html
would work with OSM, no?
Tom.
More information about the talk
mailing list