[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.

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

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' =

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?

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 osm-li...@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

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

Re: [OSM-dev] gpx upload php code

2010-03-17 Thread Andy Allan
On Wed, Mar 17, 2010 at 6:23 PM, Bernhard zwischenbrugger b...@datenkueche.com 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