scream78 / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

python client example code don't using httplib properly #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
line 62 : 
self.connection.request(oauth_request.http_method, self.request_token_url, 
headers=oauth_request.to_header()) 

second argument should be a path not the full url . 

GET http://xxx.xxxx.com/oauth/get_request_token HTTP/1.1
Host: xxx.xxxx.com
Accept-Encoding: identity
Authorization: OAuth realm="", oauth_nonce="50270268", 
oauth_timestamp="1256217898", oauth_consumer_key="some-key", 
oauth_signature_method="HMAC-SHA1", oauth_version="1.0", 
oauth_signature="Ttkf%2FRm%2BEq6HSb4C0qTKlBx5Ups%3D"'

that's bad . 
should be 

GET /oauth/get_request_token HTTP/1.1

Original issue reported on code.google.com by Filia....@gmail.com on 22 Oct 2009 at 1:28

GoogleCodeExporter commented 9 years ago

Original comment by morten.f...@gmail.com on 5 Jan 2010 at 11:36