[OSM-dev] gpx upload php code

Andy Allan gravitystorm at gmail.com
Wed Mar 17 16:51:44 GMT 2010


On Wed, Mar 17, 2010 at 1:20 PM, Peter Körner <osm-lists at mazdermind.de> wrote:
>> Is there a php fragment somewhere
> yep, it's in PEAR:
> http://pear.php.net/package/HTTP_Request
>
>> that handles the multipart-formencode
> http://pear.php.net/manual/en/package.http.http-request.file-upload.php
>
>> and http auth?
> http://pear.php.net/manual/en/package.http.http-request.basic-auth.php

It would be better to use OAuth for this, so that you aren't asking
for people's passwords. See

http://wiki.openstreetmap.org/wiki/OAuth

There is a specific code example about using OAuth with multipart-form
uploads, since it's about the hardest thing to do with the OSM API.
See
http://wiki.openstreetmap.org/wiki/OAuth/Examples

It's in Ruby, but it would be great if people translated these
examples into other languages like PHP.

Cheers,
Andy




More information about the dev mailing list