caomike / poster-extension

Automatically exported from code.google.com/p/poster-extension
0 stars 0 forks source link

How to send Authorization header for OAuth #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. This is a general query 

What version of the product are you using? On what operating system?
Firefox 3.6 on Windows 7 calling to PHP/Apache

Please provide any additional information below.
I'd like to send OAuth details with couple of extra parameters usign the 
Authorization header. 

Can I simply paste something like this in to the 'Content to Send' tab:

POST /drupal_iphone/services/json?uid=1&method=%22user.get%22 HTTP/1.1
Host: localhost:80
Authorization: OAuth realm="http://localhost/drupal_iphone/",
    oauth_consumer_key="abcdefghijklmnopqrstuvwxyz",
    oauth_token="abcdefghijklmnopqrstuvwxyz",
    oauth_nonce="3037275",
    oauth_timestamp="1285692220",
    oauth_signature_method="HMAC-SHA1",
    oauth_version="1.0",
    oauth_signature="n33BKabcdefghijklmnopqrstuvwxyzTUQ%3D"

Do I use 'POST' or submit and leave the URL value with no parameters etc: 
http://localhost/drupal_iphone/services/json

Original issue reported on code.google.com by rikki...@gmail.com on 28 Sep 2010 at 4:16

GoogleCodeExporter commented 8 years ago
You have to put the header in as a value.  The value field isn't very good for 
very large header values but it should work.

Click on the 'headers' tab to do this.

I'm going to leave this open as an enhancement because Poster should really 
support large header entries.

Original comment by a...@milowski.com on 29 Mar 2011 at 3:14

GoogleCodeExporter commented 8 years ago
Thanks Alex.

I think I spoke to you directly about this a while ago.

Richard

Original comment by rikki...@gmail.com on 29 Mar 2011 at 3:34

GoogleCodeExporter commented 8 years ago
Making the text input adjustable doesn't work very well.  I'll have to add a 
double-click action.

Original comment by a...@milowski.com on 11 Oct 2011 at 7:54