Revision 646262396137 () - Diff

Link to this snippet: https://friendpaste.com/3vXPjHP6s7dLZjsj7DOfSH
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
GET /_oauth/request_token?oauth_body_hash=2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&oauth_nonce=85053887&oauth_timestamp=1303969275&oauth_consumer_key=fnord&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_token=fnorder&oauth_signature=%2BJnvkMDGLWwDygoCEQ28Q5REL3o%3D HTTP/1.1
Host: localhost:5984
accept-encoding: gzip, deflate
user-agent: Python-httplib2/$Rev$

HTTP/1.1 200 OK
Server: MochiWeb/1.0 (Any of you quaids got a smint?)
Date: Thu, 28 Apr 2011 05:41:15 GMT
Content-Length: 55

oauth_token=requestkey&oauth_token_secret=requestsecretGET /_oauth/authorize?oauth_body_hash=2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&oauth_nonce=87699909&oauth_timestamp=1303969287&oauth_consumer_key=fnord&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_token=fnorder&oauth_token=fnorder&oauth_signature=gc0ljTydr3sh%2FOaHM4FJE7hmOl4%3D HTTP/1.1
Host: localhost:5984
accept-encoding: gzip, deflate
user-agent: Python-httplib2/$Rev$

HTTP/1.1 200 OK
Server: MochiWeb/1.0 (Any of you quaids got a smint?)
Date: Thu, 28 Apr 2011 05:41:27 GMT
Content-Length: 55

oauth_token=requestkey&oauth_token_secret=requestsecretGET /_session?oauth_body_hash=2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&oauth_nonce=39639226&oauth_timestamp=1303969294&oauth_consumer_key=fnord&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_token=fnorder&oauth_signature=YRqqGEXYG9UeYmF6ZIOlic919RM%3D HTTP/1.1
Host: localhost:5984
accept-encoding: gzip, deflate
user-agent: Python-httplib2/$Rev$

HTTP/1.1 200 OK
Server: CouchDB/1.1.0a1095237 (Erlang OTP/R14B02)
Date: Thu, 28 Apr 2011 05:41:34 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 175
Cache-Control: must-revalidate

{"ok":true,"userCtx":{"name":"admin","roles":["_admin"]},"info":{"authentication_db":"_users","authentication_handlers":["oauth","cookie","default"],"authenticated":"oauth"}}
GET /_session?oauth_body_hash=2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&oauth_nonce=27944453&oauth_timestamp=1303969300&oauth_consumer_key=fnord&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_token=fnorder&oauth_signature=%2FixNRIcpir9%2F0ROMWH%2F53iusMg4%3D&foo=bar HTTP/1.1
Host: localhost:5984
accept-encoding: gzip, deflate
user-agent: Python-httplib2/$Rev$

HTTP/1.1 200 OK
Server: CouchDB/1.1.0a1095237 (Erlang OTP/R14B02)
Date: Thu, 28 Apr 2011 05:41:40 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 175
Cache-Control: must-revalidate

{"ok":true,"userCtx":{"name":"admin","roles":["_admin"]},"info":{"authentication_db":"_users","authentication_handlers":["oauth","cookie","default"],"authenticated":"oauth"}}
HEAD /_session?foo=bar HTTP/1.1
Host: localhost:5984
accept-encoding: gzip, deflate
authorization: OAuth realm="http://localhost:5984", oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_nonce="13541208", oauth_timestamp="1303969304", oauth_consumer_key="fnord", oauth_signature_method="HMAC-SHA1", oauth_version="1.0", oauth_token="fnorder", oauth_signature="7APAj9V8Ln3IB%2Fd9b%2F8qvtbthFw%3D"
user-agent: Python-httplib2/$Rev$

HTTP/1.1 500 Internal Server Error
Server: CouchDB/1.1.0a1095237 (Erlang OTP/R14B02)
Date: Thu, 28 Apr 2011 05:41:44 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 53
Cache-Control: must-revalidate