| | 4 | |
| | 5 | edit: |
| | 6 | Should have read the wiki first: OAuth seems to work with this site: http://osmlab.github.io/osm-note/ |
| | 7 | |
| | 8 | The http header reads: |
| | 9 | {{{ |
| | 10 | POST /api/0.6/notes.json HTTP/1.1 |
| | 11 | User-Agent: Opera/9.80 (X11; Linux x86_64) Presto/2.12.388 Version/12.10 |
| | 12 | Host: www.openstreetmap.org |
| | 13 | Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1 |
| | 14 | Accept-Language: en-US,en;q=0.9 |
| | 15 | Accept-Encoding: gzip, deflate |
| | 16 | Referer: http://osmlab.github.io/osm-note/?oauth_token=P35x5TE5tXWgpSKawhA5UiTtvcah2S0BcrRr7gQ9 |
| | 17 | Connection: Keep-Alive |
| | 18 | Content-Length: 36 |
| | 19 | Authorization: OAuth lat="0", lon="0", oauth_consumer_key="#########", oauth_nonce="#####", oauth_signature="########", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1373816587", oauth_token="#############", text="well%20mapped%20..." |
| | 20 | Origin: http://osmlab.github.io |
| | 21 | Content-Type: application/x-www-form-urlencoded |
| | 22 | }}} |
| | 23 | |
| | 24 | text content: |
| | 25 | {{{ |
| | 26 | lat=0&lon=0&text=well%20mapped%20... |
| | 27 | }}} |