Re: [OSM-dev] gpx upload php code

2010-03-17 Thread Andy Allan
On Wed, Mar 17, 2010 at 6:23 PM, Bernhard zwischenbrugger wrote: > Hi > > OAuth is cool, I take it. > But are there pages for iPhone? > If there is already an infrastructure, it's perfect and I have less work. I know that there's one iPhone app (Mapzen POI collector) that's using OAuth for OSM, b

Re: [OSM-dev] gpx upload php code

2010-03-17 Thread Bernhard zwischenbrugger
Hi OAuth is cool, I take it. But are there pages for iPhone? If there is already an infrastructure, it's perfect and I have less work. My idea is to use http-auth. I directly give username,password to the next http-request - also http-auth. It's a 50 lines proxy (AJAX restrictions). It would be

Re: [OSM-dev] gpx upload php code

2010-03-17 Thread Andy Allan
On Wed, Mar 17, 2010 at 1:20 PM, Peter Körner 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:

Re: [OSM-dev] gpx upload php code

2010-03-17 Thread Bernhard zwischenbrugger
Hi I think that's for normal API uploads. But not for "/multipart//form-data". Maybe I didn't see, but I think it's not here. Bernhard Iván Sánchez Ortega schrieb: > El 17/03/2010 14:13, Bernhard zwischenbrugger escribió: >> It should be possible to direct upload the data to the OSM servers. >

Re: [OSM-dev] gpx upload php code

2010-03-17 Thread Iván Sánchez Ortega
El 17/03/2010 14:13, Bernhard zwischenbrugger escribió: > It should be possible to direct upload the data to the OSM servers. [...] > Is there a php fragment somewhere, that handles the multipart-formencode > and http auth? http://trac.openstreetmap.org/browser/applications/utils/import/bulk_uploa

Re: [OSM-dev] gpx upload php code

2010-03-17 Thread Bernhard zwischenbrugger
hi I made many of these uploads already, but with normal xml. Sometimes it's a bit tricky with all the parameters. But it should be possible with a few lines like this: snip $options=array( 'http'=>array( 'method' => 'POST', 'header' => "Accept-Enc

Re: [OSM-dev] gpx upload php code

2010-03-17 Thread Peter Körner
> 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

[OSM-dev] gpx upload php code

2010-03-17 Thread Bernhard zwischenbrugger
hi I'm working now on a iPhone GPS recorder for my browser map. The GPS data are in the mobile-db and can be uploaded to my server. It's a gpx string. It should be possible to direct upload the data to the OSM servers. I found already the API doc. http://wiki.openstreetmap.org/wiki/OSM_Protocol