url
stringlengths
50
53
repository_url
stringclasses
1 value
labels_url
stringlengths
64
67
comments_url
stringlengths
59
62
events_url
stringlengths
57
60
html_url
stringlengths
38
43
id
int64
597k
2.65B
node_id
stringlengths
18
32
number
int64
1
6.83k
title
stringlengths
1
296
user
dict
labels
listlengths
0
5
state
stringclasses
2 values
locked
bool
2 classes
assignee
dict
assignees
listlengths
0
4
milestone
dict
comments
int64
0
211
created_at
stringlengths
20
20
updated_at
stringlengths
20
20
closed_at
stringlengths
20
20
author_association
stringclasses
3 values
active_lock_reason
stringclasses
4 values
body
stringlengths
0
65.6k
closed_by
dict
reactions
dict
timeline_url
stringlengths
59
62
performed_via_github_app
null
state_reason
stringclasses
3 values
draft
bool
2 classes
pull_request
dict
is_pull_request
bool
2 classes
issue_comments
listlengths
0
30
https://api.github.com/repos/psf/requests/issues/28
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/28/labels{/name}
https://api.github.com/repos/psf/requests/issues/28/comments
https://api.github.com/repos/psf/requests/issues/28/events
https://github.com/psf/requests/pull/28
888,317
MDExOlB1bGxSZXF1ZXN0MTQ0MzI1
28
Encode both keys and values for incoming unicode data as UTF-8
{ "avatar_url": "https://avatars.githubusercontent.com/u/195266?v=4", "events_url": "https://api.github.com/users/jgorset/events{/privacy}", "followers_url": "https://api.github.com/users/jgorset/followers", "following_url": "https://api.github.com/users/jgorset/following{/other_user}", "gists_url": "https://api.github.com/users/jgorset/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgorset", "id": 195266, "login": "jgorset", "node_id": "MDQ6VXNlcjE5NTI2Ng==", "organizations_url": "https://api.github.com/users/jgorset/orgs", "received_events_url": "https://api.github.com/users/jgorset/received_events", "repos_url": "https://api.github.com/users/jgorset/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgorset/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgorset/subscriptions", "type": "User", "url": "https://api.github.com/users/jgorset", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2011-05-12T08:27:35Z
2021-09-08T11:00:59Z
2011-05-12T14:12:16Z
CONTRIBUTOR
resolved
Hi Kenneth, I've pushed a commit that improves upon [b6f60](https://github.com/kennethreitz/requests/commit/b6f6048cff7189afee6a4fb89f9f0cdca0095b66) to encode both keys and values as UTF-8 byte strings, coincidentally fixing a bug that caused byte strings that were already encoded as UTF-8 from being encoded again and causing an UnicodeDecodeError.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/28/reactions" }
https://api.github.com/repos/psf/requests/issues/28/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/28.diff", "html_url": "https://github.com/psf/requests/pull/28", "merged_at": "2011-05-12T14:12:16Z", "patch_url": "https://github.com/psf/requests/pull/28.patch", "url": "https://api.github.com/repos/psf/requests/pulls/28" }
true
[ "Excellent, thank you!\n" ]
https://api.github.com/repos/psf/requests/issues/27
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/27/labels{/name}
https://api.github.com/repos/psf/requests/issues/27/comments
https://api.github.com/repos/psf/requests/issues/27/events
https://github.com/psf/requests/issues/27
868,398
MDU6SXNzdWU4NjgzOTg=
27
Facilitation for non-ASCII-compatible unicode strings
{ "avatar_url": "https://avatars.githubusercontent.com/u/195266?v=4", "events_url": "https://api.github.com/users/jgorset/events{/privacy}", "followers_url": "https://api.github.com/users/jgorset/followers", "following_url": "https://api.github.com/users/jgorset/following{/other_user}", "gists_url": "https://api.github.com/users/jgorset/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgorset", "id": 195266, "login": "jgorset", "node_id": "MDQ6VXNlcjE5NTI2Ng==", "organizations_url": "https://api.github.com/users/jgorset/orgs", "received_events_url": "https://api.github.com/users/jgorset/received_events", "repos_url": "https://api.github.com/users/jgorset/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgorset/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgorset/subscriptions", "type": "User", "url": "https://api.github.com/users/jgorset", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}...
{ "closed_at": "2011-05-15T03:01:19Z", "closed_issues": 4, "created_at": "2011-04-14T23:55:10Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }, "description": "Next major release.", "due_on": "2011-05-14T07:00:00Z", "html_url": "https://github.com/psf/requests/milestone/4", "id": 3279, "labels_url": "https://api.github.com/repos/psf/requests/milestones/4/labels", "node_id": "MDk6TWlsZXN0b25lMzI3OQ==", "number": 4, "open_issues": 0, "state": "closed", "title": "v0.4.0", "updated_at": "2013-02-14T23:18:22Z", "url": "https://api.github.com/repos/psf/requests/milestones/4" }
1
2011-05-09T10:55:08Z
2021-09-09T13:05:54Z
2011-05-12T07:14:16Z
CONTRIBUTOR
resolved
requests is incompatible with unicode strings that contain non-ASCII characters because it relies on urllib to coerce dictionaries into their query string equivalents: ``` Traceback (most recent call last): File "test.py", line 5, in <module> print requests.get('http://example.org', params={'foo': u'føø'}) File "/Library/Python/2.6/site-packages/requests/core.py", line 467, in get return request('GET', url, params=params, headers=headers, cookies=cookies, auth=auth) File "/Library/Python/2.6/site-packages/requests/core.py", line 451, in request auth=kwargs.pop('auth', auth_manager.get_auth(url))) File "/Library/Python/2.6/site-packages/requests/core.py", line 76, in __init__ self._enc_data = urllib.urlencode(data) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 1261, in urlencode v = quote_plus(str(v)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128) ``` This shortcoming has been [discussed](http://mail.python.org/pipermail/python-dev/2006-July/067248.html) in the python-dev mailing list, wherein it is agreed that urllib should raise a TypeError if its arguments are not byte strings. This was never implemented, however, and while the exception it raises now is certainly an improvement to the one it produced back then, urllib continues to raise it only if an unicode string cannot be encoded with the system's default encoding (which, in turn, defaults to ASCII). ``` # This works, because all characters in the word "foo" exist in ASCII requests.get('http://example.org', params={'foo': u'foo'}) # This doesn't work, because "ø" does not exist in ASCII requests.get('http://example.org', params={'foo': u'føø'}) # This remedies the issue, but is arguably not the right place to be doing it requests.get('http://example.org', params={'foo': u'føø'.encode('utf-8')}) ``` It may be outside the scope of this library to facilitate for urllib so that it does not choke on ASCII-incompatible unicode strings, but I would at least consider to either transparently encode unicode strings as UTF-8 or raise a TypeError upon receiving unicode strings as request data or parameters.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/27/reactions" }
https://api.github.com/repos/psf/requests/issues/27/timeline
null
completed
null
null
false
[ "First off, thanks for this extremely thorough Issue. I wish they were all was like this. :cake:\n\nPutting workarounds in place for urllib's fallacies is a definite goal of this project. \n\nNew Feature: **transparently convert unicode url strings to UTF 8-encoded byte strings**\n" ]
https://api.github.com/repos/psf/requests/issues/26
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/26/labels{/name}
https://api.github.com/repos/psf/requests/issues/26/comments
https://api.github.com/repos/psf/requests/issues/26/events
https://github.com/psf/requests/pull/26
799,308
MDExOlB1bGxSZXF1ZXN0MTI0MDkx
26
Context manager for settings
{ "avatar_url": "https://avatars.githubusercontent.com/u/195266?v=4", "events_url": "https://api.github.com/users/jgorset/events{/privacy}", "followers_url": "https://api.github.com/users/jgorset/followers", "following_url": "https://api.github.com/users/jgorset/following{/other_user}", "gists_url": "https://api.github.com/users/jgorset/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgorset", "id": 195266, "login": "jgorset", "node_id": "MDQ6VXNlcjE5NTI2Ng==", "organizations_url": "https://api.github.com/users/jgorset/orgs", "received_events_url": "https://api.github.com/users/jgorset/received_events", "repos_url": "https://api.github.com/users/jgorset/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgorset/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgorset/subscriptions", "type": "User", "url": "https://api.github.com/users/jgorset", "user_view_type": "public" }
[]
closed
true
null
[]
{ "closed_at": "2011-05-15T03:01:19Z", "closed_issues": 4, "created_at": "2011-04-14T23:55:10Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }, "description": "Next major release.", "due_on": "2011-05-14T07:00:00Z", "html_url": "https://github.com/psf/requests/milestone/4", "id": 3279, "labels_url": "https://api.github.com/repos/psf/requests/milestones/4/labels", "node_id": "MDk6TWlsZXN0b25lMzI3OQ==", "number": 4, "open_issues": 0, "state": "closed", "title": "v0.4.0", "updated_at": "2013-02-14T23:18:22Z", "url": "https://api.github.com/repos/psf/requests/milestones/4" }
2
2011-04-21T16:21:38Z
2021-09-08T11:00:59Z
2011-05-12T07:56:28Z
CONTRIBUTOR
resolved
I've implemented a `settings` context manager as described in [pull request #25](https://github.com/kennethreitz/requests/pull/25#issuecomment-1039541). ``` >>> import requests >>> with requests.settings(timeout=0.5): ... requests.get('http://example.org') # Times out after 0.5 seconds ... requests.get('http://example.org', timeout=10) # Times out after 10 seconds ``` Settings may also be manipulated separately: ``` >>> import requests >>> requests.timeout = 0.5 >>> requests.get('http://example.org') # Times out after 0.5 seconds ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/26/reactions" }
https://api.github.com/repos/psf/requests/issues/26/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/26.diff", "html_url": "https://github.com/psf/requests/pull/26", "merged_at": "2011-05-12T07:56:28Z", "patch_url": "https://github.com/psf/requests/pull/26.patch", "url": "https://api.github.com/repos/psf/requests/pulls/26" }
true
[ "I'm not sure that I'm happy about this implementation, but I had a hard time facilitating for manipulating settings both at the module level and through the context manager using any other configuration. You're welcome to review and improve the code.\n", "@jgorset thanks! I'll try to take a look at this and add ...
https://api.github.com/repos/psf/requests/issues/25
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/25/labels{/name}
https://api.github.com/repos/psf/requests/issues/25/comments
https://api.github.com/repos/psf/requests/issues/25/events
https://github.com/psf/requests/pull/25
798,565
MDExOlB1bGxSZXF1ZXN0MTIzOTA1
25
Timeout
{ "avatar_url": "https://avatars.githubusercontent.com/u/195266?v=4", "events_url": "https://api.github.com/users/jgorset/events{/privacy}", "followers_url": "https://api.github.com/users/jgorset/followers", "following_url": "https://api.github.com/users/jgorset/following{/other_user}", "gists_url": "https://api.github.com/users/jgorset/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgorset", "id": 195266, "login": "jgorset", "node_id": "MDQ6VXNlcjE5NTI2Ng==", "organizations_url": "https://api.github.com/users/jgorset/orgs", "received_events_url": "https://api.github.com/users/jgorset/received_events", "repos_url": "https://api.github.com/users/jgorset/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgorset/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgorset/subscriptions", "type": "User", "url": "https://api.github.com/users/jgorset", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2011-04-21T12:51:12Z
2021-09-08T23:01:10Z
2011-04-21T14:28:33Z
CONTRIBUTOR
resolved
I've implemented an optional `timeout` argument to the request functions. It defaults to `None`, which is the default timeout of python's socket library.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/25/reactions" }
https://api.github.com/repos/psf/requests/issues/25/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/25.diff", "html_url": "https://github.com/psf/requests/pull/25", "merged_at": "2011-04-21T14:28:32Z", "patch_url": "https://github.com/psf/requests/pull/25.patch", "url": "https://api.github.com/repos/psf/requests/pulls/25" }
true
[ "I agree; if a `settings` scope was to be implemented, it should be a shortcut to manipulating configuration variables at the module level.\n\nFor example:\n\n```\nimport requests\nwith requests.settings(timeout=10, debug=True):\n requests.get('http://example.org')\n```\n\n... would be equivalent to...\n\n```\ni...
https://api.github.com/repos/psf/requests/issues/24
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/24/labels{/name}
https://api.github.com/repos/psf/requests/issues/24/comments
https://api.github.com/repos/psf/requests/issues/24/events
https://github.com/psf/requests/pull/24
798,454
MDExOlB1bGxSZXF1ZXN0MTIzODc4
24
Nitpicking
{ "avatar_url": "https://avatars.githubusercontent.com/u/195266?v=4", "events_url": "https://api.github.com/users/jgorset/events{/privacy}", "followers_url": "https://api.github.com/users/jgorset/followers", "following_url": "https://api.github.com/users/jgorset/following{/other_user}", "gists_url": "https://api.github.com/users/jgorset/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgorset", "id": 195266, "login": "jgorset", "node_id": "MDQ6VXNlcjE5NTI2Ng==", "organizations_url": "https://api.github.com/users/jgorset/orgs", "received_events_url": "https://api.github.com/users/jgorset/received_events", "repos_url": "https://api.github.com/users/jgorset/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgorset/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgorset/subscriptions", "type": "User", "url": "https://api.github.com/users/jgorset", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2011-04-21T12:05:23Z
2021-09-08T23:06:05Z
2011-04-21T14:17:03Z
CONTRIBUTOR
resolved
I made some insignificant corrections to the README.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/24/reactions" }
https://api.github.com/repos/psf/requests/issues/24/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/24.diff", "html_url": "https://github.com/psf/requests/pull/24", "merged_at": "2011-04-21T14:17:02Z", "patch_url": "https://github.com/psf/requests/pull/24.patch", "url": "https://api.github.com/repos/psf/requests/pulls/24" }
true
[ "Merged, thanks!\n" ]
https://api.github.com/repos/psf/requests/issues/23
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/23/labels{/name}
https://api.github.com/repos/psf/requests/issues/23/comments
https://api.github.com/repos/psf/requests/issues/23/events
https://github.com/psf/requests/issues/23
798,342
MDU6SXNzdWU3OTgzNDI=
23
Tracking chained redirection
{ "avatar_url": "https://avatars.githubusercontent.com/u/294177?v=4", "events_url": "https://api.github.com/users/esaurito/events{/privacy}", "followers_url": "https://api.github.com/users/esaurito/followers", "following_url": "https://api.github.com/users/esaurito/following{/other_user}", "gists_url": "https://api.github.com/users/esaurito/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/esaurito", "id": 294177, "login": "esaurito", "node_id": "MDQ6VXNlcjI5NDE3Nw==", "organizations_url": "https://api.github.com/users/esaurito/orgs", "received_events_url": "https://api.github.com/users/esaurito/received_events", "repos_url": "https://api.github.com/users/esaurito/repos", "site_admin": false, "starred_url": "https://api.github.com/users/esaurito/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/esaurito/subscriptions", "type": "User", "url": "https://api.github.com/users/esaurito", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}...
{ "closed_at": "2011-05-15T03:01:19Z", "closed_issues": 4, "created_at": "2011-04-14T23:55:10Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }, "description": "Next major release.", "due_on": "2011-05-14T07:00:00Z", "html_url": "https://github.com/psf/requests/milestone/4", "id": 3279, "labels_url": "https://api.github.com/repos/psf/requests/milestones/4/labels", "node_id": "MDk6TWlsZXN0b25lMzI3OQ==", "number": 4, "open_issues": 0, "state": "closed", "title": "v0.4.0", "updated_at": "2013-02-14T23:18:22Z", "url": "https://api.github.com/repos/psf/requests/milestones/4" }
8
2011-04-21T11:19:09Z
2021-09-09T13:05:53Z
2011-05-15T03:01:19Z
NONE
resolved
Sometimes when you make a GET request the client follows multiple redirections. It would be cool to keep track of the URL followed and the relative status code in variable like: ``` pycon >>> import requests >>> r = requests.get('http://example.org/first_redir.php') >>> r.chained_dir [('/first_redir.php', 302), ('/second_redir.php', 301)] ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/23/reactions" }
https://api.github.com/repos/psf/requests/issues/23/timeline
null
completed
null
null
false
[ "I'm +1 on this, though I suggest the entire response object is made available so one can inspect their headers retrospectively.\n\n```\n>> response = requests.get('http://example.org/redirect.html')\n>> response.redirects\n>> [<Response [301]>, <Response [301]>, <Response [301]>]\n```\n", "I agree with you jgors...
https://api.github.com/repos/psf/requests/issues/22
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/22/labels{/name}
https://api.github.com/repos/psf/requests/issues/22/comments
https://api.github.com/repos/psf/requests/issues/22/events
https://github.com/psf/requests/issues/22
771,703
MDU6SXNzdWU3NzE3MDM=
22
Sphinx Documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}...
{ "closed_at": "2011-05-16T08:10:43Z", "closed_issues": 1, "created_at": "2011-05-09T19:37:28Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }, "description": "", "due_on": "2011-05-21T07:00:00Z", "html_url": "https://github.com/psf/requests/milestone/5", "id": 8196, "labels_url": "https://api.github.com/repos/psf/requests/milestones/5/labels", "node_id": "MDk6TWlsZXN0b25lODE5Ng==", "number": 5, "open_issues": 0, "state": "closed", "title": "v0.4.1", "updated_at": "2013-02-14T23:19:27Z", "url": "https://api.github.com/repos/psf/requests/milestones/5" }
2
2011-04-14T23:55:36Z
2021-09-09T13:05:52Z
2011-05-16T08:10:43Z
CONTRIBUTOR
resolved
- Hosted on on RTFD
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/22/reactions" }
https://api.github.com/repos/psf/requests/issues/22/timeline
null
completed
null
null
false
[ "Underway.\n", "Complete!\n" ]
https://api.github.com/repos/psf/requests/issues/21
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/21/labels{/name}
https://api.github.com/repos/psf/requests/issues/21/comments
https://api.github.com/repos/psf/requests/issues/21/events
https://github.com/psf/requests/issues/21
756,234
MDU6SXNzdWU3NTYyMzQ=
21
The documentation link 404s.
{ "avatar_url": "https://avatars.githubusercontent.com/u/2449?v=4", "events_url": "https://api.github.com/users/toastdriven/events{/privacy}", "followers_url": "https://api.github.com/users/toastdriven/followers", "following_url": "https://api.github.com/users/toastdriven/following{/other_user}", "gists_url": "https://api.github.com/users/toastdriven/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toastdriven", "id": 2449, "login": "toastdriven", "node_id": "MDQ6VXNlcjI0NDk=", "organizations_url": "https://api.github.com/users/toastdriven/orgs", "received_events_url": "https://api.github.com/users/toastdriven/received_events", "repos_url": "https://api.github.com/users/toastdriven/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toastdriven/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toastdriven/subscriptions", "type": "User", "url": "https://api.github.com/users/toastdriven", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2011-04-11T20:30:20Z
2021-09-09T13:05:56Z
2011-04-12T02:11:54Z
CONTRIBUTOR
resolved
http://code.kennethreitz.com/requests/ doesn't seem to exist (from the README).
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/21/reactions" }
https://api.github.com/repos/psf/requests/issues/21/timeline
null
completed
null
null
false
[ "It's forthcoming. That's why it's under the roadmap section :)\n" ]
https://api.github.com/repos/psf/requests/issues/20
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/20/labels{/name}
https://api.github.com/repos/psf/requests/issues/20/comments
https://api.github.com/repos/psf/requests/issues/20/events
https://github.com/psf/requests/issues/20
754,126
MDU6SXNzdWU3NTQxMjY=
20
Fix Auth Registry
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}...
{ "closed_at": "2011-04-15T21:21:45Z", "closed_issues": 2, "created_at": "2011-04-11T13:43:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }, "description": "Next release for Requests.", "due_on": "2011-04-15T07:00:00Z", "html_url": "https://github.com/psf/requests/milestone/3", "id": 1517, "labels_url": "https://api.github.com/repos/psf/requests/milestones/3/labels", "node_id": "MDk6TWlsZXN0b25lMTUxNw==", "number": 3, "open_issues": 0, "state": "closed", "title": "v0.3.2", "updated_at": "2013-02-14T23:17:51Z", "url": "https://api.github.com/repos/psf/requests/milestones/3" }
1
2011-04-11T14:05:00Z
2021-09-09T12:00:40Z
2011-04-15T21:21:45Z
CONTRIBUTOR
resolved
Module-level auth registry not functional.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/20/reactions" }
https://api.github.com/repos/psf/requests/issues/20/timeline
null
completed
null
null
false
[ "Sorry about that! I missed the correct number issue.\n" ]
https://api.github.com/repos/psf/requests/issues/19
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/19/labels{/name}
https://api.github.com/repos/psf/requests/issues/19/comments
https://api.github.com/repos/psf/requests/issues/19/events
https://github.com/psf/requests/issues/19
754,044
MDU6SXNzdWU3NTQwNDQ=
19
Automatically Handle Server-side Compression
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}...
{ "closed_at": "2011-04-15T21:21:45Z", "closed_issues": 2, "created_at": "2011-04-11T13:43:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }, "description": "Next release for Requests.", "due_on": "2011-04-15T07:00:00Z", "html_url": "https://github.com/psf/requests/milestone/3", "id": 1517, "labels_url": "https://api.github.com/repos/psf/requests/milestones/3/labels", "node_id": "MDk6TWlsZXN0b25lMTUxNw==", "number": 3, "open_issues": 0, "state": "closed", "title": "v0.3.2", "updated_at": "2013-02-14T23:17:51Z", "url": "https://api.github.com/repos/psf/requests/milestones/3" }
0
2011-04-11T13:44:30Z
2021-09-09T13:05:56Z
2011-04-14T23:46:42Z
CONTRIBUTOR
resolved
Reproducible example: ``` import zlib import requests r = requests.get('http://api.stackoverflow.com/1.1/users/495995/top-answer-tags') zlib.decompress(r.content, 16+zlib.MAX_WBITS) ``` This should already be decompressed because of the response header: ``` >>> r.headers['content-encoding'] 'gip' ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/19/reactions" }
https://api.github.com/repos/psf/requests/issues/19/timeline
null
completed
null
null
false
[]
https://api.github.com/repos/psf/requests/issues/18
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/18/labels{/name}
https://api.github.com/repos/psf/requests/issues/18/comments
https://api.github.com/repos/psf/requests/issues/18/events
https://github.com/psf/requests/issues/18
753,742
MDU6SXNzdWU3NTM3NDI=
18
gzip decompression
{ "avatar_url": "https://avatars.githubusercontent.com/u/494087?v=4", "events_url": "https://api.github.com/users/aantn/events{/privacy}", "followers_url": "https://api.github.com/users/aantn/followers", "following_url": "https://api.github.com/users/aantn/following{/other_user}", "gists_url": "https://api.github.com/users/aantn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aantn", "id": 494087, "login": "aantn", "node_id": "MDQ6VXNlcjQ5NDA4Nw==", "organizations_url": "https://api.github.com/users/aantn/orgs", "received_events_url": "https://api.github.com/users/aantn/received_events", "repos_url": "https://api.github.com/users/aantn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aantn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aantn/subscriptions", "type": "User", "url": "https://api.github.com/users/aantn", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2011-04-11T12:22:26Z
2021-09-09T13:05:55Z
2011-04-11T13:44:54Z
NONE
resolved
Reproducible example: https://gist.github.com/913423
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/18/reactions" }
https://api.github.com/repos/psf/requests/issues/18/timeline
null
completed
null
null
false
[ "I don't have time right now to fork requests and implement this, but here is how httplib2 handles decompression:\n\nhttp://www.google.com/codesearch/p?hl=en#7p4WlYhzLQw/trunk/httplib2/__init__.py&q=zlib%20package:http://httplib2%5C.googlecode%5C.com&l=347\n", "Gzip'd data is supported and seamlessly decompressed...
https://api.github.com/repos/psf/requests/issues/17
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/17/labels{/name}
https://api.github.com/repos/psf/requests/issues/17/comments
https://api.github.com/repos/psf/requests/issues/17/events
https://github.com/psf/requests/pull/17
716,767
MDExOlB1bGxSZXF1ZXN0MTA0ODM2
17
Fixing User-agent header problem introduced with Python 2.7.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/132895?v=4", "events_url": "https://api.github.com/users/robmadole/events{/privacy}", "followers_url": "https://api.github.com/users/robmadole/followers", "following_url": "https://api.github.com/users/robmadole/following{/other_user}", "gists_url": "https://api.github.com/users/robmadole/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/robmadole", "id": 132895, "login": "robmadole", "node_id": "MDQ6VXNlcjEzMjg5NQ==", "organizations_url": "https://api.github.com/users/robmadole/orgs", "received_events_url": "https://api.github.com/users/robmadole/received_events", "repos_url": "https://api.github.com/users/robmadole/repos", "site_admin": false, "starred_url": "https://api.github.com/users/robmadole/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/robmadole/subscriptions", "type": "User", "url": "https://api.github.com/users/robmadole", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2011-03-30T05:10:09Z
2021-09-08T23:06:05Z
2011-03-30T05:37:49Z
CONTRIBUTOR
resolved
urllib2 changed the way OpenerDirector objects combine headers. This resulted in a User-agent header never making it through the request. Python's default `Python-urllib/2.7.1` would always be used. In Python 2.7, this wasn't an issue. This change is a bit hacky, but since the behavior changed with a standard module I'm not sure what the alternative is. Perhaps subclassing the OpenerDirector?
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/17/reactions" }
https://api.github.com/repos/psf/requests/issues/17/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/17.diff", "html_url": "https://github.com/psf/requests/pull/17", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/17.patch", "url": "https://api.github.com/repos/psf/requests/pulls/17" }
true
[ "Hmm, thanks for this. I did most of the development in python 2.7.1, and what I found is that i could only override user-agent if i fed it in lowercase ('user-agent' instead of 'User-Agent'). \n\nWould this be related?\n", "Yeah, same exact chunk of code in urllib2 that handles this. In the OpenerDirectory `add...
https://api.github.com/repos/psf/requests/issues/16
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/16/labels{/name}
https://api.github.com/repos/psf/requests/issues/16/comments
https://api.github.com/repos/psf/requests/issues/16/events
https://github.com/psf/requests/issues/16
715,545
MDU6SXNzdWU3MTU1NDU=
16
HAR support
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2011-03-29T20:54:25Z
2021-09-09T13:05:55Z
2011-04-14T23:58:32Z
CONTRIBUTOR
resolved
This would be awesome. http://groups.google.com/group/http-archive-specification/web/har-1-2-spec
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/16/reactions" }
https://api.github.com/repos/psf/requests/issues/16/timeline
null
completed
null
null
false
[ "Looks like this is mostly for browser archiving.\n" ]
https://api.github.com/repos/psf/requests/issues/15
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/15/labels{/name}
https://api.github.com/repos/psf/requests/issues/15/comments
https://api.github.com/repos/psf/requests/issues/15/events
https://github.com/psf/requests/pull/15
658,820
MDExOlB1bGxSZXF1ZXN0ODkxNDg=
15
Fixed cookie functionality
{ "avatar_url": "https://avatars.githubusercontent.com/u/55477?v=4", "events_url": "https://api.github.com/users/Aramgutang/events{/privacy}", "followers_url": "https://api.github.com/users/Aramgutang/followers", "following_url": "https://api.github.com/users/Aramgutang/following{/other_user}", "gists_url": "https://api.github.com/users/Aramgutang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Aramgutang", "id": 55477, "login": "Aramgutang", "node_id": "MDQ6VXNlcjU1NDc3", "organizations_url": "https://api.github.com/users/Aramgutang/orgs", "received_events_url": "https://api.github.com/users/Aramgutang/received_events", "repos_url": "https://api.github.com/users/Aramgutang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Aramgutang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aramgutang/subscriptions", "type": "User", "url": "https://api.github.com/users/Aramgutang", "user_view_type": "public" }
[]
closed
true
null
[]
null
0
2011-03-09T11:33:18Z
2021-09-08T23:07:13Z
2011-03-09T18:23:25Z
CONTRIBUTOR
resolved
Since `bool(CookieJar()) == False`, the checks for an available cookiejar need to compare it to None, rather than just ask `if cookiejar`.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/15/reactions" }
https://api.github.com/repos/psf/requests/issues/15/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/15.diff", "html_url": "https://github.com/psf/requests/pull/15", "merged_at": "2011-03-09T18:23:25Z", "patch_url": "https://github.com/psf/requests/pull/15.patch", "url": "https://api.github.com/repos/psf/requests/pulls/15" }
true
[]
https://api.github.com/repos/psf/requests/issues/14
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/14/labels{/name}
https://api.github.com/repos/psf/requests/issues/14/comments
https://api.github.com/repos/psf/requests/issues/14/events
https://github.com/psf/requests/pull/14
650,883
MDExOlB1bGxSZXF1ZXN0ODY5MzY=
14
Issue #13: Poster headers preservation
{ "avatar_url": "https://avatars.githubusercontent.com/u/461742?v=4", "events_url": "https://api.github.com/users/jlmurphy/events{/privacy}", "followers_url": "https://api.github.com/users/jlmurphy/followers", "following_url": "https://api.github.com/users/jlmurphy/following{/other_user}", "gists_url": "https://api.github.com/users/jlmurphy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jlmurphy", "id": 461742, "login": "jlmurphy", "node_id": "MDQ6VXNlcjQ2MTc0Mg==", "organizations_url": "https://api.github.com/users/jlmurphy/orgs", "received_events_url": "https://api.github.com/users/jlmurphy/received_events", "repos_url": "https://api.github.com/users/jlmurphy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jlmurphy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jlmurphy/subscriptions", "type": "User", "url": "https://api.github.com/users/jlmurphy", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2011-03-06T19:11:43Z
2021-09-08T11:00:58Z
2011-03-07T00:03:05Z
NONE
resolved
These changes alter the way headers are handled in the `Request.send()` (line 181) method. `req.headers` will now be updated by, instead of assigned to, the `self.headers` value. This will preserve the headers generated by poster's multipart encoding. I added a new test case `test_POSTBIN_GET_POST_FILES_WITH_HEADERS`. All tests pass. Please let me know if you have any questions.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/14/reactions" }
https://api.github.com/repos/psf/requests/issues/14/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/14.diff", "html_url": "https://github.com/psf/requests/pull/14", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/14.patch", "url": "https://api.github.com/repos/psf/requests/pulls/14" }
true
[ "Oops! I didn't realize that a pull request would open an issue. This is now a duplicate of Issue #13 (hence the title).\n", "Thank you very much! This was definitely needed.\n" ]
https://api.github.com/repos/psf/requests/issues/13
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/13/labels{/name}
https://api.github.com/repos/psf/requests/issues/13/comments
https://api.github.com/repos/psf/requests/issues/13/events
https://github.com/psf/requests/issues/13
650,837
MDU6SXNzdWU2NTA4Mzc=
13
Headers kwarg overrides Poster headers
{ "avatar_url": "https://avatars.githubusercontent.com/u/461742?v=4", "events_url": "https://api.github.com/users/jlmurphy/events{/privacy}", "followers_url": "https://api.github.com/users/jlmurphy/followers", "following_url": "https://api.github.com/users/jlmurphy/following{/other_user}", "gists_url": "https://api.github.com/users/jlmurphy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jlmurphy", "id": 461742, "login": "jlmurphy", "node_id": "MDQ6VXNlcjQ2MTc0Mg==", "organizations_url": "https://api.github.com/users/jlmurphy/orgs", "received_events_url": "https://api.github.com/users/jlmurphy/received_events", "repos_url": "https://api.github.com/users/jlmurphy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jlmurphy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jlmurphy/subscriptions", "type": "User", "url": "https://api.github.com/users/jlmurphy", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2011-03-06T18:45:16Z
2021-09-09T13:05:57Z
2011-03-06T23:50:38Z
NONE
resolved
If a caller uses both the `files` and `headers` kwargs in requests.request, the dictionary provided in `headers` will override the multipart encoding headers generated by Poster. See line 180 in core.py. Also, I am using v0.3.0 The request will fail with the following error: ``` ValueError: No Content-Length specified for iterable body ``` Example: ``` import requests files={ "hello.txt.", "/path/to/file/hello.txt." } # this works requests.post('http://path/to/server', files=files) # this does not work requests.post('http://path/to/server', headers={ 'Accept' : 'application/json' }, files=files } ```
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/13/reactions" }
https://api.github.com/repos/psf/requests/issues/13/timeline
null
completed
null
null
false
[ "Better POSTER header compatibility (Closed by 9fdee250de7e1aa0c92db5fb435cf1f2f8efe7e7)\n" ]
https://api.github.com/repos/psf/requests/issues/12
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/12/labels{/name}
https://api.github.com/repos/psf/requests/issues/12/comments
https://api.github.com/repos/psf/requests/issues/12/events
https://github.com/psf/requests/issues/12
642,879
MDU6SXNzdWU2NDI4Nzk=
12
Cookies without cookiejar
{ "avatar_url": "https://avatars.githubusercontent.com/u/632897?v=4", "events_url": "https://api.github.com/users/mcilrain/events{/privacy}", "followers_url": "https://api.github.com/users/mcilrain/followers", "following_url": "https://api.github.com/users/mcilrain/following{/other_user}", "gists_url": "https://api.github.com/users/mcilrain/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mcilrain", "id": 632897, "login": "mcilrain", "node_id": "MDQ6VXNlcjYzMjg5Nw==", "organizations_url": "https://api.github.com/users/mcilrain/orgs", "received_events_url": "https://api.github.com/users/mcilrain/received_events", "repos_url": "https://api.github.com/users/mcilrain/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mcilrain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mcilrain/subscriptions", "type": "User", "url": "https://api.github.com/users/mcilrain", "user_view_type": "public" }
[ { "color": "02e10c", "default": false, "description": null, "id": 76800, "name": "Feature Request", "node_id": "MDU6TGFiZWw3NjgwMA==", "url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request" } ]
closed
true
null
[]
null
4
2011-03-03T09:12:12Z
2021-09-09T12:00:41Z
2011-08-23T15:06:30Z
NONE
resolved
I'd like to be able to just pass in a dict containing cookies for a request.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/12/reactions" }
https://api.github.com/repos/psf/requests/issues/12/timeline
null
completed
null
null
false
[ "I considered this originally, but TBH haven't used cookiejars enough to know what the most common/simplest method is.\n\nWithout investigating, my thought it it would be simple to roll out support for both at the same time. \n\nCan you give me an example of how you'd pass in cookies by themselves and how that'd be...
https://api.github.com/repos/psf/requests/issues/11
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/11/labels{/name}
https://api.github.com/repos/psf/requests/issues/11/comments
https://api.github.com/repos/psf/requests/issues/11/events
https://github.com/psf/requests/issues/11
641,776
MDU6SXNzdWU2NDE3NzY=
11
Webapp for Testing
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2011-03-02T22:38:52Z
2021-09-09T13:05:57Z
2011-03-07T00:04:32Z
CONTRIBUTOR
resolved
### Thoughts; Develop Flask application with routes to different testing mechanisms. - http://localhost:8080/post - http://localhost:8080/post/cookie - http://localhost:8080/post - http://localhost:8080/head - http://localhost:8080/del
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/11/reactions" }
https://api.github.com/repos/psf/requests/issues/11/timeline
null
completed
null
null
false
[ "I wrote a [simple test server](https://github.com/mrtazz/http-test-server) for testing my [C++ restclient](https://github.com/mrtazz/restclient-cpp). It is very simple, but may be useful for this (though it definitely needs some adaptions). It's also up on [heroku](http://http-test-server.heroku.com/).\n", "mrta...
https://api.github.com/repos/psf/requests/issues/10
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/10/labels{/name}
https://api.github.com/repos/psf/requests/issues/10/comments
https://api.github.com/repos/psf/requests/issues/10/events
https://github.com/psf/requests/pull/10
637,676
MDExOlB1bGxSZXF1ZXN0ODM0MTI=
10
I needed some cookies
{ "avatar_url": "https://avatars.githubusercontent.com/u/132895?v=4", "events_url": "https://api.github.com/users/robmadole/events{/privacy}", "followers_url": "https://api.github.com/users/robmadole/followers", "following_url": "https://api.github.com/users/robmadole/following{/other_user}", "gists_url": "https://api.github.com/users/robmadole/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/robmadole", "id": 132895, "login": "robmadole", "node_id": "MDQ6VXNlcjEzMjg5NQ==", "organizations_url": "https://api.github.com/users/robmadole/orgs", "received_events_url": "https://api.github.com/users/robmadole/received_events", "repos_url": "https://api.github.com/users/robmadole/repos", "site_admin": false, "starred_url": "https://api.github.com/users/robmadole/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/robmadole/subscriptions", "type": "User", "url": "https://api.github.com/users/robmadole", "user_view_type": "public" }
[]
closed
true
null
[]
null
0
2011-03-01T15:22:58Z
2021-09-08T11:00:59Z
2011-03-07T00:19:27Z
CONTRIBUTOR
resolved
This could use some better testing, but I'm not sure of a good site to test this against to ensure the cookies are working.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/10/reactions" }
https://api.github.com/repos/psf/requests/issues/10/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/10.diff", "html_url": "https://github.com/psf/requests/pull/10", "merged_at": "2011-03-07T00:19:27Z", "patch_url": "https://github.com/psf/requests/pull/10.patch", "url": "https://api.github.com/repos/psf/requests/pulls/10" }
true
[]
https://api.github.com/repos/psf/requests/issues/9
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/9/labels{/name}
https://api.github.com/repos/psf/requests/issues/9/comments
https://api.github.com/repos/psf/requests/issues/9/events
https://github.com/psf/requests/issues/9
626,241
MDU6SXNzdWU2MjYyNDE=
9
support for sending POST data and FILES at the same time?
{ "avatar_url": "https://avatars.githubusercontent.com/u/21124?v=4", "events_url": "https://api.github.com/users/buriy/events{/privacy}", "followers_url": "https://api.github.com/users/buriy/followers", "following_url": "https://api.github.com/users/buriy/following{/other_user}", "gists_url": "https://api.github.com/users/buriy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/buriy", "id": 21124, "login": "buriy", "node_id": "MDQ6VXNlcjIxMTI0", "organizations_url": "https://api.github.com/users/buriy/orgs", "received_events_url": "https://api.github.com/users/buriy/received_events", "repos_url": "https://api.github.com/users/buriy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/buriy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/buriy/subscriptions", "type": "User", "url": "https://api.github.com/users/buriy", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2011-02-25T08:54:29Z
2021-09-09T13:05:58Z
2011-02-25T13:47:54Z
NONE
resolved
https://img.skitch.com/20110225-dcphnghynf1bk41sf64kg4u2ir.jpg
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/9/reactions" }
https://api.github.com/repos/psf/requests/issues/9/timeline
null
completed
null
null
false
[ "Thanks for the report! I'll add a fix in the next version I'm about to release.\n", "All set :)\n" ]
https://api.github.com/repos/psf/requests/issues/8
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/8/labels{/name}
https://api.github.com/repos/psf/requests/issues/8/comments
https://api.github.com/repos/psf/requests/issues/8/events
https://github.com/psf/requests/pull/8
620,181
MDExOlB1bGxSZXF1ZXN0NzkwMTE=
8
Small workaround for issue #7
{ "avatar_url": "https://avatars.githubusercontent.com/u/13816?v=4", "events_url": "https://api.github.com/users/flaper87/events{/privacy}", "followers_url": "https://api.github.com/users/flaper87/followers", "following_url": "https://api.github.com/users/flaper87/following{/other_user}", "gists_url": "https://api.github.com/users/flaper87/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/flaper87", "id": 13816, "login": "flaper87", "node_id": "MDQ6VXNlcjEzODE2", "organizations_url": "https://api.github.com/users/flaper87/orgs", "received_events_url": "https://api.github.com/users/flaper87/received_events", "repos_url": "https://api.github.com/users/flaper87/repos", "site_admin": false, "starred_url": "https://api.github.com/users/flaper87/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/flaper87/subscriptions", "type": "User", "url": "https://api.github.com/users/flaper87", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2011-02-23T07:52:07Z
2021-09-08T11:00:58Z
2011-02-24T05:50:16Z
CONTRIBUTOR
resolved
Passing the handlers to the auth opener fixes the problem.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/8/reactions" }
https://api.github.com/repos/psf/requests/issues/8/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/8.diff", "html_url": "https://github.com/psf/requests/pull/8", "merged_at": "2011-02-24T05:50:16Z", "patch_url": "https://github.com/psf/requests/pull/8.patch", "url": "https://api.github.com/repos/psf/requests/pulls/8" }
true
[ "Excellent! Thanks :) \n\nI'm going to try to get a new release out this evening.\n" ]
https://api.github.com/repos/psf/requests/issues/7
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/7/labels{/name}
https://api.github.com/repos/psf/requests/issues/7/comments
https://api.github.com/repos/psf/requests/issues/7/events
https://github.com/psf/requests/issues/7
617,635
MDU6SXNzdWU2MTc2MzU=
7
POST + file + auth
{ "avatar_url": "https://avatars.githubusercontent.com/u/13816?v=4", "events_url": "https://api.github.com/users/flaper87/events{/privacy}", "followers_url": "https://api.github.com/users/flaper87/followers", "following_url": "https://api.github.com/users/flaper87/following{/other_user}", "gists_url": "https://api.github.com/users/flaper87/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/flaper87", "id": 13816, "login": "flaper87", "node_id": "MDQ6VXNlcjEzODE2", "organizations_url": "https://api.github.com/users/flaper87/orgs", "received_events_url": "https://api.github.com/users/flaper87/received_events", "repos_url": "https://api.github.com/users/flaper87/repos", "site_admin": false, "starred_url": "https://api.github.com/users/flaper87/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/flaper87/subscriptions", "type": "User", "url": "https://api.github.com/users/flaper87", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2011-02-22T13:48:07Z
2021-09-09T13:05:58Z
2011-02-24T06:16:33Z
CONTRIBUTOR
resolved
Hi, I'm trying to send a post request with a file which requires an authentication... Following the docs I do: requests.post(url, files={"file" : open("filename")}, auth=my_auth_object) Unfortunately I'm getting this error: File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 383, in open response = self._open(req, data) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 401, in _open '_open', req) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 361, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1130, in http_open return self.do_open(httplib.HTTPConnection, req) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1102, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 874, in request self._send_request(method, url, body, headers) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 914, in _send_request self.send(body) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 719, in send self.sock.sendall(str) File "/opt/virtualenvs/brainaetic/lib/python2.6/site-packages/eventlet/greenio.py", line 287, in sendall tail = self.send(data, flags) File "/opt/virtualenvs/brainaetic/lib/python2.6/site-packages/eventlet/greenio.py", line 265, in send len_data = len(data) AttributeError: multipart_yielder instance has no attribute '__len__' Ideas? P.S: I'f I remove the auth the request doesn't fail but obviously the auth is required in my case.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/7/reactions" }
https://api.github.com/repos/psf/requests/issues/7/timeline
null
completed
null
null
false
[ "Looks like the issue is actually being caused by evenlet, which I enable if it's installed. \n\nIn the next release, the library won't monkeypatch automatically, which will fix this issue. I hope to push that out this evening, or tomorrow.\n\nIn the meantime, either uninstall eventlet from your virtualenv or take ...
https://api.github.com/repos/psf/requests/issues/6
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/6/labels{/name}
https://api.github.com/repos/psf/requests/issues/6/comments
https://api.github.com/repos/psf/requests/issues/6/events
https://github.com/psf/requests/issues/6
612,113
MDU6SXNzdWU2MTIxMTM=
6
parse url parameter and set params
{ "avatar_url": "https://avatars.githubusercontent.com/u/10312?v=4", "events_url": "https://api.github.com/users/sekimura/events{/privacy}", "followers_url": "https://api.github.com/users/sekimura/followers", "following_url": "https://api.github.com/users/sekimura/following{/other_user}", "gists_url": "https://api.github.com/users/sekimura/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sekimura", "id": 10312, "login": "sekimura", "node_id": "MDQ6VXNlcjEwMzEy", "organizations_url": "https://api.github.com/users/sekimura/orgs", "received_events_url": "https://api.github.com/users/sekimura/received_events", "repos_url": "https://api.github.com/users/sekimura/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sekimura/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sekimura/subscriptions", "type": "User", "url": "https://api.github.com/users/sekimura", "user_view_type": "public" }
[ { "color": "02e10c", "default": false, "description": null, "id": 76800, "name": "Feature Request", "node_id": "MDU6TGFiZWw3NjgwMA==", "url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request" } ]
closed
true
null
[]
null
3
2011-02-19T22:50:10Z
2021-09-09T13:05:58Z
2011-02-25T21:54:39Z
NONE
resolved
This is not an issue but more like a feature request. It would be nice if request.get('http://api.example.com/search?q=keyword') parses url parameter and set self.params option as {'q':'keyword'} automatically.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/6/reactions" }
https://api.github.com/repos/psf/requests/issues/6/timeline
null
completed
null
null
false
[ "That's a great suggestion. I'll add this. Thanks!\n", "All set :)\n", "cool beans :D\n" ]
https://api.github.com/repos/psf/requests/issues/5
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/5/labels{/name}
https://api.github.com/repos/psf/requests/issues/5/comments
https://api.github.com/repos/psf/requests/issues/5/events
https://github.com/psf/requests/issues/5
612,064
MDU6SXNzdWU2MTIwNjQ=
5
Case-Insensitive MultiDict for Headers
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}...
{ "closed_at": "2011-05-15T03:01:19Z", "closed_issues": 4, "created_at": "2011-04-14T23:55:10Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }, "description": "Next major release.", "due_on": "2011-05-14T07:00:00Z", "html_url": "https://github.com/psf/requests/milestone/4", "id": 3279, "labels_url": "https://api.github.com/repos/psf/requests/milestones/4/labels", "node_id": "MDk6TWlsZXN0b25lMzI3OQ==", "number": 4, "open_issues": 0, "state": "closed", "title": "v0.4.0", "updated_at": "2013-02-14T23:18:22Z", "url": "https://api.github.com/repos/psf/requests/milestones/4" }
2
2011-02-19T22:15:41Z
2021-09-09T13:05:53Z
2011-05-15T02:02:47Z
CONTRIBUTOR
resolved
Investigate using MultiDicts for Headers and Params.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/5/reactions" }
https://api.github.com/repos/psf/requests/issues/5/timeline
null
completed
null
null
false
[ "Also support:\n\n``` pycon\n>>> headers['content-encoding']\n...\n# returns contents of 'Content-Encoding' key.\n```\n\nThis will normalize header keys to lowercase during lookup.\n", "Done!\n" ]
https://api.github.com/repos/psf/requests/issues/4
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4/labels{/name}
https://api.github.com/repos/psf/requests/issues/4/comments
https://api.github.com/repos/psf/requests/issues/4/events
https://github.com/psf/requests/pull/4
611,918
MDExOlB1bGxSZXF1ZXN0NzY5MjM=
4
Updates and Cleanup
{ "avatar_url": "https://avatars.githubusercontent.com/u/250720?v=4", "events_url": "https://api.github.com/users/digitalxero/events{/privacy}", "followers_url": "https://api.github.com/users/digitalxero/followers", "following_url": "https://api.github.com/users/digitalxero/following{/other_user}", "gists_url": "https://api.github.com/users/digitalxero/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/digitalxero", "id": 250720, "login": "digitalxero", "node_id": "MDEyOk9yZ2FuaXphdGlvbjI1MDcyMA==", "organizations_url": "https://api.github.com/users/digitalxero/orgs", "received_events_url": "https://api.github.com/users/digitalxero/received_events", "repos_url": "https://api.github.com/users/digitalxero/repos", "site_admin": false, "starred_url": "https://api.github.com/users/digitalxero/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/digitalxero/subscriptions", "type": "Organization", "url": "https://api.github.com/users/digitalxero", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2011-02-19T20:14:09Z
2021-09-08T23:06:18Z
2011-02-24T07:06:30Z
NONE
resolved
I modified AuthObject to support a realm and all AuthHandlers supported by urllib2 as well as any handler class passed in by the user Cleaned up the send method to get rid of all the duplicated code cleaned up the helper methods since they were all doing the exact same thing just passing a diff method removed the old auto_auth code and switched to using a proper auth_manager added the **all** object to make 'from core import *' not expose all the stuff from urllib2
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/4/reactions" }
https://api.github.com/repos/psf/requests/issues/4/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4.diff", "html_url": "https://github.com/psf/requests/pull/4", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/4.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4" }
true
[ "I think leaving the async stuff in the separate module is better, would be even better I think if it did not monkey patch but was importing urllib2 from eventlet or greenlet. The reason I think this is because Guido has said before that all async io should be perpended with 'async_' but since the current design do...
https://api.github.com/repos/psf/requests/issues/3
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3/labels{/name}
https://api.github.com/repos/psf/requests/issues/3/comments
https://api.github.com/repos/psf/requests/issues/3/events
https://github.com/psf/requests/issues/3
597,990
MDU6SXNzdWU1OTc5OTA=
3
Eventlet Support
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2011-02-14T16:24:00Z
2021-09-09T13:05:59Z
2011-02-15T01:10:16Z
CONTRIBUTOR
resolved
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/3/reactions" }
https://api.github.com/repos/psf/requests/issues/3/timeline
null
completed
null
null
false
[ "`from eventlet.green import urllib2`\n", "Done: https://github.com/kennethreitz/requests/commit/cde3b88f3e93a9503810acc0ded890025fcbc119\n", "v0.2.2 was just release, which adds support for Eventlet and Gevent. Thanks!\n" ]
https://api.github.com/repos/psf/requests/issues/2
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2/labels{/name}
https://api.github.com/repos/psf/requests/issues/2/comments
https://api.github.com/repos/psf/requests/issues/2/events
https://github.com/psf/requests/issues/2
597,382
MDU6SXNzdWU1OTczODI=
2
a "40x" error my have content
{ "avatar_url": "https://avatars.githubusercontent.com/u/25185?v=4", "events_url": "https://api.github.com/users/brunobord/events{/privacy}", "followers_url": "https://api.github.com/users/brunobord/followers", "following_url": "https://api.github.com/users/brunobord/following{/other_user}", "gists_url": "https://api.github.com/users/brunobord/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/brunobord", "id": 25185, "login": "brunobord", "node_id": "MDQ6VXNlcjI1MTg1", "organizations_url": "https://api.github.com/users/brunobord/orgs", "received_events_url": "https://api.github.com/users/brunobord/received_events", "repos_url": "https://api.github.com/users/brunobord/repos", "site_admin": false, "starred_url": "https://api.github.com/users/brunobord/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/brunobord/subscriptions", "type": "User", "url": "https://api.github.com/users/brunobord", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2011-02-14T11:41:34Z
2021-09-08T23:08:06Z
2011-02-15T00:33:13Z
NONE
resolved
sometimes, a "40x" header does not mean you don't have content in your response. In fact, that's the 2nd time I'm working on a HTTP client that has to handle content, even if the HTTP return code is different than "200". An example : a webservice that throws a "403" error (forbidden) but outputs some content - in an XML structure, for example, a reason for the error : incorrect password, unauthorized operation, etc. This result is meaningful, and it helps to debug code. Usually, I have to create a workaround using urllib rather than urllib2 to catch the response body, even if a "40x" error is thrown. I thought "requests" would handle this, but I've tried to request my small test webservice, and here's the result : ``` >>> resp = requests.post('http://my-server/webservices/stuff', {'user': 'yada', 'pass': yada'}) >>> print resp >>> <Response [403]> # this is correct, because user/pass is wrong >>> print resp.content None ``` But in my _actual_ response body, I've got XML (and I've checked).
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/2/reactions" }
https://api.github.com/repos/psf/requests/issues/2/timeline
null
completed
null
null
false
[ "You are correct. Thanks for the pointing out the discrepancy. \n", "Fixed! This will be merged into the next release. Hopefully this evening.\n\nhttps://github.com/kennethreitz/requests/commit/10280c697dcfd3d334f1c9c381a11c324bb550bc\n", "v0.2.2 was just released, which fixes this bug. Thanks!\n" ]
https://api.github.com/repos/psf/requests/issues/1
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1/labels{/name}
https://api.github.com/repos/psf/requests/issues/1/comments
https://api.github.com/repos/psf/requests/issues/1/events
https://github.com/psf/requests/issues/1
597,294
MDU6SXNzdWU1OTcyOTQ=
1
Cookie support?
{ "avatar_url": "https://avatars.githubusercontent.com/u/284924?v=4", "events_url": "https://api.github.com/users/keul/events{/privacy}", "followers_url": "https://api.github.com/users/keul/followers", "following_url": "https://api.github.com/users/keul/following{/other_user}", "gists_url": "https://api.github.com/users/keul/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/keul", "id": 284924, "login": "keul", "node_id": "MDQ6VXNlcjI4NDkyNA==", "organizations_url": "https://api.github.com/users/keul/orgs", "received_events_url": "https://api.github.com/users/keul/received_events", "repos_url": "https://api.github.com/users/keul/repos", "site_admin": false, "starred_url": "https://api.github.com/users/keul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/keul/subscriptions", "type": "User", "url": "https://api.github.com/users/keul", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2011-02-14T10:35:25Z
2021-09-01T00:11:37Z
2011-02-14T18:03:29Z
NONE
resolved
An feature request (not found in documentation). Does this support cookies? Usecase: I can integrate this module inside an existings framework. This framework generate for me the authentication/session cookie, so to perform request using requests there I need to add the same auth cookie already generated.
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1/reactions" }
https://api.github.com/repos/psf/requests/issues/1/timeline
null
completed
null
null
false
[ "It does not yet, but I am planning on adding that in to the next release.\n\nIt's just a matter of keeping the api as elegant as possible. What would you find appropriate? Just having a cookies list you can pass in (and build the cookies it yourself externally)?\n", "Looking at the minimalistic approach of this ...