How to change Request-Header for OAuth Request?!

83 views
Skip to first unread message

Jochen

unread,
Dec 1, 2011, 9:54:10 AM12/1/11
to OAuth Ruby
Hey there,

I'm kinda new to this whole OAuth-Thing and am trying to Access the
discogs-api via an OAuth-Authentification. But this is only possible,
when I enable "Accept-Encoding: gzip" in the Header.

At the moment I'm usig

consumer = OAuth::Consumer.new "********", "********", {:site=>"http://
api.discogs.com"}

and as result of the wron Header Information I always get
"OAuth::Unauthorized: 406 Not Acceptable" when i call

h.get_request_token

Can anyone tell how I can change the Header of Oauth-Requests?!

Thanks in advance!


Reply all
Reply to author
Forward
0 new messages