On Wed, Mar 17, 2010 at 1:20 PM, Peter Körner <[email protected]> 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

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to