Changes between Initial Version and Version 1 of Ticket #8193, comment 15


Ignore:
Timestamp:
2013-07-14T17:49:59+02:00 (13 years ago)
Author:
bastiK

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8193, comment 15

    initial v1  
    22
    33As JOSM is probably the first external user of the Notes API (?) the problem with OAuth could in principle also be on the server side.
     4
     5edit:
     6Should have read the wiki first: OAuth seems to work with this site: http://osmlab.github.io/osm-note/
     7
     8The http header reads:
     9{{{
     10POST /api/0.6/notes.json HTTP/1.1
     11User-Agent: Opera/9.80 (X11; Linux x86_64) Presto/2.12.388 Version/12.10
     12Host: www.openstreetmap.org
     13Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
     14Accept-Language: en-US,en;q=0.9
     15Accept-Encoding: gzip, deflate
     16Referer: http://osmlab.github.io/osm-note/?oauth_token=P35x5TE5tXWgpSKawhA5UiTtvcah2S0BcrRr7gQ9
     17Connection: Keep-Alive
     18Content-Length: 36
     19Authorization: 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..."
     20Origin: http://osmlab.github.io
     21Content-Type: application/x-www-form-urlencoded
     22}}}
     23
     24text content:
     25{{{
     26lat=0&lon=0&text=well%20mapped%20...
     27}}}