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/128
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/128/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/128/comments
|
https://api.github.com/repos/psf/requests/issues/128/events
|
https://github.com/psf/requests/issues/128
| 1,440,016 |
MDU6SXNzdWUxNDQwMDE2
| 128 |
Response not working with lxml
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/118963?v=4",
"events_url": "https://api.github.com/users/j0hnsmith/events{/privacy}",
"followers_url": "https://api.github.com/users/j0hnsmith/followers",
"following_url": "https://api.github.com/users/j0hnsmith/following{/other_user}",
"gists_url": "https://api.github.com/users/j0hnsmith/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/j0hnsmith",
"id": 118963,
"login": "j0hnsmith",
"node_id": "MDQ6VXNlcjExODk2Mw==",
"organizations_url": "https://api.github.com/users/j0hnsmith/orgs",
"received_events_url": "https://api.github.com/users/j0hnsmith/received_events",
"repos_url": "https://api.github.com/users/j0hnsmith/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/j0hnsmith/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/j0hnsmith/subscriptions",
"type": "User",
"url": "https://api.github.com/users/j0hnsmith",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-19T10:27:18Z
|
2021-09-09T12:00:42Z
|
2011-08-19T23:55:35Z
|
NONE
|
resolved
|
This looks like it should work but doesn't, but it does with the urllib2 line that's commented out. I'm using requests 0.6 and lxml 2.3
```
import urllib2
import requests
import lxml.etree as etree
#page = urllib2.urlopen(url)
r = requests.get('http://www.google.com')
parser = etree.HTMLParser()
tree = etree.parse(r, parser) # first parameter can be a file like object http://lxml.de/tutorial.html#parsing-from-strings-and-files
```
I get `TypeError: 'NoneType' object is not callable`
|
{
"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/128/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/128/timeline
| null |
completed
| null | null | false |
[
"Sorry about the bug. This will be fixed in the next release. In the meantime, i recommend treating parsing from the `r.content` string.\n"
] |
https://api.github.com/repos/psf/requests/issues/127
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/127/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/127/comments
|
https://api.github.com/repos/psf/requests/issues/127/events
|
https://github.com/psf/requests/issues/127
| 1,430,712 |
MDU6SXNzdWUxNDMwNzEy
| 127 |
gzip decompression not working
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-18T09:07:57Z
|
2021-09-09T12:00:42Z
|
2011-08-18T14:37:47Z
|
NONE
|
resolved
|
I tested `requests` on [This Link](http://encodable.com/uploaddemo/)
and the `requests.read()` function doesn't seem to work. It returns strange text because the response in Uncompressed. I noticed that requests uses `zlib` for Decompression.
Although using `r.content` worked perfectly.
|
{
"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/127/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/127/timeline
| null |
completed
| null | null | false |
[
"`response.read()` is for grabbing raw chunks of bytes from a response's content, just like a file.\n\nYou should always be using `response.content`, unless you have a special reason not to. \n\nSorry for the confusion, it'll be in the docs soon.\n"
] |
https://api.github.com/repos/psf/requests/issues/126
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/126/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/126/comments
|
https://api.github.com/repos/psf/requests/issues/126/events
|
https://github.com/psf/requests/issues/126
| 1,423,134 |
MDU6SXNzdWUxNDIzMTM0
| 126 |
Error fetching non-existant pages using authentication
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/973865?v=4",
"events_url": "https://api.github.com/users/ukch/events{/privacy}",
"followers_url": "https://api.github.com/users/ukch/followers",
"following_url": "https://api.github.com/users/ukch/following{/other_user}",
"gists_url": "https://api.github.com/users/ukch/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ukch",
"id": 973865,
"login": "ukch",
"node_id": "MDQ6VXNlcjk3Mzg2NQ==",
"organizations_url": "https://api.github.com/users/ukch/orgs",
"received_events_url": "https://api.github.com/users/ukch/received_events",
"repos_url": "https://api.github.com/users/ukch/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ukch/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ukch/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ukch",
"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}",
"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_at": "2011-11-26T15:49:46Z",
"closed_issues": 7,
"created_at": "2011-08-23T15:02:54Z",
"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": null,
"html_url": "https://github.com/psf/requests/milestone/9",
"id": 30484,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/9/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODQ=",
"number": 9,
"open_issues": 0,
"state": "closed",
"title": "v0.6.2",
"updated_at": "2011-11-26T15:49:46Z",
"url": "https://api.github.com/repos/psf/requests/milestones/9"
}
| 9 |
2011-08-17T14:10:25Z
|
2021-09-09T11:01:07Z
|
2011-09-25T23:50:23Z
|
NONE
|
resolved
|
Trying to fetch a non-existant page when authenticated behaves strangely. Steps to reproduce:
- Configure your web server to require HTTP basic authentication
- Execute code such as the following:
``` python
import requests
resp = requests.get("http://my.web.server/some_non_existant_path", auth=("username", "password"))
print resp.status
print resp.content
```
- Check output of your web server logs and output of the code snippet
Expected output:
- The web server receives two requests: the first returns status 401 and the second returns status 404.
- The code snippet prints 404, then the contents of your 'Not Found' page
Actual output:
- The web server receives seven requests in immediate succession: the first returns status 401 and all the others return status 404.
- The code snippet prints 401, then traces back with the following:
Traceback (most recent call last):
File "my_example_script.py", line 2, in **main**
print resp.content
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 422, in **getattr**
self._content = self.read()
TypeError: 'NoneType' object is not callable
Using requests 0.6.0 and Python 2.7
|
{
"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/126/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/126/timeline
| null |
completed
| null | null | false |
[
"Urllib2 gets stuck in an infinite redirect loop when invalid credentials are passed. Requests stops this at 7 requests.\n\nI'm not sure about the TypeError.\n\n---\n\nIs there a public URL you can reproduce this with?\n",
"This shows the problem using httpbin.\n\n``` python\n>>> response = requests.get(\"http://httpbin.org/status/404\", auth=(\"user\", \"pass\"))\n>>> response.status_code\n401\n>>> response.content\nTraceback (most recent call last):\n File \"<stdin>\", line 1, in <module>\n File \"/usr/local/lib/python2.7/dist-packages/requests-0.6.0-py2.7.egg/requests/models.py\", line 422, in __getattr__\n self._content = self.read()\nTypeError: 'NoneType' object is not callable\n```\n",
"Very odd. \n\nThanks, I'll look into it.\n",
"Update: I'm still working on this. It's actually a very complicated issue.\n\nMy (tentative) plan going forward is to implement the ForcedBasicAuth handler by hand, instead of using a hacked up urllib2 auth handler. \n",
"This will be fixed in the next release. \n",
"I can't tell by your last response if you have fixed the issue upstream or not, so I thought you might be interested in the following:\n\n```\nIn [3]: response = requests.get(\"http://httpbin.org/status/404\", auth=(\"user\", \"pass\"))\n{}\nFUCK\nMax retries exceeded for url: http://httpbin.org/status/404\n```\n\nIt looks as if the issue is still not fixed (like I said, I don't know if it is supposed to be fixed yet or not)\n",
"Works fine for me.\n\n``` python\n>>> import requests\n>>> response = requests.get(\"http://httpbin.org/status/404\", auth=(\"user\", \"pass\"))\n>>> response.status_code\n404\n>>> response.content\nu''\n```\n",
"@kazbak, this will not be an issue in the next release.\n",
"@kazbak for further context, the entire core is being rewritten on top of `httplib`. This will make issues like this one go away. All of the weird bugs (like this one) that were caused by `urllib2` should be gone once it is ready :)\n"
] |
https://api.github.com/repos/psf/requests/issues/125
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/125/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/125/comments
|
https://api.github.com/repos/psf/requests/issues/125/events
|
https://github.com/psf/requests/pull/125
| 1,422,653 |
MDExOlB1bGxSZXF1ZXN0Mjc1ODA0
| 125 |
Typo in documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/120119?v=4",
"events_url": "https://api.github.com/users/sharat87/events{/privacy}",
"followers_url": "https://api.github.com/users/sharat87/followers",
"following_url": "https://api.github.com/users/sharat87/following{/other_user}",
"gists_url": "https://api.github.com/users/sharat87/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharat87",
"id": 120119,
"login": "sharat87",
"node_id": "MDQ6VXNlcjEyMDExOQ==",
"organizations_url": "https://api.github.com/users/sharat87/orgs",
"received_events_url": "https://api.github.com/users/sharat87/received_events",
"repos_url": "https://api.github.com/users/sharat87/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharat87/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharat87/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharat87",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-08-17T12:40:26Z
|
2021-09-08T12:01:20Z
|
2011-08-17T13:45:40Z
|
CONTRIBUTOR
|
resolved
|
The kwarg is named `headers`, not `header`. Also, its a dict, not a set.
|
{
"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/125/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/125/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/125.diff",
"html_url": "https://github.com/psf/requests/pull/125",
"merged_at": "2011-08-17T13:45:40Z",
"patch_url": "https://github.com/psf/requests/pull/125.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/125"
}
| true |
[] |
https://api.github.com/repos/psf/requests/issues/124
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/124/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/124/comments
|
https://api.github.com/repos/psf/requests/issues/124/events
|
https://github.com/psf/requests/pull/124
| 1,422,198 |
MDExOlB1bGxSZXF1ZXN0Mjc1NjUw
| 124 |
Support PURGE request. Not sure if this is valid by any spec, but caches
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/49922?v=4",
"events_url": "https://api.github.com/users/miohtama/events{/privacy}",
"followers_url": "https://api.github.com/users/miohtama/followers",
"following_url": "https://api.github.com/users/miohtama/following{/other_user}",
"gists_url": "https://api.github.com/users/miohtama/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/miohtama",
"id": 49922,
"login": "miohtama",
"node_id": "MDQ6VXNlcjQ5OTIy",
"organizations_url": "https://api.github.com/users/miohtama/orgs",
"received_events_url": "https://api.github.com/users/miohtama/received_events",
"repos_url": "https://api.github.com/users/miohtama/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/miohtama/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/miohtama/subscriptions",
"type": "User",
"url": "https://api.github.com/users/miohtama",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-17T10:57:01Z
|
2021-09-08T12:01:19Z
|
2011-08-18T00:18:56Z
|
NONE
|
resolved
|
Support PURGE request. Not sure if this is valid by any spec, but caches like Varnish use it to issue cache clear from upstream server. http://drupal.org/node/900444
|
{
"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/124/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/124/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/124.diff",
"html_url": "https://github.com/psf/requests/pull/124",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/124.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/124"
}
| true |
[
"Thanks! I've decided to just allow all methods :)\n"
] |
https://api.github.com/repos/psf/requests/issues/123
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/123/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/123/comments
|
https://api.github.com/repos/psf/requests/issues/123/events
|
https://github.com/psf/requests/pull/123
| 1,422,121 |
MDExOlB1bGxSZXF1ZXN0Mjc1NjMy
| 123 |
As proposed by @davidbgk this is only consistent with \o/ :)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7396?v=4",
"events_url": "https://api.github.com/users/mitsuhiko/events{/privacy}",
"followers_url": "https://api.github.com/users/mitsuhiko/followers",
"following_url": "https://api.github.com/users/mitsuhiko/following{/other_user}",
"gists_url": "https://api.github.com/users/mitsuhiko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mitsuhiko",
"id": 7396,
"login": "mitsuhiko",
"node_id": "MDQ6VXNlcjczOTY=",
"organizations_url": "https://api.github.com/users/mitsuhiko/orgs",
"received_events_url": "https://api.github.com/users/mitsuhiko/received_events",
"repos_url": "https://api.github.com/users/mitsuhiko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mitsuhiko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mitsuhiko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mitsuhiko",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-17T10:40:44Z
|
2021-09-08T23:11:06Z
|
2011-08-17T13:41:39Z
|
CONTRIBUTOR
|
resolved
|
This fine patch would surely enhance the experience.
|
{
"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/123/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/123/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/123.diff",
"html_url": "https://github.com/psf/requests/pull/123",
"merged_at": "2011-08-17T13:41:39Z",
"patch_url": "https://github.com/psf/requests/pull/123.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/123"
}
| true |
[
"Hahaha, this is incredible. ;)\n"
] |
https://api.github.com/repos/psf/requests/issues/122
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/122/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/122/comments
|
https://api.github.com/repos/psf/requests/issues/122/events
|
https://github.com/psf/requests/pull/122
| 1,421,441 |
MDExOlB1bGxSZXF1ZXN0Mjc1NDg2
| 122 |
Fixing myself :)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50606?v=4",
"events_url": "https://api.github.com/users/jeremys/events{/privacy}",
"followers_url": "https://api.github.com/users/jeremys/followers",
"following_url": "https://api.github.com/users/jeremys/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeremys",
"id": 50606,
"login": "jeremys",
"node_id": "MDQ6VXNlcjUwNjA2",
"organizations_url": "https://api.github.com/users/jeremys/orgs",
"received_events_url": "https://api.github.com/users/jeremys/received_events",
"repos_url": "https://api.github.com/users/jeremys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeremys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeremys",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-08-17T08:28:53Z
|
2021-09-08T12:01:18Z
|
2011-08-17T08:29:58Z
|
CONTRIBUTOR
|
resolved
|
{
"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/122/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/122/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/122.diff",
"html_url": "https://github.com/psf/requests/pull/122",
"merged_at": "2011-08-17T08:29:58Z",
"patch_url": "https://github.com/psf/requests/pull/122.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/122"
}
| true |
[] |
|
https://api.github.com/repos/psf/requests/issues/121
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/121/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/121/comments
|
https://api.github.com/repos/psf/requests/issues/121/events
|
https://github.com/psf/requests/pull/121
| 1,421,426 |
MDExOlB1bGxSZXF1ZXN0Mjc1NDgz
| 121 |
Fix a potential memory leak, raise a TooManyRedirects exception with more than 30 redirections, and fix unicode urls.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36156?v=4",
"events_url": "https://api.github.com/users/jerem/events{/privacy}",
"followers_url": "https://api.github.com/users/jerem/followers",
"following_url": "https://api.github.com/users/jerem/following{/other_user}",
"gists_url": "https://api.github.com/users/jerem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jerem",
"id": 36156,
"login": "jerem",
"node_id": "MDQ6VXNlcjM2MTU2",
"organizations_url": "https://api.github.com/users/jerem/orgs",
"received_events_url": "https://api.github.com/users/jerem/received_events",
"repos_url": "https://api.github.com/users/jerem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jerem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jerem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jerem",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-08-17T08:24:30Z
|
2021-09-08T22:01:20Z
|
2011-08-20T00:13:03Z
|
CONTRIBUTOR
|
resolved
|
This pull request contains 3 fixes:
- Fix a potential memory leak. See http://bugs.python.org/issue1208304 for more details.
- Raise a TooManyRedirects exception with more than 30 redirects in order to prevent infinite redirections.
- Correctly handle any kind of unicode url. Works for urls with the path not encoded (ex: http://fr.news.yahoo.com/mariage-gay-débat-relancé-à-lassemblée-065517796.html) and so on...
```
>>> r = requests.get(u'http://fr.news.yahoo.com/mariage-gay-débat-relancé-à-lassemblée-065517796.html')
>>> r.status_code
200
>>> r = requests.get('http://fr.news.yahoo.com/mariage-gay-débat-relancé-à-lassemblée-065517796.html')
>>> r.status_code
200
```
|
{
"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/121/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/121/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/121.diff",
"html_url": "https://github.com/psf/requests/pull/121",
"merged_at": "2011-08-20T00:13:02Z",
"patch_url": "https://github.com/psf/requests/pull/121.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/121"
}
| true |
[
"Added support for redirection without scheme (Location starting with //, for example http://goo.gl/UYpIU).\n",
"Thanks for the excellent contributions! \n\nI've made the max_redirects configurable.\n"
] |
https://api.github.com/repos/psf/requests/issues/120
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/120/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/120/comments
|
https://api.github.com/repos/psf/requests/issues/120/events
|
https://github.com/psf/requests/issues/120
| 1,414,966 |
MDU6SXNzdWUxNDE0OTY2
| 120 |
Not compatible with python 2.5
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/982197?v=4",
"events_url": "https://api.github.com/users/newptcai/events{/privacy}",
"followers_url": "https://api.github.com/users/newptcai/followers",
"following_url": "https://api.github.com/users/newptcai/following{/other_user}",
"gists_url": "https://api.github.com/users/newptcai/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/newptcai",
"id": 982197,
"login": "newptcai",
"node_id": "MDQ6VXNlcjk4MjE5Nw==",
"organizations_url": "https://api.github.com/users/newptcai/orgs",
"received_events_url": "https://api.github.com/users/newptcai/received_events",
"repos_url": "https://api.github.com/users/newptcai/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/newptcai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/newptcai/subscriptions",
"type": "User",
"url": "https://api.github.com/users/newptcai",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 3 |
2011-08-16T13:20:42Z
|
2021-09-09T12:00:41Z
|
2011-08-20T01:14:01Z
|
NONE
|
resolved
|
```
File "/home/xxx/env/tran++/lib/python2.5/site-packages/requests/async.py", line 41
from .core import *
SyntaxError: 'import *' not allowed with 'from .'
```
The kind of import isn't support in python 2.5
|
{
"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/120/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/120/timeline
| null |
completed
| null | null | false |
[
"Seems like a _feature_ to me :)\n",
"Because it is :)\n",
"Very funny ;)\n\nSorry for the bug. `requests.async` is relatively useless as-is, and is fully undocumented. A major rework of the module will be developed soon :)\n"
] |
https://api.github.com/repos/psf/requests/issues/119
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/119/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/119/comments
|
https://api.github.com/repos/psf/requests/issues/119/events
|
https://github.com/psf/requests/pull/119
| 1,413,327 |
MDExOlB1bGxSZXF1ZXN0MjczMjM0
| 119 |
Redundant code
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/620035?v=4",
"events_url": "https://api.github.com/users/moliware/events{/privacy}",
"followers_url": "https://api.github.com/users/moliware/followers",
"following_url": "https://api.github.com/users/moliware/following{/other_user}",
"gists_url": "https://api.github.com/users/moliware/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moliware",
"id": 620035,
"login": "moliware",
"node_id": "MDQ6VXNlcjYyMDAzNQ==",
"organizations_url": "https://api.github.com/users/moliware/orgs",
"received_events_url": "https://api.github.com/users/moliware/received_events",
"repos_url": "https://api.github.com/users/moliware/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moliware/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moliware/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moliware",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-08-16T08:22:50Z
|
2021-09-08T12:01:18Z
|
2011-09-25T23:46:35Z
|
NONE
|
resolved
|
As a result of #111 this code is redundant because headers are correctly overloaded if add_header is used for updating 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"
}
|
{
"+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/119/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/119/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/119.diff",
"html_url": "https://github.com/psf/requests/pull/119",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/119.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/119"
}
| true |
[] |
https://api.github.com/repos/psf/requests/issues/118
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/118/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/118/comments
|
https://api.github.com/repos/psf/requests/issues/118/events
|
https://github.com/psf/requests/pull/118
| 1,412,797 |
MDExOlB1bGxSZXF1ZXN0MjczMTEx
| 118 |
Feature/session
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/313932?v=4",
"events_url": "https://api.github.com/users/tomhogans/events{/privacy}",
"followers_url": "https://api.github.com/users/tomhogans/followers",
"following_url": "https://api.github.com/users/tomhogans/following{/other_user}",
"gists_url": "https://api.github.com/users/tomhogans/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tomhogans",
"id": 313932,
"login": "tomhogans",
"node_id": "MDQ6VXNlcjMxMzkzMg==",
"organizations_url": "https://api.github.com/users/tomhogans/orgs",
"received_events_url": "https://api.github.com/users/tomhogans/received_events",
"repos_url": "https://api.github.com/users/tomhogans/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tomhogans/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tomhogans/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tomhogans",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] |
{
"closed_at": "2011-08-17T04:42:26Z",
"closed_issues": 1,
"created_at": "2011-06-23T08:25:34Z",
"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": null,
"html_url": "https://github.com/psf/requests/milestone/7",
"id": 17672,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/7/labels",
"node_id": "MDk6TWlsZXN0b25lMTc2NzI=",
"number": 7,
"open_issues": 0,
"state": "closed",
"title": "v0.6.0",
"updated_at": "2013-02-14T23:21:46Z",
"url": "https://api.github.com/repos/psf/requests/milestones/7"
}
| 3 |
2011-08-16T06:07:02Z
|
2021-09-08T12:01:17Z
|
2011-08-17T04:42:26Z
|
CONTRIBUTOR
|
resolved
|
One feature I consistently use, especially for writing quick one-off scripts, is automatic cookie handling. I've implemented this via a Session object whose instance properties can be set to be automatically passed whenever an http method call is performed. A CookieJar is instantiated by default with each Session instance. If you're interested in merging this feature but feel the docs/tests I added are lacking let me know and I can go over them more thoroughly.
|
{
"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/118/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/118/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/118.diff",
"html_url": "https://github.com/psf/requests/pull/118",
"merged_at": "2011-08-17T04:42:26Z",
"patch_url": "https://github.com/psf/requests/pull/118.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/118"
}
| true |
[
"Thanks a ton for the (excellent) contribution!\n\nThis is _very_ interesting. I'm going to have to give it some thought. This will affect the API quite a bit moving forward.\n\nMy initial reaction is to make it a context manager:\n\n``` python\nwith requests.session as s:\n s.get(...\n\n```\n",
"So, my pattern with wrapping requests so far is a pre and post callback that modifies the args going in, and the response going out.\n\nI've been tossing the idea around of just supporting optional callbacks right into the request functions.\n\nThese two ideas might play nicely together. \n",
"This is merged into develop now. Going to try to release this tonight.\n\nUsage:\n\n``` python\nwith requests.session(auth=('user', 'pass')) as c:\n c.get('http://httpbin.org/basic-auth/usr/pass')\n```\n"
] |
https://api.github.com/repos/psf/requests/issues/117
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/117/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/117/comments
|
https://api.github.com/repos/psf/requests/issues/117/events
|
https://github.com/psf/requests/pull/117
| 1,412,084 |
MDExOlB1bGxSZXF1ZXN0MjcyOTA5
| 117 |
Fixed misc spelling mistakes.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/238458?v=4",
"events_url": "https://api.github.com/users/alopatin/events{/privacy}",
"followers_url": "https://api.github.com/users/alopatin/followers",
"following_url": "https://api.github.com/users/alopatin/following{/other_user}",
"gists_url": "https://api.github.com/users/alopatin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alopatin",
"id": 238458,
"login": "alopatin",
"node_id": "MDQ6VXNlcjIzODQ1OA==",
"organizations_url": "https://api.github.com/users/alopatin/orgs",
"received_events_url": "https://api.github.com/users/alopatin/received_events",
"repos_url": "https://api.github.com/users/alopatin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alopatin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alopatin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alopatin",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-16T01:53:40Z
|
2021-09-08T12:01:17Z
|
2011-08-16T02:06:14Z
|
NONE
|
resolved
|
{
"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/117/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/117/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/117.diff",
"html_url": "https://github.com/psf/requests/pull/117",
"merged_at": "2011-08-16T02:06:14Z",
"patch_url": "https://github.com/psf/requests/pull/117.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/117"
}
| true |
[
"`/me always forgets to hit F6` :)\n"
] |
|
https://api.github.com/repos/psf/requests/issues/116
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/116/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/116/comments
|
https://api.github.com/repos/psf/requests/issues/116/events
|
https://github.com/psf/requests/issues/116
| 1,411,442 |
MDU6SXNzdWUxNDExNDQy
| 116 |
There should be a way to extract cookies from request.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/982197?v=4",
"events_url": "https://api.github.com/users/newptcai/events{/privacy}",
"followers_url": "https://api.github.com/users/newptcai/followers",
"following_url": "https://api.github.com/users/newptcai/following{/other_user}",
"gists_url": "https://api.github.com/users/newptcai/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/newptcai",
"id": 982197,
"login": "newptcai",
"node_id": "MDQ6VXNlcjk4MjE5Nw==",
"organizations_url": "https://api.github.com/users/newptcai/orgs",
"received_events_url": "https://api.github.com/users/newptcai/received_events",
"repos_url": "https://api.github.com/users/newptcai/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/newptcai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/newptcai/subscriptions",
"type": "User",
"url": "https://api.github.com/users/newptcai",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-15T23:23:13Z
|
2021-09-09T12:00:41Z
|
2011-08-20T01:14:15Z
|
NONE
|
resolved
|
Right now it seems that the only way is to read the response 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"
}
|
{
"+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/116/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/116/timeline
| null |
completed
| null | null | false |
[
"There absolutely should be.\n"
] |
https://api.github.com/repos/psf/requests/issues/115
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/115/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/115/comments
|
https://api.github.com/repos/psf/requests/issues/115/events
|
https://github.com/psf/requests/issues/115
| 1,408,392 |
MDU6SXNzdWUxNDA4Mzky
| 115 |
get http content as unicode...
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/71315?v=4",
"events_url": "https://api.github.com/users/jedie/events{/privacy}",
"followers_url": "https://api.github.com/users/jedie/followers",
"following_url": "https://api.github.com/users/jedie/following{/other_user}",
"gists_url": "https://api.github.com/users/jedie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jedie",
"id": 71315,
"login": "jedie",
"node_id": "MDQ6VXNlcjcxMzE1",
"organizations_url": "https://api.github.com/users/jedie/orgs",
"received_events_url": "https://api.github.com/users/jedie/received_events",
"repos_url": "https://api.github.com/users/jedie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jedie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jedie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jedie",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] |
{
"closed_at": "2011-09-30T11:17:36Z",
"closed_issues": 3,
"created_at": "2011-08-23T15:02: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": null,
"html_url": "https://github.com/psf/requests/milestone/8",
"id": 30483,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/8/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODM=",
"number": 8,
"open_issues": 0,
"state": "closed",
"title": "v0.7.0",
"updated_at": "2011-09-30T11:17:36Z",
"url": "https://api.github.com/repos/psf/requests/milestones/8"
}
| 6 |
2011-08-15T15:36:12Z
|
2021-09-09T12:00:39Z
|
2011-08-31T04:08:39Z
|
CONTRIBUTOR
|
resolved
|
It would be nice if we can request a html page as unicode... In my https://github.com/jedie/django-tools/blob/master/django_tools/utils/http.py i have a simple solution for this. The main code is:
``` python
def get_content_type(self):
content_type = self.response_header.get("content-type")
content_type, params = cgi.parse_header(content_type)
return content_type, params
def get_encoding_from_content_type(self):
content_type, params = self.get_content_type()
if "charset" in params:
return params["charset"].strip("'\"")
def get_encodings_from_content(self, content):
if self._charset_re is None:
self._charset_re = re.compile(
r'<meta.*?charset=["\']*(.+?)["\'>]', flags=re.I
)
return self._charset_re.findall(content)
def get_unicode(self):
"""
Returns the requested content back in unicode.
Tried:
1. charset from content-type
2. every encodings from <meta ... charset=XXX>
3. fall back and replace all unicode characters
"""
content = self.get_content()
# Try charset from content-type
encoding = self.get_encoding_from_content_type()
if encoding:
try:
return unicode(content, encoding)
except UnicodeError:
self.tried_encodings.append(encoding)
# Try every encodings from <meta ... charset=XXX>
encodings = self.get_encodings_from_content(content)
for encoding in encodings:
if encoding in self.tried_encodings:
continue
try:
return unicode(content, encoding)
except UnicodeError:
self.tried_encodings.append(encoding)
# Fall back:
return unicode(content, encoding, errors="replace")
```
I know a real solution can do more, e.g. what http://chardet.feedparser.org/ does.
But IMHO it's ok for the most request, isn't it?
Is there any interests to merge this? If so, I would try to contribute it ;)
|
{
"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/115/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/115/timeline
| null |
completed
| null | null | false |
[
"Here is my humble opinion: I would not manipulate content in the response class. I would let developers to apply any hook to response content, and leave content manipulation to application specific needs. A library of hooks may be more interesting.\n",
"The `develop` branch currently has this merged in. If the response headers say that a page is a certain encoding, you'll get a unicode object back instead of bytes.\n\nPersonally, I think this is a good thing to do. Requests has been automatically decoding gzip'd responses for a while, and that has been received well.\n\nNote that this behavior can be opted-out with a setting or using `resp.fo.read()` directly.\n\nAnyone else have any thoughts?\n",
"@kennethreitz: It would have been good if you had written here that you've done the merge here: https://github.com/kennethreitz/requests/commit/8fbb1e6d97cda90d588d4263a18906a52d147fba#requests/utils.py\n",
"I understand the use of the charset from the headers, but if you take the path of parsing the content, you have to handle:\n1. what content it is, because it may be JSON with a string that matches that regular expression\n2. parse it, the real way (because that regular expression may fail on some html)\n3. validate it, because even if you can parse (let's say html), parsed content may have 2 meta tags with 2 values of charset.\n",
"@monkeython excellent point. Let's just stick to headers. This is an HTTP library after all, not HTML :)\n",
"I think that getting the encoding from the meta-tags is a nice feature, but shouldn't be part of a normal request. \n\nAs I said above, this is an HTTP library, not an HTML library. So, I'll only unicodify responses with encoding response headers.\n\nI'm going to leave this functionality in the `requests.utils` module though.\n"
] |
https://api.github.com/repos/psf/requests/issues/114
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/114/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/114/comments
|
https://api.github.com/repos/psf/requests/issues/114/events
|
https://github.com/psf/requests/issues/114
| 1,408,303 |
MDU6SXNzdWUxNDA4MzAz
| 114 |
Get request headers...
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/71315?v=4",
"events_url": "https://api.github.com/users/jedie/events{/privacy}",
"followers_url": "https://api.github.com/users/jedie/followers",
"following_url": "https://api.github.com/users/jedie/following{/other_user}",
"gists_url": "https://api.github.com/users/jedie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jedie",
"id": 71315,
"login": "jedie",
"node_id": "MDQ6VXNlcjcxMzE1",
"organizations_url": "https://api.github.com/users/jedie/orgs",
"received_events_url": "https://api.github.com/users/jedie/received_events",
"repos_url": "https://api.github.com/users/jedie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jedie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jedie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jedie",
"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 | 6 |
2011-08-15T15:21:52Z
|
2021-09-09T12:00:39Z
|
2011-08-31T04:09:01Z
|
CONTRIBUTOR
|
resolved
|
There is no easy way to get the used **request headers** from urllib2, see: http://stackoverflow.com/questions/603856/how-do-you-get-default-headers-in-a-urllib2-request
I made https://github.com/jedie/django-tools/blob/master/django_tools/utils/http.py for this. e.g.:
``` python
from django_tools.utils.http import HttpRequest
r = HttpRequest("http://www.python.org/index.html")
response = r.get_response()
```
You can get the raw sended request headers:
```
print response.request_header
```
Output (striped \r\n):
```
GET /index.html HTTP/1.1
Accept-Encoding: identity
Host: www.python.org
Connection: close
User-Agent: Python-urllib/2.7
```
Get the request headers as a list:
```
print response.request_headers
```
Output:
```
[('Accept-Encoding', 'identity'), ('Host', 'www.python.org'), ('Connection', 'close'), ('User-Agent', 'Python-urllib/2.7')]
```
Is there any interests to merge this? If so, I would try to contribute it ;)
|
{
"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/114/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/114/timeline
| null |
completed
| null | null | false |
[
"Interesting.\n\nSo, I added in `Response.request`, which is the Requests's Request object that was used to create the Response.\n\nSo, you can:\n\n``` pycon\n\n>>> r = requests.get('http://httpbin.org/get')\n>>> r.request.headers\n{'Accept-Encoding': 'gzip', 'User-Agent': 'python-requests.org'}\n```\n\nThis doesn't include all of the urllib2-supplied headers. I'm thinking, if those are needed, it would be best to update this dictionary after a request is sent. \n\nThoughts?\n",
"updating this dict is ok, but IMHO it's nice to get the raw sended headers as a string, too. e.g.: the dictionary is not sorted.\n",
"@jedie: I can make it an OrderedDict, so the order won't be lost. \n\nMaking the raw request headers available is interesting. Same with the response. \n\n**Random ideas:** \n\nRaw property on the headers would be useful: `r.headers.raw` and `r.request.headers.raw` perhaps.\n",
"OK, but IMHO where the info are stored is not really important ;)\n\nThe Important questions is, how can we get theses information. In my solution i capture the header in `httplib.HTTPConnection.putheader()` and `httplib.HTTPConnection.send()`\n\nAnd i don't know if these exist a easier way access theses captured headers.\n",
"Where the info is stored and accessed is _extremely_ important. That's what Requests is all about :)\n\nI'll poke around and see what works consistently. Shouldn't be too difficult.\n",
"I've decided to leave this out for now. I'll be reconsidering it soon.\n"
] |
https://api.github.com/repos/psf/requests/issues/113
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/113/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/113/comments
|
https://api.github.com/repos/psf/requests/issues/113/events
|
https://github.com/psf/requests/pull/113
| 1,408,032 |
MDExOlB1bGxSZXF1ZXN0MjcxODAx
| 113 |
Use socket.setdefaulttimeout(timeout) only if timeout argument doesn't ex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/71315?v=4",
"events_url": "https://api.github.com/users/jedie/events{/privacy}",
"followers_url": "https://api.github.com/users/jedie/followers",
"following_url": "https://api.github.com/users/jedie/following{/other_user}",
"gists_url": "https://api.github.com/users/jedie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jedie",
"id": 71315,
"login": "jedie",
"node_id": "MDQ6VXNlcjcxMzE1",
"organizations_url": "https://api.github.com/users/jedie/orgs",
"received_events_url": "https://api.github.com/users/jedie/received_events",
"repos_url": "https://api.github.com/users/jedie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jedie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jedie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jedie",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-08-15T14:52:22Z
|
2021-09-08T23:11:03Z
|
2011-08-16T01:45:17Z
|
CONTRIBUTOR
|
resolved
|
Use socket.setdefaulttimeout(timeout) only if timeout argument doesn't exist (Python <2.6) - https://github.com/kennethreitz/requests/issues/112
|
{
"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/113/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/113/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/113.diff",
"html_url": "https://github.com/psf/requests/pull/113",
"merged_at": "2011-08-16T01:45:17Z",
"patch_url": "https://github.com/psf/requests/pull/113.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/113"
}
| true |
[
"This is not thread-safe. It may be OK but this should be at least mentioned somewhere. \n\nThe thread-safe alternative is to reimplement request sending using raw sockets (see https://bitbucket.org/kmike/vkontakte/src/e89d4cb94902/vkontakte/http.py for an example) but this can be an overkill.\n",
"Excellent. Thanks a ton!\n"
] |
https://api.github.com/repos/psf/requests/issues/112
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/112/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/112/comments
|
https://api.github.com/repos/psf/requests/issues/112/events
|
https://github.com/psf/requests/issues/112
| 1,407,892 |
MDU6SXNzdWUxNDA3ODky
| 112 |
socket.setdefaulttimeout(timeout)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/71315?v=4",
"events_url": "https://api.github.com/users/jedie/events{/privacy}",
"followers_url": "https://api.github.com/users/jedie/followers",
"following_url": "https://api.github.com/users/jedie/following{/other_user}",
"gists_url": "https://api.github.com/users/jedie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jedie",
"id": 71315,
"login": "jedie",
"node_id": "MDQ6VXNlcjcxMzE1",
"organizations_url": "https://api.github.com/users/jedie/orgs",
"received_events_url": "https://api.github.com/users/jedie/received_events",
"repos_url": "https://api.github.com/users/jedie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jedie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jedie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jedie",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-15T14:34:17Z
|
2021-09-09T12:00:44Z
|
2011-08-15T14:52:38Z
|
CONTRIBUTOR
|
resolved
|
I read your source a little bit and found socket.setdefaulttimeout(timeout) in models.Request().
IMHO it's not a good idea to do this, because this is not thread safe. See also: http://kurtmckee.livejournal.com/32616.html
There exist timeout on several methods since Python v2.6
In my code i try to use the "new" timeout arguments and fall-back to socket.setdefaulttimeout() if it's intended:
https://github.com/jedie/django-tools/blob/master/django_tools/utils/http.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/71315?v=4",
"events_url": "https://api.github.com/users/jedie/events{/privacy}",
"followers_url": "https://api.github.com/users/jedie/followers",
"following_url": "https://api.github.com/users/jedie/following{/other_user}",
"gists_url": "https://api.github.com/users/jedie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jedie",
"id": 71315,
"login": "jedie",
"node_id": "MDQ6VXNlcjcxMzE1",
"organizations_url": "https://api.github.com/users/jedie/orgs",
"received_events_url": "https://api.github.com/users/jedie/received_events",
"repos_url": "https://api.github.com/users/jedie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jedie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jedie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jedie",
"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/112/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/112/timeline
| null |
completed
| null | null | false |
[
"Have made changes here: https://github.com/kennethreitz/requests/pull/113\n"
] |
https://api.github.com/repos/psf/requests/issues/111
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/111/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/111/comments
|
https://api.github.com/repos/psf/requests/issues/111/events
|
https://github.com/psf/requests/pull/111
| 1,406,598 |
MDExOlB1bGxSZXF1ZXN0MjcxNDUx
| 111 |
Fix for issue #102
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/620035?v=4",
"events_url": "https://api.github.com/users/moliware/events{/privacy}",
"followers_url": "https://api.github.com/users/moliware/followers",
"following_url": "https://api.github.com/users/moliware/following{/other_user}",
"gists_url": "https://api.github.com/users/moliware/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moliware",
"id": 620035,
"login": "moliware",
"node_id": "MDQ6VXNlcjYyMDAzNQ==",
"organizations_url": "https://api.github.com/users/moliware/orgs",
"received_events_url": "https://api.github.com/users/moliware/received_events",
"repos_url": "https://api.github.com/users/moliware/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moliware/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moliware/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moliware",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-15T10:03:18Z
|
2021-09-08T23:06:22Z
|
2011-08-16T01:50:11Z
|
NONE
|
resolved
|
headers.update is not the same that add headers one by one with add_header because add_header capitalize each key.
|
{
"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/111/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/111/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/111.diff",
"html_url": "https://github.com/psf/requests/pull/111",
"merged_at": "2011-08-16T01:50:11Z",
"patch_url": "https://github.com/psf/requests/pull/111.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/111"
}
| true |
[
"Thanks ;)\n"
] |
https://api.github.com/repos/psf/requests/issues/110
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/110/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/110/comments
|
https://api.github.com/repos/psf/requests/issues/110/events
|
https://github.com/psf/requests/issues/110
| 1,405,683 |
MDU6SXNzdWUxNDA1Njgz
| 110 |
content-encoding zlib.decompression issue
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-08-15T05:42:20Z
|
2021-09-09T12:00:44Z
|
2011-08-15T05:44:49Z
|
NONE
|
resolved
|
requests.get does not decompress data.
Try:
requests.get('http://crunchbase.com').read()
vs
urllib2.urlopen('http://crunchbase.com').read()
| 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/110/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/110/timeline
| null |
completed
| null | null | false |
[
"Oops. Someone posted this before. Problem solved. User r.content instead\n",
"I assure you that it does :)\n\nCompression occurs when accessing via `r.content` instead of `r.read()`.\n\nOnly gzip compression is supported at this time.\n"
] |
https://api.github.com/repos/psf/requests/issues/109
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/109/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/109/comments
|
https://api.github.com/repos/psf/requests/issues/109/events
|
https://github.com/psf/requests/issues/109
| 1,405,302 |
MDU6SXNzdWUxNDA1MzAy
| 109 |
Documentation Improvements
|
{
"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 |
[] |
{
"closed_at": "2011-11-26T15:49:46Z",
"closed_issues": 7,
"created_at": "2011-08-23T15:02:54Z",
"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": null,
"html_url": "https://github.com/psf/requests/milestone/9",
"id": 30484,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/9/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODQ=",
"number": 9,
"open_issues": 0,
"state": "closed",
"title": "v0.6.2",
"updated_at": "2011-11-26T15:49:46Z",
"url": "https://api.github.com/repos/psf/requests/milestones/9"
}
| 2 |
2011-08-15T02:38:00Z
|
2021-09-09T12:00:33Z
|
2011-09-25T23:50:01Z
|
CONTRIBUTOR
|
resolved
|
Underway.
Top site search results today:
- python 3
- upload
- proxies
- https
- user agent
- pool
- gzip
|
{
"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/109/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/109/timeline
| null |
completed
| null | null | false |
[
"Getting better.\n",
":thumbsup:\n"
] |
https://api.github.com/repos/psf/requests/issues/108
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/108/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/108/comments
|
https://api.github.com/repos/psf/requests/issues/108/events
|
https://github.com/psf/requests/pull/108
| 1,403,145 |
MDExOlB1bGxSZXF1ZXN0MjcwNzMw
| 108 |
fix typo
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24753?v=4",
"events_url": "https://api.github.com/users/zed/events{/privacy}",
"followers_url": "https://api.github.com/users/zed/followers",
"following_url": "https://api.github.com/users/zed/following{/other_user}",
"gists_url": "https://api.github.com/users/zed/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zed",
"id": 24753,
"login": "zed",
"node_id": "MDQ6VXNlcjI0NzUz",
"organizations_url": "https://api.github.com/users/zed/orgs",
"received_events_url": "https://api.github.com/users/zed/received_events",
"repos_url": "https://api.github.com/users/zed/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zed/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zed",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-08-14T13:47:28Z
|
2021-09-08T12:01:16Z
|
2011-08-14T14:21:47Z
|
NONE
|
resolved
|
{
"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/108/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/108/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/108.diff",
"html_url": "https://github.com/psf/requests/pull/108",
"merged_at": "2011-08-14T14:21:52Z",
"patch_url": "https://github.com/psf/requests/pull/108.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/108"
}
| true |
[] |
|
https://api.github.com/repos/psf/requests/issues/107
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/107/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/107/comments
|
https://api.github.com/repos/psf/requests/issues/107/events
|
https://github.com/psf/requests/pull/107
| 1,403,069 |
MDExOlB1bGxSZXF1ZXN0MjcwNzEx
| 107 |
Fixing a small typo.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24086?v=4",
"events_url": "https://api.github.com/users/markstory/events{/privacy}",
"followers_url": "https://api.github.com/users/markstory/followers",
"following_url": "https://api.github.com/users/markstory/following{/other_user}",
"gists_url": "https://api.github.com/users/markstory/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/markstory",
"id": 24086,
"login": "markstory",
"node_id": "MDQ6VXNlcjI0MDg2",
"organizations_url": "https://api.github.com/users/markstory/orgs",
"received_events_url": "https://api.github.com/users/markstory/received_events",
"repos_url": "https://api.github.com/users/markstory/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/markstory/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/markstory/subscriptions",
"type": "User",
"url": "https://api.github.com/users/markstory",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-14T13:14:56Z
|
2021-09-08T12:01:16Z
|
2011-08-14T14:40:37Z
|
CONTRIBUTOR
|
resolved
|
Found a small typo in the docs.
|
{
"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/107/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/107/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/107.diff",
"html_url": "https://github.com/psf/requests/pull/107",
"merged_at": "2011-08-14T14:40:37Z",
"patch_url": "https://github.com/psf/requests/pull/107.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/107"
}
| true |
[
"Thanks!\n"
] |
https://api.github.com/repos/psf/requests/issues/106
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/106/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/106/comments
|
https://api.github.com/repos/psf/requests/issues/106/events
|
https://github.com/psf/requests/pull/106
| 1,402,696 |
MDExOlB1bGxSZXF1ZXN0MjcwNjMy
| 106 |
Edited PATCH Requests in README
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/292712?v=4",
"events_url": "https://api.github.com/users/jbochi/events{/privacy}",
"followers_url": "https://api.github.com/users/jbochi/followers",
"following_url": "https://api.github.com/users/jbochi/following{/other_user}",
"gists_url": "https://api.github.com/users/jbochi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbochi",
"id": 292712,
"login": "jbochi",
"node_id": "MDQ6VXNlcjI5MjcxMg==",
"organizations_url": "https://api.github.com/users/jbochi/orgs",
"received_events_url": "https://api.github.com/users/jbochi/received_events",
"repos_url": "https://api.github.com/users/jbochi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbochi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbochi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbochi",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-14T10:31:17Z
|
2021-09-08T12:01:15Z
|
2011-08-14T14:40:36Z
|
CONTRIBUTOR
|
resolved
|
{
"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/106/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/106/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/106.diff",
"html_url": "https://github.com/psf/requests/pull/106",
"merged_at": "2011-08-14T14:40:36Z",
"patch_url": "https://github.com/psf/requests/pull/106.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/106"
}
| true |
[
"Thanks!\n"
] |
|
https://api.github.com/repos/psf/requests/issues/105
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/105/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/105/comments
|
https://api.github.com/repos/psf/requests/issues/105/events
|
https://github.com/psf/requests/issues/105
| 1,402,631 |
MDU6SXNzdWUxNDAyNjMx
| 105 |
Content-Encoding issue **edit: issue due to ambiguous documentation**
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/97106?v=4",
"events_url": "https://api.github.com/users/beaumartinez/events{/privacy}",
"followers_url": "https://api.github.com/users/beaumartinez/followers",
"following_url": "https://api.github.com/users/beaumartinez/following{/other_user}",
"gists_url": "https://api.github.com/users/beaumartinez/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/beaumartinez",
"id": 97106,
"login": "beaumartinez",
"node_id": "MDQ6VXNlcjk3MTA2",
"organizations_url": "https://api.github.com/users/beaumartinez/orgs",
"received_events_url": "https://api.github.com/users/beaumartinez/received_events",
"repos_url": "https://api.github.com/users/beaumartinez/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/beaumartinez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/beaumartinez/subscriptions",
"type": "User",
"url": "https://api.github.com/users/beaumartinez",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 4 |
2011-08-14T09:47:25Z
|
2021-09-09T12:00:43Z
|
2011-08-15T16:08:10Z
|
NONE
|
resolved
|
I'm not sure what's going on here, but I'm assuming it's an issue regarding Content-Encoding. Have a look.
With Requests:
```
>>> import requests
>>> r = requests.get('http://www.elacarte.com/challenge/city_grid.txt')
>>> r.headers['content-encoding']
'gzip'
>>>print r.read()[:100]
��[��J����Q����?�s�"��S���e���$貥��?������AS��c�ܤ������D���;� t+��~��&�N��$��
>>> import pprint
>>> pprint.pprint(r.headers)
{'accept-ranges': 'bytes',
'connection': 'close',
'content-encoding': 'gzip',
'content-type': 'text/plain',
'date': 'Sun, 14 Aug 2011 09:34:29 GMT',
'etag': '"8a24017-1d1672-4aa6f3fd72a00"',
'last-modified': 'Sun, 14 Aug 2011 04:04:56 GMT',
'server': 'Apache/2.2.14 (Ubuntu)',
'transfer-encoding': 'chunked',
'vary': 'Accept-Encoding'}
```
With `urllib2`:
```
>>> import urllib2
>>> u = urllib2.urlopen('http://www.elacarte.com/challenge/city_grid.txt')
>>> print u.read()[:100]
>>> O O P P P P P P P P P P P P P P P O P P P P P O O
```
|
{
"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/105/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/105/timeline
| null |
completed
| null | null | false |
[
"It turns out it's a feature—to get the response, I should use `r.content`, not `r.read()`. **That isn't in the documentation** (or at least, not in the front-page example or in the API documentation for Response)—perhaps it should be changed to include illustrating how to read the actual response, as that's the most common use-case?\n",
"Absolutely. I've received quite a few questions about this. :)\n",
"I encountered the same \"problem\". Please disregard my email :))\n",
"All better :)\n"
] |
https://api.github.com/repos/psf/requests/issues/104
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/104/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/104/comments
|
https://api.github.com/repos/psf/requests/issues/104/events
|
https://github.com/psf/requests/pull/104
| 1,402,404 |
MDExOlB1bGxSZXF1ZXN0MjcwNTY4
| 104 |
Fix a link in the documentation.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/291359?v=4",
"events_url": "https://api.github.com/users/SimonSapin/events{/privacy}",
"followers_url": "https://api.github.com/users/SimonSapin/followers",
"following_url": "https://api.github.com/users/SimonSapin/following{/other_user}",
"gists_url": "https://api.github.com/users/SimonSapin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SimonSapin",
"id": 291359,
"login": "SimonSapin",
"node_id": "MDQ6VXNlcjI5MTM1OQ==",
"organizations_url": "https://api.github.com/users/SimonSapin/orgs",
"received_events_url": "https://api.github.com/users/SimonSapin/received_events",
"repos_url": "https://api.github.com/users/SimonSapin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SimonSapin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SimonSapin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SimonSapin",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-08-14T06:51:11Z
|
2021-09-08T23:01:17Z
|
2011-08-14T14:41:33Z
|
CONTRIBUTOR
|
resolved
|
(I haven’t checked the sphinx output, but I’m fairly confident on this one.)
|
{
"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/104/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/104/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/104.diff",
"html_url": "https://github.com/psf/requests/pull/104",
"merged_at": "2011-08-14T14:41:33Z",
"patch_url": "https://github.com/psf/requests/pull/104.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/104"
}
| true |
[] |
https://api.github.com/repos/psf/requests/issues/103
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/103/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/103/comments
|
https://api.github.com/repos/psf/requests/issues/103/events
|
https://github.com/psf/requests/issues/103
| 1,400,351 |
MDU6SXNzdWUxNDAwMzUx
| 103 |
Remove AuthManager in favor of context manager
|
{
"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 | 0 |
2011-08-13T16:36:33Z
|
2021-09-09T12:00:44Z
|
2011-08-13T17:05:09Z
|
CONTRIBUTOR
|
resolved
|
{
"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/103/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/103/timeline
| null |
completed
| null | null | false |
[] |
|
https://api.github.com/repos/psf/requests/issues/102
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/102/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/102/comments
|
https://api.github.com/repos/psf/requests/issues/102/events
|
https://github.com/psf/requests/issues/102
| 1,393,856 |
MDU6SXNzdWUxMzkzODU2
| 102 |
Content-type problem depending on python version
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/620035?v=4",
"events_url": "https://api.github.com/users/moliware/events{/privacy}",
"followers_url": "https://api.github.com/users/moliware/followers",
"following_url": "https://api.github.com/users/moliware/following{/other_user}",
"gists_url": "https://api.github.com/users/moliware/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moliware",
"id": 620035,
"login": "moliware",
"node_id": "MDQ6VXNlcjYyMDAzNQ==",
"organizations_url": "https://api.github.com/users/moliware/orgs",
"received_events_url": "https://api.github.com/users/moliware/received_events",
"repos_url": "https://api.github.com/users/moliware/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moliware/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moliware/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moliware",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-08-12T10:08:08Z
|
2021-09-09T12:00:43Z
|
2011-08-16T07:47:55Z
|
NONE
|
resolved
|
Hi, I've changed python version from 2.6 to 2.7 and I've found this weird error at sending headers.
If I put 'Content-Type' then no content-type is sent :
```
>>> requests.post('http://httpbin.org/post', '',{'Content-Type' : 'application/json'}).read()
'{"origin": "::ffff:184.73.223.212", "files": {}, "form": {}, "url": "http://httpbin.org/post", "args": {}, "headers": {"Content-Length": "0", "Accept-Encoding": "gzip", "X-Forwarded-For": "::ffff:184.73.223.212", "Connection": "close", "User-Agent": "python-requests.org", "Host": "httpbin.org", "X-Forwarded-Protocol": "", "Content-Type": "application/x-www-form-urlencoded"}, "data": ""}'
```
But if I put 'Content-type' then it works perfectly:
```
>>> requests.post('http://httpbin.org/post', '',{'Content-type' : 'application/json'}).read()
'{"origin": "::ffff:184.73.223.212", "files": {}, "form": {}, "url": "http://httpbin.org/post", "args": {}, "headers": {"Content-Length": "0", "Accept-Encoding": "gzip", "X-Forwarded-For": "::ffff:184.73.223.212", "Connection": "close", "User-Agent": "python-requests.org", "Host": "httpbin.org", "X-Forwarded-Protocol": "", "Content-Type": "application/json"}, "data": ""}'
```
In python 2.6\* both examples work well.
For more information, the same example but using urllib2 is working ok.
```
req = urllib2.Request('http://httpbin.org/post', '',{'Content-Type' : 'application/json'})
>>> urllib2.urlopen(req).read()
'{"origin": "::ffff:184.73.223.212", "files": {}, "form": {}, "url": "http://httpbin.org/post", "args": {}, "headers": {"Content-Length": "0", "Accept-Encoding": "identity", "X-Forwarded-For": "::ffff:184.73.223.212", "Connection": "close", "User-Agent": "Python-urllib/2.7", "Host": "httpbin.org", "X-Forwarded-Protocol": "", "Content-Type": "application/json"}, "data": ""}'
```
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/620035?v=4",
"events_url": "https://api.github.com/users/moliware/events{/privacy}",
"followers_url": "https://api.github.com/users/moliware/followers",
"following_url": "https://api.github.com/users/moliware/following{/other_user}",
"gists_url": "https://api.github.com/users/moliware/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moliware",
"id": 620035,
"login": "moliware",
"node_id": "MDQ6VXNlcjYyMDAzNQ==",
"organizations_url": "https://api.github.com/users/moliware/orgs",
"received_events_url": "https://api.github.com/users/moliware/received_events",
"repos_url": "https://api.github.com/users/moliware/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moliware/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moliware/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moliware",
"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/102/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/102/timeline
| null |
completed
| null | null | false |
[
"This workaround works, but I am having the same problem on 2.7\n"
] |
https://api.github.com/repos/psf/requests/issues/101
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/101/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/101/comments
|
https://api.github.com/repos/psf/requests/issues/101/events
|
https://github.com/psf/requests/issues/101
| 1,379,626 |
MDU6SXNzdWUxMzc5NjI2
| 101 |
HTTP keep alive support
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/758?v=4",
"events_url": "https://api.github.com/users/oliverandrich/events{/privacy}",
"followers_url": "https://api.github.com/users/oliverandrich/followers",
"following_url": "https://api.github.com/users/oliverandrich/following{/other_user}",
"gists_url": "https://api.github.com/users/oliverandrich/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/oliverandrich",
"id": 758,
"login": "oliverandrich",
"node_id": "MDQ6VXNlcjc1OA==",
"organizations_url": "https://api.github.com/users/oliverandrich/orgs",
"received_events_url": "https://api.github.com/users/oliverandrich/received_events",
"repos_url": "https://api.github.com/users/oliverandrich/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/oliverandrich/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oliverandrich/subscriptions",
"type": "User",
"url": "https://api.github.com/users/oliverandrich",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] |
{
"closed_at": "2011-11-13T05:41:39Z",
"closed_issues": 9,
"created_at": "2011-08-23T15:07:03Z",
"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": null,
"html_url": "https://github.com/psf/requests/milestone/10",
"id": 30485,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/10/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODU=",
"number": 10,
"open_issues": 0,
"state": "closed",
"title": "v0.8.0",
"updated_at": "2011-11-27T16:13:09Z",
"url": "https://api.github.com/repos/psf/requests/milestones/10"
}
| 12 |
2011-08-10T13:28:39Z
|
2021-09-09T11:00:52Z
|
2011-11-13T05:41:39Z
|
NONE
|
resolved
|
I know keep alive is currently beyond the scope of urllib2, but I think it is a worthwhile addition to requests. I use requests mainly to consume HTTP based APIs created by our own or by 3rd party developers. Generally I need to do tasks like searching for some data, which is returned as a json document, afterwards I download 200-2000 images referenced by the json document.
I maintain a lib which is based on urllib2/requests, which is nice to read because of requests. But the production version is based on httplib2 which provides keep alive support. The code is not as nice as with requests, but a typical job takes 30-200% less time, because the http connection is reused.
urlgrabber (http://urlgrabber.baseurl.org/) provided such a HTTPHandler class. (See also http://stackoverflow.com/questions/1037406/python-urllib2-with-keep-alive) May be something like that can be integrated into requests?
I will take a look at the url grabber code myself. May be I can provided a useable patch.
|
{
"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/101/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/101/timeline
| null |
completed
| null | null | false |
[
"Sorry for the delay in my response. \n\nI would LOVE to have keep-alive support in Requests. My main concern is keeping the API for it as clean as possible.\n\nI'm thinking it could be an optional flag to requests.session(), maybe. \n",
"This sounds like a good idea. \n",
"Hi Kenneth,\n\nBased on urlgrabber keepalive module, I have created a branch for adding support for this, using requests sessions.\nhttps://github.com/maraujop/requests/tree/feature/keepalive\n\nIt took me the whole afternoon to realize old Twitter REST API doesn't have support for Keep-alive connections which made me feel mental retarted BTW. Anyway, I pushed my branch just in case you think this is useful. HTTPS support is commented out, because it depends on another urlgrabber module called `sslfactory.py`. If you like it, it would be as easy as uncommenting the code and adding the module.\n\nCheers,\nMiguel\n",
":sparkles: BEAUTIFUL! :sparkles: \n\nThanks! :cake:\n\nI'll have to rip out the module you added and reimpliment myself because it's GPL. It looks really strait forward, so shouldn't be a problem. \n",
"Also, I'm trying to keep all code original, because this effects the Debian packaging rules and potential standard library inclusion. The vendorized version of Poster that's included is considered a fork, which is the only reason I've been able to get away with it so far. \n\nAnyway, I can't wait to play with this! \n",
"Thanks,\n\nI'm not an expert on open source licenses, could you please briefly explain me what is the problem with GPL? \n\nAnyway I was going to say, the best thing would be rewriting the module, the code is quite messy, methods don't have docstrings (something I particularly hate) and I honestly think it could be clearer and cleaner.\n",
"https://github.com/kennethreitz/requests/blob/develop/docs/user/intro.rst read \"Licence“ part\n",
"The biggest reason is that I couldn't distribute Requests without making it _all_ GPL. If anyone used Requests in a project, that project would be bound to the GPL. It would have to excluded from most commercial projects, as they can't be offered as open source. \n\nIn short, it would make Requests a liability instead of an asset, to many people. \n\nRequests has already gone through the hurtles of making it into the Fedora and Debian package repositories. I'm speculating, but changing the license would likely lead to a re-evaluation. Adding a new packaged dependency would affect that as well.\n\nA personal goal of mine is to have Requests be added to the Python Standard Library. This simply couldn't happen if it was GPL, unless I (as the copyright holder) could change the license. If it was because of a GPL'd internal dependency, I could not.\n\nAnyway, there's a good brief overview :)\n",
"Thanks Simonas for the link, I think I missed it the first time I was reading the docs.\n\nThanks Kenneth for the explanation, I wasn't aware of these details and I will have them into account for the future.\n",
"Requests sessions are going to have keep-alive / connection pooling soon!\n",
"Cool :)\n",
"Done.\n"
] |
https://api.github.com/repos/psf/requests/issues/100
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/100/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/100/comments
|
https://api.github.com/repos/psf/requests/issues/100/events
|
https://github.com/psf/requests/pull/100
| 1,370,838 |
MDExOlB1bGxSZXF1ZXN0MjYxNjk5
| 100 |
Added proxies to requests.settings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/182194?v=4",
"events_url": "https://api.github.com/users/zsiciarz/events{/privacy}",
"followers_url": "https://api.github.com/users/zsiciarz/followers",
"following_url": "https://api.github.com/users/zsiciarz/following{/other_user}",
"gists_url": "https://api.github.com/users/zsiciarz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zsiciarz",
"id": 182194,
"login": "zsiciarz",
"node_id": "MDQ6VXNlcjE4MjE5NA==",
"organizations_url": "https://api.github.com/users/zsiciarz/orgs",
"received_events_url": "https://api.github.com/users/zsiciarz/received_events",
"repos_url": "https://api.github.com/users/zsiciarz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zsiciarz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zsiciarz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zsiciarz",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-08-09T08:06:15Z
|
2021-09-08T12:01:14Z
|
2011-08-09T10:37:58Z
|
CONTRIBUTOR
|
resolved
|
In response to issue #75.
|
{
"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/100/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/100/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/100.diff",
"html_url": "https://github.com/psf/requests/pull/100",
"merged_at": "2011-08-09T10:37:58Z",
"patch_url": "https://github.com/psf/requests/pull/100.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/100"
}
| true |
[] |
https://api.github.com/repos/psf/requests/issues/99
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/99/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/99/comments
|
https://api.github.com/repos/psf/requests/issues/99/events
|
https://github.com/psf/requests/pull/99
| 1,346,949 |
MDExOlB1bGxSZXF1ZXN0MjU1NzQw
| 99 |
Fixing minor bug in code example - missing apostrophe
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/292951?v=4",
"events_url": "https://api.github.com/users/petermanser/events{/privacy}",
"followers_url": "https://api.github.com/users/petermanser/followers",
"following_url": "https://api.github.com/users/petermanser/following{/other_user}",
"gists_url": "https://api.github.com/users/petermanser/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/petermanser",
"id": 292951,
"login": "petermanser",
"node_id": "MDQ6VXNlcjI5Mjk1MQ==",
"organizations_url": "https://api.github.com/users/petermanser/orgs",
"received_events_url": "https://api.github.com/users/petermanser/received_events",
"repos_url": "https://api.github.com/users/petermanser/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/petermanser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/petermanser/subscriptions",
"type": "User",
"url": "https://api.github.com/users/petermanser",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-08-04T19:48:37Z
|
2021-09-08T12:01:15Z
|
2011-08-05T01:07:49Z
|
CONTRIBUTOR
|
resolved
|
{
"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/99/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/99/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/99.diff",
"html_url": "https://github.com/psf/requests/pull/99",
"merged_at": "2011-08-05T01:07:49Z",
"patch_url": "https://github.com/psf/requests/pull/99.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/99"
}
| true |
[
"Thought I'll send a Pull Request because it's on the first lines of \"Getting started\".\n",
"Thanks! \n"
] |
|
https://api.github.com/repos/psf/requests/issues/98
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/98/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/98/comments
|
https://api.github.com/repos/psf/requests/issues/98/events
|
https://github.com/psf/requests/issues/98
| 1,334,028 |
MDU6SXNzdWUxMzM0MDI4
| 98 |
Revisit Async Module
|
{
"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"
}
|
[
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] |
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}",
"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_at": "2011-09-30T11:17:36Z",
"closed_issues": 3,
"created_at": "2011-08-23T15:02: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": null,
"html_url": "https://github.com/psf/requests/milestone/8",
"id": 30483,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/8/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODM=",
"number": 8,
"open_issues": 0,
"state": "closed",
"title": "v0.7.0",
"updated_at": "2011-09-30T11:17:36Z",
"url": "https://api.github.com/repos/psf/requests/milestones/8"
}
| 13 |
2011-08-02T23:26:21Z
|
2021-09-09T11:01:06Z
|
2011-09-30T11:17:36Z
|
CONTRIBUTOR
|
resolved
|
Useless as is.
|
{
"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/98/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/98/timeline
| null |
completed
| null | null | false |
[
"### Possible API:\n\n``` pycon\n>>> from requests import async\n>>> request_list = [async.get('http://github.com'), async.get('http://kennethreitz.com')]\n\n>>> async.map(request_list, size=5)\n[<Response [200]>, <Response [200]>]\n```\n\n**Changes Required:**\n- `Response.request` for context.\n",
"+1\n",
"Unless I'm missing something, this wouldn't allow adding new requests while other requests are in progress. I think that's important ... but I may well be missing something!\n\nSome documentation of async might the most important bit :)\n",
"rboulton, good point. There will have to be a callback-style interface too.\n",
"fwiw, I would vote for callbacks over a twisted style yield based api that seems to be en vogue these days (just in case a yield style async api was in the running)\n",
"Planned: gevent\n",
"3092483433ebf0f5802677aa9b8a74ee4dc1e64b\n",
"``` python\n# -*- coding: utf-8 -*-\n\nimport requests\nfrom requests import async\n\nurls = [\n 'http://www.readability.com',\n 'http://tablib.org',\n 'http://httpbin.org',\n 'http://python-requests.org',\n 'http://kennethreitz.com'\n]\n\nurls = urls + urls\n\n```\n\n**Standard (14.125s)**\n\n``` python\nfor url in urls:\n r = requests.get(url)\n r.content\n```\n\n**Standard + Keep-Alive (6.390s)**\n\n``` python\nwith requests.session() as s:\n for url in urls:\n r = requests.get(url)\n r.content\n```\n\n**Standard + Gevent (1.589s)**\n\n``` pycon\n>>> rs = [async.get(u) for u in urls]\n>>> async.map(rs)\n[<Response [200]>, <Response [200]>, ...]\n```\n\n**Gevent + Keep-Alive (1.132s)**\n\n``` pycon\n>>> rs = [async.get(u) for u in urls]\n>>> async.map(rs, keep_alive=True)\n[<Response [200]>, <Response [200]>, ...]\n```\n",
"`async.map(map(async.get, urls))`? :)\n",
"Pure awesomesauce !!!!\n",
"But quite unstable of course. Looking forward to release ;-)\n",
"I :heart: gevent.\n\nLooking forward to this!\n",
"#201\n"
] |
https://api.github.com/repos/psf/requests/issues/97
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/97/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/97/comments
|
https://api.github.com/repos/psf/requests/issues/97/events
|
https://github.com/psf/requests/issues/97
| 1,331,382 |
MDU6SXNzdWUxMzMxMzgy
| 97 |
Turn a request into a CURL command string
|
{
"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"
}
|
[
{
"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 | 2 |
2011-08-02T16:59:35Z
|
2021-09-09T02:11:55Z
|
2011-08-31T04:09:38Z
|
CONTRIBUTOR
|
resolved
|
Could be fun.
|
{
"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/97/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/97/timeline
| null |
completed
| null | null | false |
[
"Some code which does this sort of thing (though not with requests.py) can be found at https://github.com/aparo/pyes/blob/master/pyes/es.py#L274-280 - might be a useful starting point.\n",
"Added something for this. See Issue #139\n\nStill some work to do. \n"
] |
https://api.github.com/repos/psf/requests/issues/96
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/96/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/96/comments
|
https://api.github.com/repos/psf/requests/issues/96/events
|
https://github.com/psf/requests/pull/96
| 1,330,557 |
MDExOlB1bGxSZXF1ZXN0MjUxMDc1
| 96 |
Fixes correct "relative" redirections.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50606?v=4",
"events_url": "https://api.github.com/users/jeremys/events{/privacy}",
"followers_url": "https://api.github.com/users/jeremys/followers",
"following_url": "https://api.github.com/users/jeremys/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeremys",
"id": 50606,
"login": "jeremys",
"node_id": "MDQ6VXNlcjUwNjA2",
"organizations_url": "https://api.github.com/users/jeremys/orgs",
"received_events_url": "https://api.github.com/users/jeremys/received_events",
"repos_url": "https://api.github.com/users/jeremys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeremys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeremys",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-08-02T15:05:25Z
|
2021-09-08T12:01:14Z
|
2011-08-13T13:37:39Z
|
CONTRIBUTOR
|
resolved
|
Fixes correct "relative" redirections. Example: http://digg.com/d1qIwX, which redirects to "/news/story/A_Manifesto_How_to_Save_Media", which requests transforms to: http://digg.com//news/story/A_Manifesto_How_to_Save_Media" which results in an endless redirect loop.
|
{
"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/96/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/96/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/96.diff",
"html_url": "https://github.com/psf/requests/pull/96",
"merged_at": "2011-08-13T13:37:39Z",
"patch_url": "https://github.com/psf/requests/pull/96.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/96"
}
| true |
[
"Just ran into this bug today, thanks for the fix @jeremys\n",
"Thanks a ton for the contribution! Sorry the delay on merging this\n"
] |
https://api.github.com/repos/psf/requests/issues/95
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/95/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/95/comments
|
https://api.github.com/repos/psf/requests/issues/95/events
|
https://github.com/psf/requests/issues/95
| 1,320,422 |
MDU6SXNzdWUxMzIwNDIy
| 95 |
requests.models.Request has allow_redirects and redirects
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13985?v=4",
"events_url": "https://api.github.com/users/bulkan/events{/privacy}",
"followers_url": "https://api.github.com/users/bulkan/followers",
"following_url": "https://api.github.com/users/bulkan/following{/other_user}",
"gists_url": "https://api.github.com/users/bulkan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bulkan",
"id": 13985,
"login": "bulkan",
"node_id": "MDQ6VXNlcjEzOTg1",
"organizations_url": "https://api.github.com/users/bulkan/orgs",
"received_events_url": "https://api.github.com/users/bulkan/received_events",
"repos_url": "https://api.github.com/users/bulkan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bulkan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bulkan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bulkan",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 4 |
2011-08-01T02:44:39Z
|
2021-09-09T12:00:45Z
|
2011-08-01T03:39:49Z
|
NONE
|
resolved
|
The api uses allow_redirects to control redirect following but the in the Request:185 it uses _redirects_
requests.post is following a 302 redirect even though allow_redirects is explicitly set to False.
I think Request:185 should be;
```
if r.status_code in REDIRECT_STATI and self.allow_redirects:
```
|
{
"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/95/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/95/timeline
| null |
completed
| null | null | false |
[
"`allow_redirects` is used to allow 301-like behavior for non-GET-like requests (like a POST). \n\n`_redirects` is used internally to flag if a request is part of a redirect chain.\n",
"But the following code follow redirects for 302. \n\n```\nresp = requests.post(uri, data=urlencode(datadict), allow_redirects=False, headers=headersdict)\n```\n\nServer first responds with;\n\n```\nStatus Code:302 Moved Temporarily\n\nCache-Control:no-store, no-cache, must-revalidate\npost-check=0, pre-check=0\nContent-Length:0\nDate:Mon, 01 Aug 2011 04:04:21 GMT\nExpires:Thu, 01 Jan 1970 00:00:00 GMT\nLocation:http://server/downloadTable?fileTemplate=templates%2FTemplate.csv\nPragma:no-cache\nServer:Apache-Coyote/1.1\n```\n\nthen a GET request is sent to the Location\n",
"Yes, that is correct behavior. The `allow_redirects` parameter is only an opt-in to allow redirects on POSTs. Not disallow regular redirects.\n",
"Well the name is ambiguous `allow_redirects` suggests that it will disallow any redirects. What are _regular redirects_ ?\n"
] |
https://api.github.com/repos/psf/requests/issues/94
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/94/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/94/comments
|
https://api.github.com/repos/psf/requests/issues/94/events
|
https://github.com/psf/requests/issues/94
| 1,311,749 |
MDU6SXNzdWUxMzExNzQ5
| 94 |
PATCH error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/195470?v=4",
"events_url": "https://api.github.com/users/rabc/events{/privacy}",
"followers_url": "https://api.github.com/users/rabc/followers",
"following_url": "https://api.github.com/users/rabc/following{/other_user}",
"gists_url": "https://api.github.com/users/rabc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rabc",
"id": 195470,
"login": "rabc",
"node_id": "MDQ6VXNlcjE5NTQ3MA==",
"organizations_url": "https://api.github.com/users/rabc/orgs",
"received_events_url": "https://api.github.com/users/rabc/received_events",
"repos_url": "https://api.github.com/users/rabc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rabc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rabc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rabc",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 3 |
2011-07-29T18:25:38Z
|
2021-09-09T12:00:45Z
|
2011-08-13T17:02:26Z
|
NONE
|
resolved
|
Hi!
I'm trying to make a request using PATCH, but it show this error (the same when I tried to make this request using urllib2 only):
'PATCH' is an unrecognized HTTP method
|
{
"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/94/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/94/timeline
| null |
completed
| null | null | false |
[
"What version of Python?\n",
"2.6.1, using Mac OS X 10.6.8\n\nOne more detail, maybe this is the problem: I'm using Google AppEngine, but just the launcher on my machine by now.\n",
"That shoudn't be happening :)\n"
] |
https://api.github.com/repos/psf/requests/issues/93
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/93/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/93/comments
|
https://api.github.com/repos/psf/requests/issues/93/events
|
https://github.com/psf/requests/pull/93
| 1,275,732 |
MDExOlB1bGxSZXF1ZXN0MjM2ODgz
| 93 |
Develop
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/256074?v=4",
"events_url": "https://api.github.com/users/tgulacsi/events{/privacy}",
"followers_url": "https://api.github.com/users/tgulacsi/followers",
"following_url": "https://api.github.com/users/tgulacsi/following{/other_user}",
"gists_url": "https://api.github.com/users/tgulacsi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tgulacsi",
"id": 256074,
"login": "tgulacsi",
"node_id": "MDQ6VXNlcjI1NjA3NA==",
"organizations_url": "https://api.github.com/users/tgulacsi/orgs",
"received_events_url": "https://api.github.com/users/tgulacsi/received_events",
"repos_url": "https://api.github.com/users/tgulacsi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tgulacsi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tgulacsi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tgulacsi",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-07-23T20:22:52Z
|
2021-09-08T12:01:13Z
|
2011-07-24T02:12:52Z
|
NONE
|
resolved
|
Just a very small modification:
Modify CaseInsensitiveDict to cache lower key computation and use dict lookup instead of list.
(I don't know whether this affects anything: AFAIK headers are below 1000 key size...)
GT
|
{
"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/93/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/93/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/93.diff",
"html_url": "https://github.com/psf/requests/pull/93",
"merged_at": "2011-07-24T02:12:52Z",
"patch_url": "https://github.com/psf/requests/pull/93.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/93"
}
| true |
[] |
https://api.github.com/repos/psf/requests/issues/92
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/92/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/92/comments
|
https://api.github.com/repos/psf/requests/issues/92/events
|
https://github.com/psf/requests/issues/92
| 1,275,331 |
MDU6SXNzdWUxMjc1MzMx
| 92 |
make internal functions available
|
{
"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}",
"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_at": "2011-09-30T11:17:36Z",
"closed_issues": 3,
"created_at": "2011-08-23T15:02: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": null,
"html_url": "https://github.com/psf/requests/milestone/8",
"id": 30483,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/8/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODM=",
"number": 8,
"open_issues": 0,
"state": "closed",
"title": "v0.7.0",
"updated_at": "2011-09-30T11:17:36Z",
"url": "https://api.github.com/repos/psf/requests/milestones/8"
}
| 1 |
2011-07-23T17:39:54Z
|
2021-09-09T12:00:34Z
|
2011-09-25T23:46:25Z
|
CONTRIBUTOR
|
resolved
|
Requests could be used to generate urls for GET requests w/ parameters, for example. Not necessarily make them.
|
{
"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/92/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/92/timeline
| null |
completed
| null | null | false |
[
"Done!\n"
] |
https://api.github.com/repos/psf/requests/issues/91
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/91/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/91/comments
|
https://api.github.com/repos/psf/requests/issues/91/events
|
https://github.com/psf/requests/issues/91
| 1,248,297 |
MDU6SXNzdWUxMjQ4Mjk3
| 91 |
.history doesn't work
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36156?v=4",
"events_url": "https://api.github.com/users/jerem/events{/privacy}",
"followers_url": "https://api.github.com/users/jerem/followers",
"following_url": "https://api.github.com/users/jerem/following{/other_user}",
"gists_url": "https://api.github.com/users/jerem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jerem",
"id": 36156,
"login": "jerem",
"node_id": "MDQ6VXNlcjM2MTU2",
"organizations_url": "https://api.github.com/users/jerem/orgs",
"received_events_url": "https://api.github.com/users/jerem/received_events",
"repos_url": "https://api.github.com/users/jerem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jerem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jerem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jerem",
"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}",
"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"
}
] | null | 3 |
2011-07-19T09:39:31Z
|
2021-09-09T12:00:44Z
|
2011-08-13T17:03:33Z
|
CONTRIBUTOR
|
resolved
|
If I do:
```
>>> import requests
>>> r = requests.get('http://bit.ly/kCCnc0')
>>> r.history
[<Response [301]>]
```
I just get the first request in the history, instead, I should get:
```
>>> import requests
>>> r = requests.get('http://bit.ly/kCCnc0')
>>> r.history
[<Response [301]>, <Response [301]>, <Response [302]>]
```
|
{
"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/91/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/91/timeline
| null |
completed
| null | null | false |
[
"Yikes, I added some changes to the redirection handling last release.\n\nI added a customizable redirection testing system to httpbin to test this (http://httpbin.org/redirect/6) , but haven't written the unit tests yet. \n\nThanks.\n",
"history works but error is defined to the redirect error. It was not the case before 0.5.1.\n\n```\n>>> import requests\n>>> r = requests.get('http://httpbin.org/redirect/6')\n>>> r.history\n[<Response [302]>, <Response [302]>, <Response [302]>, <Response [302]>, <Response [302]>, <Response [302]>]\n>>> r.error\nHTTPError()\n>>> str(r.error)\n'HTTP Error 302: FOUND'\n>>> \n```\n",
"@jerem: This is fixed now!\n"
] |
https://api.github.com/repos/psf/requests/issues/90
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/90/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/90/comments
|
https://api.github.com/repos/psf/requests/issues/90/events
|
https://github.com/psf/requests/issues/90
| 1,234,712 |
MDU6SXNzdWUxMjM0NzEy
| 90 |
keep-alive
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31504?v=4",
"events_url": "https://api.github.com/users/janrito/events{/privacy}",
"followers_url": "https://api.github.com/users/janrito/followers",
"following_url": "https://api.github.com/users/janrito/following{/other_user}",
"gists_url": "https://api.github.com/users/janrito/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/janrito",
"id": 31504,
"login": "janrito",
"node_id": "MDQ6VXNlcjMxNTA0",
"organizations_url": "https://api.github.com/users/janrito/orgs",
"received_events_url": "https://api.github.com/users/janrito/received_events",
"repos_url": "https://api.github.com/users/janrito/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/janrito/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/janrito/subscriptions",
"type": "User",
"url": "https://api.github.com/users/janrito",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 5 |
2011-07-16T10:17:24Z
|
2021-09-09T12:00:45Z
|
2011-07-21T13:07:47Z
|
CONTRIBUTOR
|
resolved
|
Does requests have support for keep-alive type requests? I am using an API that streams data through an open POST connection. If the connection is still active, the request function does not return. Maybe it could be done by adding file handling to the Response.content property.
|
{
"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/90/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/90/timeline
| null |
completed
| null | null | false |
[
"It does not, currently. Pull requests welcome though :)\n",
"I'm using Twitter streaming api with requests, perhaps this code is useful for you\n\n``` python\nimport requests\n\ndef on_receive(data):\n print data\n\nusername = 'XXXX'\npassword = 'XXXX'\nurl = 'http://stream.twitter.com/1/statuses/filter.json'\n# Sadly 'bieber' keyword is a good test :S\nresponse = requests.post(url, data={'track' : 'bieber'}, headers={'Connection' : 'Keep-Alive'}, auth=(username, password))\nwhile True:\n on_receive(response.read(100))\n```\n",
"Thanks @moliware, this is what I did.\n",
"@moliware: Excellent! I'm going to add this to the upcoming cookbook :)\n",
"nice :)\n"
] |
https://api.github.com/repos/psf/requests/issues/89
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/89/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/89/comments
|
https://api.github.com/repos/psf/requests/issues/89/events
|
https://github.com/psf/requests/pull/89
| 1,214,406 |
MDExOlB1bGxSZXF1ZXN0MjIxMTA4
| 89 |
We can represent multivalued params with arrays
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/137351?v=4",
"events_url": "https://api.github.com/users/rabad/events{/privacy}",
"followers_url": "https://api.github.com/users/rabad/followers",
"following_url": "https://api.github.com/users/rabad/following{/other_user}",
"gists_url": "https://api.github.com/users/rabad/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rabad",
"id": 137351,
"login": "rabad",
"node_id": "MDQ6VXNlcjEzNzM1MQ==",
"organizations_url": "https://api.github.com/users/rabad/orgs",
"received_events_url": "https://api.github.com/users/rabad/received_events",
"repos_url": "https://api.github.com/users/rabad/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rabad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rabad/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rabad",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 4 |
2011-07-13T09:16:54Z
|
2021-09-08T12:01:13Z
|
2011-07-24T02:12:51Z
|
CONTRIBUTOR
|
resolved
|
If we need to use a multivalued param like in http://localhost/service?q=*&facet.field=fieldA&facet.field=fieldB, now we can use arrays in the params dictionary:
``` python
r = requests.get('http://localhost/service',
params={'q':'*', 'facet.field':['fieldA','fieldB']})
```
|
{
"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/89/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/89/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/89.diff",
"html_url": "https://github.com/psf/requests/pull/89",
"merged_at": "2011-07-24T02:12:51Z",
"patch_url": "https://github.com/psf/requests/pull/89.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/89"
}
| true |
[
"Very interesting. Sorry I haven't merged this yes. I've been giving it a lot of thought.\n\nI'm wondering if a MultiDict might be more appropriate? \n",
"It should be easy to use either MultiDict(http://www.dalkescientific.com/Python/MultiDict.py) or a custom class to replace params dictionary.\n\nLet me have a look.\n",
"On second thought, I'm going to merge this in. This is a good solution :)\n\nThanks! :cake:\n",
"Ok, it was an easier approach ;)\n"
] |
https://api.github.com/repos/psf/requests/issues/88
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/88/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/88/comments
|
https://api.github.com/repos/psf/requests/issues/88/events
|
https://github.com/psf/requests/issues/88
| 1,147,471 |
MDU6SXNzdWUxMTQ3NDcx
| 88 |
basic auth not working with github api (v3)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20208?v=4",
"events_url": "https://api.github.com/users/garbas/events{/privacy}",
"followers_url": "https://api.github.com/users/garbas/followers",
"following_url": "https://api.github.com/users/garbas/following{/other_user}",
"gists_url": "https://api.github.com/users/garbas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/garbas",
"id": 20208,
"login": "garbas",
"node_id": "MDQ6VXNlcjIwMjA4",
"organizations_url": "https://api.github.com/users/garbas/orgs",
"received_events_url": "https://api.github.com/users/garbas/received_events",
"repos_url": "https://api.github.com/users/garbas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/garbas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/garbas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/garbas",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-06-30T23:03:43Z
|
2021-09-09T12:00:46Z
|
2011-07-05T15:38:02Z
|
NONE
|
resolved
|
when i try to get info of authenticated user it fails with 404:
```
>> import requests
>> r = requests.get(' https://api.github.com/user', auth=('garbas', 'PASS')
>> r.ok
False
>> r.headers
{'status': '404 Not Found', 'x-ratelimit-remaining': '4997', 'content-length': '23', 'server': 'nginx/1.0.4', 'connection': 'close', 'x-ratelimit-limit': '5000', 'date': 'Thu, 30 Jun 2011 22:51:40 GMT', 'content-type': 'application/json'}
```
if i do it with curl it works:
```
% curl -u "garbas:PASS' https://api.github.com/user
{
"public_gists": 29,
"type": "User",
...
}
```
am i doing something wrong?
|
{
"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/88/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/88/timeline
| null |
completed
| null | null | false |
[
"You aren't doing anything wrong. The way Basic Auth works is the client requests the url w/o auth, the server challenges it (`403`), and the client sends the auth. GitHub is sending a not found `404` for security reasons, which isn't standard protocol.\n\nSo, requests isn't sending the auth at all, since it isn't being challenged, which _is_ proper behavior. I'm working on an elegant api to force-send the auth, which will cover this use case. Hopefully I'll have something great within a few days.\n\nIn the meantime, you can build the Auth header yourself:\n\n``` python\nimport requests\nfrom base64 import encodestring as base64\n\nusername = 'kennethreitz'\npassword = 'xxxxxxxx'\n\nrepo_url = 'https://api.github.com/repos/kennethreitz/reflog' # private repo\n\nencoded_auth = base64('%s:%s' % (username, password)).replace('\\n', '')\nheaders = {'Authorization': 'Basic %s' % encoded_auth}\n```\n\nYay!\n\n``` pycon\n>>> requests.get(repo_url, headers=headers)\n<Response [200]>\n```\n",
"Alright, a new ForcedHTTPBasicAuthenticationHandler was added, and it's default.\n\nThis should work fine now::\n\nrequests.get('https://api.github.com', auth=('user', 'pass'))\n:)\n"
] |
https://api.github.com/repos/psf/requests/issues/87
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/87/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/87/comments
|
https://api.github.com/repos/psf/requests/issues/87/events
|
https://github.com/psf/requests/pull/87
| 1,136,636 |
MDExOlB1bGxSZXF1ZXN0MjAyMzA3
| 87 |
Added the possibility to access headers without fetching the whole body (
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36156?v=4",
"events_url": "https://api.github.com/users/jerem/events{/privacy}",
"followers_url": "https://api.github.com/users/jerem/followers",
"following_url": "https://api.github.com/users/jerem/following{/other_user}",
"gists_url": "https://api.github.com/users/jerem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jerem",
"id": 36156,
"login": "jerem",
"node_id": "MDQ6VXNlcjM2MTU2",
"organizations_url": "https://api.github.com/users/jerem/orgs",
"received_events_url": "https://api.github.com/users/jerem/received_events",
"repos_url": "https://api.github.com/users/jerem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jerem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jerem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jerem",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-06-29T09:13:12Z
|
2021-09-08T12:01:12Z
|
2011-07-04T16:01:55Z
|
CONTRIBUTOR
|
resolved
|
Added the possibility to access headers without fetching the whole body (fixes #86).
|
{
"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/87/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/87/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/87.diff",
"html_url": "https://github.com/psf/requests/pull/87",
"merged_at": "2011-07-04T16:01:55Z",
"patch_url": "https://github.com/psf/requests/pull/87.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/87"
}
| true |
[
"Thanks! \n"
] |
https://api.github.com/repos/psf/requests/issues/86
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/86/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/86/comments
|
https://api.github.com/repos/psf/requests/issues/86/events
|
https://github.com/psf/requests/issues/86
| 1,120,365 |
MDU6SXNzdWUxMTIwMzY1
| 86 |
Be able to get the response content as a file like object
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36156?v=4",
"events_url": "https://api.github.com/users/jerem/events{/privacy}",
"followers_url": "https://api.github.com/users/jerem/followers",
"following_url": "https://api.github.com/users/jerem/following{/other_user}",
"gists_url": "https://api.github.com/users/jerem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jerem",
"id": 36156,
"login": "jerem",
"node_id": "MDQ6VXNlcjM2MTU2",
"organizations_url": "https://api.github.com/users/jerem/orgs",
"received_events_url": "https://api.github.com/users/jerem/received_events",
"repos_url": "https://api.github.com/users/jerem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jerem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jerem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jerem",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-06-27T08:50:12Z
|
2021-09-09T12:00:47Z
|
2011-07-04T16:01:55Z
|
CONTRIBUTOR
|
resolved
|
In some particular cases, it is necessary to open a request without automatically downloading the body.
Example:
With the actual behaviour:
```
>>> import requests
>>> r = requests.get('http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.2.tar.bz2')
-> Here it blocks until the body it downloaded (72.6 MB in this case!).
>>>
```
But with a file like object, here what we can do:
```
>>> import requests
>>> r = requests.get('http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.2.tar.bz2')
>>> r.status_code
200
>>> r.read(1)
'B'
```
That means we can access the headers without waiting for the body...
Of course, we can keep the compatibility with response.content by adding a **getattr** method to the response that read and return the body when the content is requested.
|
{
"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/86/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/86/timeline
| null |
completed
| null | null | false |
[
"Interesting thoughts. \n\nCan't you just use a `HEAD` request though?\n",
"Eventually, but it's not the best way to do it.\n\nFor example, if you want to crawl web pages, you do a `GET`, check if the content-type == 'text/html', if yes you read and parse the body, otherwise you close the connection.\n\nWith a `HEAD` you have to do 2 requests, `HEAD` + `GET`. Plus the fact that some servers block or don't respond correctly to `HEAD`\n"
] |
https://api.github.com/repos/psf/requests/issues/85
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/85/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/85/comments
|
https://api.github.com/repos/psf/requests/issues/85/events
|
https://github.com/psf/requests/issues/85
| 1,116,666 |
MDU6SXNzdWUxMTE2NjY2
| 85 |
add doseq to urlencode in model._encode_params to enable list as dict value
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-06-26T07:52:27Z
|
2021-09-09T12:00:48Z
|
2011-06-26T07:56:02Z
|
CONTRIBUTOR
|
resolved
|
parse_qs and then urlencode, things will changed.
[test code and result](http://min.us/ldLJUS)
Thank you for this great lib,
the result of parse_qs is something like {'oauth': ['sig'], 'status': ['hanzi ok']}
urlencode can't handle list as dictionary value without doseq
doseq does three things,
1. if value is not list or unicode, behave like doseq=False
1. if value is unicode, decode unicode
2. if value is list, handle list as dict value
it will fall to decode if the unicode value is not encoded in ascii, Chinese for example.
but _encode_params already made sure that no unicode will pass to urlencode,
so I think it's safe to add doseq.
snippet from Python2.7/Lib/urllib.py
``` python
if not doseq:
# preserve old behavior
for k, v in query:
k = quote_plus(str(k))
v = quote_plus(str(v))
l.append(k + '=' + v)
else:
for k, v in query:
k = quote_plus(str(k))
if isinstance(v, str):
v = quote_plus(v)
l.append(k + '=' + v)
elif _is_unicode(v):
# is there a reasonable way to convert to ASCII?
# encode generates a string, but "replace" or "ignore"
# lose information and "strict" can raise UnicodeError
v = quote_plus(v.encode("ASCII","replace"))
l.append(k + '=' + v)
else:
try:
# is this a sufficient test for sequence-ness?
len(v)
except TypeError:
# not a sequence
v = quote_plus(str(v))
l.append(k + '=' + v)
else:
# loop over the sequence
for elt in v:
l.append(k + '=' + quote_plus(str(elt)))
```
it's the first time I use github, I'm sorry for the duplicated pull request
reallly appreciate for this great lib, it helps me a lot.
and I'm looking forward to oauth feature so I don't need to roll my own:)
``` diff
@@ -230,7 +230,7 @@ class Request(object):
for (k, v) in data.items():
result[k.encode('utf-8') if isinstance(k, unicode) else k] \
= v.encode('utf-8') if isinstance(v, unicode) else v
- return result, urllib.urlencode(result)
+ return result, urllib.urlencode(result, doseq=True)
else:
return data, data
```
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"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/85/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/85/timeline
| null |
completed
| null | null | false |
[
"Merged! Thank you :)\n"
] |
https://api.github.com/repos/psf/requests/issues/84
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/84/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/84/comments
|
https://api.github.com/repos/psf/requests/issues/84/events
|
https://github.com/psf/requests/issues/84
| 1,116,650 |
MDU6SXNzdWUxMTE2NjUw
| 84 |
post file to flask with requests-lib result is different than from a sever
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-06-26T07:35:48Z
|
2021-09-09T12:00:48Z
|
2011-06-26T07:42:41Z
|
CONTRIBUTOR
|
resolved
|
``` python
from flask import Flask, request
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def upload_file():
if request.method == "POST":
print request.form
print request.files
return 'fin'
else:
return '''
<!doctype html>
<title>Upload new File</title>
<h1>Upload new File</h1>
<form action="" method=post enctype=multipart/form-data>
<p><input type=file name=file>
<input type=submit value=Upload>
</form>
'''
if __name__ == '__main__':
app.run(host="localhost", port=7998, debug=True)
```
``` python
import requests
import unittest
class TE(unittest.TestCase):
def test_url3(self):
response = requests.post('http://localhost:7998/', data={}, files={"file":"/home/px/wbbase/douban.png"}).read()
print response
if __name__ == "__main__":
unittest.main()
```
this request is send from unittest
``` bash
--> p2 up.py
* Running on http://localhost:7998/
* Restarting with reloader...
ImmutableMultiDict([('file', u'/home/px/wbbase/douban.png')])
ImmutableMultiDict([])
127.0.0.1 - - [26/Jun/2011 15:34:10] "POST / HTTP/1.1" 200 -
```
this request is send from chromium
``` bash
--> p2 up.py
* Running on http://localhost:7998/
* Restarting with reloader...
127.0.0.1 - - [26/Jun/2011 15:35:00] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [26/Jun/2011 15:35:01] "GET /favicon.ico HTTP/1.1" 404 -
ImmutableMultiDict([])
ImmutableMultiDict([('file', <FileStorage: a.torrent' ('application/x-bittorrent')>)])
127.0.0.1 - - [26/Jun/2011 15:35:07] "POST / HTTP/1.1" 200 -
127.0.0.1 - - [26/Jun/2011 15:35:07] "GET /favicon.ico HTTP/1.1" 404 -
```
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"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/84/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/84/timeline
| null |
completed
| null | null | false |
[
"You have to add the file object to the dictionary, not just the path to the file.\n"
] |
https://api.github.com/repos/psf/requests/issues/83
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/83/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/83/comments
|
https://api.github.com/repos/psf/requests/issues/83/events
|
https://github.com/psf/requests/issues/83
| 1,116,596 |
MDU6SXNzdWUxMTE2NTk2
| 83 |
[feature request] support multiple values with same name in get/post data
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-06-26T06:49:05Z
|
2021-09-09T12:00:46Z
|
2011-07-24T02:52:20Z
|
CONTRIBUTOR
|
resolved
|
``` python
# *-* coding: utf-8 *-*
from flask import Flask
from flask import request
import requests
app = Flask(__name__)
@app.route('/', methods=["POST", "GET"])
def index():
if request.method == "GET":
return str(len( request.args.getlist('ck') ))
else:
return str(len( request.form.getlist('ck') ))
if __name__ == '__main__':
app.run(host="localhost", port=7999, debug=True)
```
``` python
import requests
import unittest
class TE(unittest.TestCase):
def test_url1(self):
self.assertEqual('1', requests.get('http://localhost:7999?ck=1').read())
def test_url3(self):
self.assertEqual('3', requests.get('http://localhost:7999?ck=1&ck=2&ck=3').read())
def test_get1(self):
self.assertEqual('1', requests.get('http://localhost:7999', data={
"ck":"1"
}).read())
def test_get3(self):
self.assertEqual('3', requests.get('http://localhost:7999', data={
"ck":"1",
"ck":"2",
"ck":"3",
}).read())
def test_post1(self):
self.assertEqual('1', requests.post('http://localhost:7999', data={
"ck":"1"
}).read())
def test_post3(self):
self.assertEqual('3', requests.post('http://localhost:7999', data={
"ck":"1",
"ck":"2",
"ck":"3",
}).read())
if __name__ == "__main__":
unittest.main()
```
``` bash
.-(~/multipart)----------------------------------------------------(px@Rainbow)-
`--> nosetests -s
.F.F..
======================================================================
FAIL: test_get3 (test.TE)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/px/multipart/test.py", line 20, in test_get3
"ck":"3",
AssertionError: '3' != '1'
======================================================================
FAIL: test_post3 (test.TE)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/px/multipart/test.py", line 32, in test_post3
"ck":"3",
AssertionError: '3' != '1'
----------------------------------------------------------------------
Ran 6 tests in 0.427s
FAILED (failures=2)
```
It's related to my previous issues post..
And the origin of all my questions is
``` python
response = requests.post(url, data=oauth_request.to_postdata(), files=files).read()
```
oauth_request.to_postdata() will return a string of encoded url,
without files, it works great,
but if files present, requests.post will try to update a dict with a string
``` python
if self.data:
self.files.update(self.data)
```
|
{
"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/83/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/83/timeline
| null |
completed
| null | null | false |
[] |
https://api.github.com/repos/psf/requests/issues/82
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/82/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/82/comments
|
https://api.github.com/repos/psf/requests/issues/82/events
|
https://github.com/psf/requests/pull/82
| 1,116,522 |
MDExOlB1bGxSZXF1ZXN0MTk4MDIw
| 82 |
add doseq to urlencode in model._encode_params to enable list as dict value
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-06-26T05:33:03Z
|
2021-09-08T12:01:12Z
|
2011-06-26T07:50:54Z
|
CONTRIBUTOR
|
resolved
|
parse_qs and then urlencode, things will changed.
[test code and result](http://min.us/ldLJUS)
Thank you for this great lib,
the result of parse_qs is something like {'oauth': ['sig'], 'status': ['hanzi ok']}
urlencode can't handle list as dictionary value without doseq
doseq does three things,
1. if value is not list or unicode, behave like doseq=False
1. if value is unicode, decode unicode
2. if value is list, handle list as dict value
it will fall to decode if the unicode value is not encoded in ascii, Chinese for example.
but _encode_params already made sure that no unicode will pass to urlencode,
so I think it's safe to add doseq.
snippet from Python2.7/Lib/urllib.py
``` python
if not doseq:
# preserve old behavior
for k, v in query:
k = quote_plus(str(k))
v = quote_plus(str(v))
l.append(k + '=' + v)
else:
for k, v in query:
k = quote_plus(str(k))
if isinstance(v, str):
v = quote_plus(v)
l.append(k + '=' + v)
elif _is_unicode(v):
# is there a reasonable way to convert to ASCII?
# encode generates a string, but "replace" or "ignore"
# lose information and "strict" can raise UnicodeError
v = quote_plus(v.encode("ASCII","replace"))
l.append(k + '=' + v)
else:
try:
# is this a sufficient test for sequence-ness?
len(v)
except TypeError:
# not a sequence
v = quote_plus(str(v))
l.append(k + '=' + v)
else:
# loop over the sequence
for elt in v:
l.append(k + '=' + quote_plus(str(elt)))
```
it's the first time I use github pull request, I'm sorry for the duplicated pull request
reallly appreciate for this great lib, it helps me a lot.
and I'm looking forward to oauth feature so I don't need to roll my own:)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"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/82/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/82/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/82.diff",
"html_url": "https://github.com/psf/requests/pull/82",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/82.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/82"
}
| true |
[] |
https://api.github.com/repos/psf/requests/issues/81
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/81/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/81/comments
|
https://api.github.com/repos/psf/requests/issues/81/events
|
https://github.com/psf/requests/pull/81
| 1,116,486 |
MDExOlB1bGxSZXF1ZXN0MTk4MDA2
| 81 |
add doseq to urlencode in model._encode_params to enable list as dict value
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-06-26T04:52:30Z
|
2021-09-08T23:06:00Z
|
2011-06-26T05:30:22Z
|
CONTRIBUTOR
|
resolved
|
parse_qs and then urlencode, things will changed.
[test code and result](http://min.us/ldLJUS)
Thank you for this great lib,
the result of parse_qs is something like {'oauth': ['sig'], 'status': ['hanzi ok']}
urlencode can't handle list as dictionary value without doseq
doseq does three things,
1. if value is not list or unicode, behave like doseq=False
1. if value is unicode, decode unicode
2. if value is list, handle list as dict value
it will fall to decode if the unicode value is not encoded in ascii, Chinese for example.
but _encode_params already made sure that no unicode will pass to urlencode,
so I think it's safe to add doseq.
snippet from Python2.7/Lib/urllib.py
``` python
if not doseq:
# preserve old behavior
for k, v in query:
k = quote_plus(str(k))
v = quote_plus(str(v))
l.append(k + '=' + v)
else:
for k, v in query:
k = quote_plus(str(k))
if isinstance(v, str):
v = quote_plus(v)
l.append(k + '=' + v)
elif _is_unicode(v):
# is there a reasonable way to convert to ASCII?
# encode generates a string, but "replace" or "ignore"
# lose information and "strict" can raise UnicodeError
v = quote_plus(v.encode("ASCII","replace"))
l.append(k + '=' + v)
else:
try:
# is this a sufficient test for sequence-ness?
len(v)
except TypeError:
# not a sequence
v = quote_plus(str(v))
l.append(k + '=' + v)
else:
# loop over the sequence
for elt in v:
l.append(k + '=' + quote_plus(str(elt)))
```
reallly appreciate for this great lib, it helps me a lot.
and I'm looking forward to oauth feature so I don't need to roll my own:)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"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/81/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/81/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/81.diff",
"html_url": "https://github.com/psf/requests/pull/81",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/81.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/81"
}
| true |
[] |
https://api.github.com/repos/psf/requests/issues/80
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/80/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/80/comments
|
https://api.github.com/repos/psf/requests/issues/80/events
|
https://github.com/psf/requests/issues/80
| 1,116,477 |
MDU6SXNzdWUxMTE2NDc3
| 80 |
Please add doseq to urlencode in model._encode_params
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-06-26T04:40:39Z
|
2021-09-09T12:00:48Z
|
2011-06-26T05:08:51Z
|
CONTRIBUTOR
|
resolved
|
Thank you for this great lib
parse_qs and then urlencode, things will changed.
the result of parse_qs if something like {'oauth': ['sig'], 'status': ['hanzi ok']}
urlencode can't handle list as dictionary value without doseq
My English is poor so I'll show you my code directly.
[code and result](http://min.us/ldLJUS)
reallly appreciate for this great lib, it helps me a lot.
and I'm looking forward to oauth feature so I don't need to roll my own:)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/127984?v=4",
"events_url": "https://api.github.com/users/cqpx/events{/privacy}",
"followers_url": "https://api.github.com/users/cqpx/followers",
"following_url": "https://api.github.com/users/cqpx/following{/other_user}",
"gists_url": "https://api.github.com/users/cqpx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cqpx",
"id": 127984,
"login": "cqpx",
"node_id": "MDQ6VXNlcjEyNzk4NA==",
"organizations_url": "https://api.github.com/users/cqpx/orgs",
"received_events_url": "https://api.github.com/users/cqpx/received_events",
"repos_url": "https://api.github.com/users/cqpx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cqpx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cqpx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cqpx",
"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/80/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/80/timeline
| null |
completed
| null | null | false |
[] |
https://api.github.com/repos/psf/requests/issues/79
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/79/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/79/comments
|
https://api.github.com/repos/psf/requests/issues/79/events
|
https://github.com/psf/requests/issues/79
| 1,110,992 |
MDU6SXNzdWUxMTEwOTky
| 79 |
Doesn't return complete URL in response.url when url has a hash (#) character
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/163426?v=4",
"events_url": "https://api.github.com/users/lsemel/events{/privacy}",
"followers_url": "https://api.github.com/users/lsemel/followers",
"following_url": "https://api.github.com/users/lsemel/following{/other_user}",
"gists_url": "https://api.github.com/users/lsemel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lsemel",
"id": 163426,
"login": "lsemel",
"node_id": "MDQ6VXNlcjE2MzQyNg==",
"organizations_url": "https://api.github.com/users/lsemel/orgs",
"received_events_url": "https://api.github.com/users/lsemel/received_events",
"repos_url": "https://api.github.com/users/lsemel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lsemel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lsemel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lsemel",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 3 |
2011-06-24T16:07:36Z
|
2021-09-09T13:05:43Z
|
2011-06-24T16:20:02Z
|
NONE
|
resolved
|
This may or may not be correct HTTP behavior, but when using a URL with a hash (#) character, response.url chops off the URL at the hash character. I would have expected the full URL. (For redirects, I can retrieve it from the location header in the history.)
``` pycon
>>> import requests
>>> url = 'http://twitter.com/#!/charliesheen/status/42731720402931712'
>>> shortened = 'http://bit.ly/fxDgIl'
>>> response = requests.get(url)
>>> response.url
'http://twitter.com/'
>>> response = requests.get(shortened)
>>> response.url
'http://twitter.com/'
>>> response.history[0].headers['location']
'http://twitter.com/#!/charliesheen/status/42731720402931712'
```
|
{
"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/79/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/79/timeline
| null |
completed
| null | null | false |
[
"This is correct behavior. \n\n---\n\nTraditionally, The `#` is used as a fragment identifier on the client side, to specify an ancor tag (e.g. http://docs.python-requests.org/en/latest/api/#requests.get)\n\nMore info: http://en.wikipedia.org/wiki/Fragment_identifier\n\nHowever, hacking the fragment identifiers into \"hashbang urls\" (containing `/#!/`) has been a bit of a (controversial) trend lately. They were used for a while for javascript client applications to be relatively semantic. Some websites (gawker up until recent, twitter) are using them as their main URL system, which is confusing to users and developers alike.\n\nIf you look closely at what your web browser does when you request a URL like `http://twitter.com/#!/charliesheen/status/42731720402931712`, the `GET` request is actually only to `http://twitter.com/`. The browser receives a generic page that contains javascript that carries out `window.location` search, and loads the tweet in the hashbang url.\n\nYou can learn more about hashbangs here: \n- http://danwebb.net/2011/5/28/it-is-about-the-hashbangs\n\n---\n\n**Update:** Tweets have actual semantic urls too:\n https://twitter.com/charliesheen/status/42731720402931712\n",
"I believe this is correct behaviour, and a good example of why using fragments in this way is a really bad idea.\n\n> Fragment identifiers have a special role in information retrieval systems as the primary form of client-side indirect referencing, allowing an author to specifically identify aspects of an existing resource that are only indirectly provided by the resource owner. As such, the fragment identifier is not used in the scheme-specific processing of a URI; instead, the fragment identifier is separated from the rest of the URI prior to a dereference, and thus the identifying information within the fragment itself is dereferenced solely by the user agent, regardless of the URI scheme. - [RFC 3986](http://tools.ietf.org/html/rfc3986)\n\n**Edit**: Damn, @kennethreitz, you fast!\n",
":cake:\n"
] |
https://api.github.com/repos/psf/requests/issues/78
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/78/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/78/comments
|
https://api.github.com/repos/psf/requests/issues/78/events
|
https://github.com/psf/requests/issues/78
| 1,109,282 |
MDU6SXNzdWUxMTA5Mjgy
| 78 |
Request_gzip = True
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36156?v=4",
"events_url": "https://api.github.com/users/jerem/events{/privacy}",
"followers_url": "https://api.github.com/users/jerem/followers",
"following_url": "https://api.github.com/users/jerem/following{/other_user}",
"gists_url": "https://api.github.com/users/jerem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jerem",
"id": 36156,
"login": "jerem",
"node_id": "MDQ6VXNlcjM2MTU2",
"organizations_url": "https://api.github.com/users/jerem/orgs",
"received_events_url": "https://api.github.com/users/jerem/received_events",
"repos_url": "https://api.github.com/users/jerem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jerem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jerem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jerem",
"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"
},
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] |
closed
| true | null |
[] | null | 3 |
2011-06-24T10:28:49Z
|
2021-09-09T12:00:47Z
|
2011-07-24T02:35:50Z
|
CONTRIBUTOR
|
resolved
|
In order to receive gzipped content, requests should send the header:
```
'Accept-Encoding': 'gzip'
```
|
{
"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/78/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/78/timeline
| null |
completed
| null | null | false |
[
"This is intentional and correct behavior. \n\nIf the server responds with gzip-encoded content, requests will handle it. \n\nI think the user should be explicit with the headers they send up if they'd like to change the default behavior of the server. \n",
"Perhaps a `requests.settings.request_gzip = True` is in order?\n",
"Yes, but what about deflate compression?\nMaybe simply something like `settings.compression = True` that enable both gzip and deflate compression?\n"
] |
https://api.github.com/repos/psf/requests/issues/77
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/77/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/77/comments
|
https://api.github.com/repos/psf/requests/issues/77/events
|
https://github.com/psf/requests/pull/77
| 1,109,253 |
MDExOlB1bGxSZXF1ZXN0MTk2MzQy
| 77 |
Implemented idna (fixes #76).
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36156?v=4",
"events_url": "https://api.github.com/users/jerem/events{/privacy}",
"followers_url": "https://api.github.com/users/jerem/followers",
"following_url": "https://api.github.com/users/jerem/following{/other_user}",
"gists_url": "https://api.github.com/users/jerem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jerem",
"id": 36156,
"login": "jerem",
"node_id": "MDQ6VXNlcjM2MTU2",
"organizations_url": "https://api.github.com/users/jerem/orgs",
"received_events_url": "https://api.github.com/users/jerem/received_events",
"repos_url": "https://api.github.com/users/jerem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jerem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jerem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jerem",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-06-24T10:23:38Z
|
2021-09-08T12:01:11Z
|
2011-06-24T22:24:49Z
|
CONTRIBUTOR
|
resolved
|
{
"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/77/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/77/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/77.diff",
"html_url": "https://github.com/psf/requests/pull/77",
"merged_at": "2011-06-24T22:24:49Z",
"patch_url": "https://github.com/psf/requests/pull/77.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/77"
}
| true |
[
"Also, I'd rather stick to the standard lib implementation. Adding a new dependency causes complications I'd like to avoid (e.g. Debian packaging). \n\nAlso, officially, cPython 2.5-2.7 and PyPy-c 1.5 are the only supported platforms at this time.\n"
] |
|
https://api.github.com/repos/psf/requests/issues/76
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/76/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/76/comments
|
https://api.github.com/repos/psf/requests/issues/76/events
|
https://github.com/psf/requests/issues/76
| 1,109,177 |
MDU6SXNzdWUxMTA5MTc3
| 76 |
Requests does not support Internationalized domain name (idna)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36156?v=4",
"events_url": "https://api.github.com/users/jerem/events{/privacy}",
"followers_url": "https://api.github.com/users/jerem/followers",
"following_url": "https://api.github.com/users/jerem/following{/other_user}",
"gists_url": "https://api.github.com/users/jerem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jerem",
"id": 36156,
"login": "jerem",
"node_id": "MDQ6VXNlcjM2MTU2",
"organizations_url": "https://api.github.com/users/jerem/orgs",
"received_events_url": "https://api.github.com/users/jerem/received_events",
"repos_url": "https://api.github.com/users/jerem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jerem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jerem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jerem",
"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 | 0 |
2011-06-24T09:56:27Z
|
2021-09-09T12:00:49Z
|
2011-06-24T22:24:49Z
|
CONTRIBUTOR
|
resolved
|
The following url http://➡.ws/gggo should redirect to google.com but it doesn't work with requests.
See the following code:
```
>>> import requests
>>> a = requests.get(u'http://➡.ws/gggo')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Users/jerem/dev/resolver/lib/python2.7/site-packages/requests/api.py", line 75, in get
timeout=timeout, proxies=proxies)
File "/Users/jerem/dev/resolver/lib/python2.7/site-packages/requests/api.py", line 53, in request
r.send()
File "/Users/jerem/dev/resolver/lib/python2.7/site-packages/requests/models.py", line 294, in send
resp = opener(req)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/urllib2.py", line 392, in open
response = self._open(req, data)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/urllib2.py", line 410, in _open
'_open', req)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/urllib2.py", line 370, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/urllib2.py", line 1186, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/urllib2.py", line 1155, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/httplib.py", line 941, in request
self._send_request(method, url, body, headers)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/httplib.py", line 974, in _send_request
self.putheader(hdr, value)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/httplib.py", line 921, in putheader
hdr = '%s: %s' % (header, '\r\n\t'.join([str(v) for v in values]))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u27a1' in position 0: ordinal not in range(128)
>>> a = requests.get('http://➡.ws/gggo')
>>> a.content
'<html>\n<head>\n\t<title>.WS Internationalized Domain Names</title>\n</head>\n<frameset rows="100%,*" border="0" frameborder="0">\n\t<frame src="http://zoomdns.net" scrol
ling="auto">\n\t<noframes>\n\t\t<p> Your browser does not support frames. Continue to <a href="http://zoomdns.net">http://zoomdns.net</a>.</p>\n\t</noframes>\n</frameset>\
n</html>'
>>> a.url
'http://\xe2\x9e\xa1.ws/gggo'
```
As you can see, it doesn't redirect to google.com but to a compability page for client that doesn't upport idna.
|
{
"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/76/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/76/timeline
| null |
completed
| null | null | false |
[] |
https://api.github.com/repos/psf/requests/issues/75
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/75/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/75/comments
|
https://api.github.com/repos/psf/requests/issues/75/events
|
https://github.com/psf/requests/issues/75
| 1,107,824 |
MDU6SXNzdWUxMTA3ODI0
| 75 |
Add Proxies to requests.settings
|
{
"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-06-24T01:34:46Z
|
2021-09-09T12:00:43Z
|
2011-08-17T04:19:05Z
|
CONTRIBUTOR
|
resolved
|
{
"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/75/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/75/timeline
| null |
completed
| null | null | false |
[
"+1\n\nIt would be easier to set one global proxy on the settings object instead of setting it manually on all requests. \n"
] |
|
https://api.github.com/repos/psf/requests/issues/74
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/74/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/74/comments
|
https://api.github.com/repos/psf/requests/issues/74/events
|
https://github.com/psf/requests/issues/74
| 1,103,017 |
MDU6SXNzdWUxMTAzMDE3
| 74 |
Remove AuthManager
|
{
"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"
}
|
[
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] |
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}",
"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_at": "2011-12-17T21:10:23Z",
"closed_issues": 4,
"created_at": "2011-08-23T15:07: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": "",
"due_on": null,
"html_url": "https://github.com/psf/requests/milestone/11",
"id": 30486,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/11/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODY=",
"number": 11,
"open_issues": 0,
"state": "closed",
"title": "v0.9.0",
"updated_at": "2011-12-28T10:04:17Z",
"url": "https://api.github.com/repos/psf/requests/milestones/11"
}
| 1 |
2011-06-23T08:21:04Z
|
2021-09-09T12:00:36Z
|
2011-09-25T23:44:32Z
|
CONTRIBUTOR
|
resolved
|
Worst part of the codebase.
New context manager could handle auth.
AuthObjects can have their own optional url includes. They can also have a 'force' mode that would force the use of authentication, in the case of a server 404 instead of 401 for security purposes (github).
|
{
"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/74/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/74/timeline
| null |
completed
| null | null | false |
[
"Done.\n"
] |
https://api.github.com/repos/psf/requests/issues/73
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/73/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/73/comments
|
https://api.github.com/repos/psf/requests/issues/73/events
|
https://github.com/psf/requests/issues/73
| 1,102,938 |
MDU6SXNzdWUxMTAyOTM4
| 73 |
workaround for urllib2 md5-sess bug
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/632049?v=4",
"events_url": "https://api.github.com/users/cjw296/events{/privacy}",
"followers_url": "https://api.github.com/users/cjw296/followers",
"following_url": "https://api.github.com/users/cjw296/following{/other_user}",
"gists_url": "https://api.github.com/users/cjw296/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cjw296",
"id": 632049,
"login": "cjw296",
"node_id": "MDQ6VXNlcjYzMjA0OQ==",
"organizations_url": "https://api.github.com/users/cjw296/orgs",
"received_events_url": "https://api.github.com/users/cjw296/received_events",
"repos_url": "https://api.github.com/users/cjw296/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cjw296/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cjw296/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cjw296",
"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 | 2 |
2011-06-23T07:59:12Z
|
2021-09-09T10:00:50Z
|
2011-11-27T16:09:47Z
|
CONTRIBUTOR
|
resolved
|
Feature Wishlist :-)
The bug with patch is here:
http://bugs.python.org/issue2202
I suspect this is pretty trivial to set up on an IIS server, sadly, I don't have access to one :-S
|
{
"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/73/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/73/timeline
| null |
completed
| null | null | false |
[
"Actually, slight lie, I do have access to an IIS server, but it's a customer's. I obviously can't give out the password, and I doubt they'd like me advertising the url ;-)\n\nHowever, if you can get things integrated on a branch, lemme know and I'll check it out and test!\n",
"I'm going to close this issue for now — we've moved off of urllib2, so a new approach can be taken if we decide to tackle this problem.\n"
] |
https://api.github.com/repos/psf/requests/issues/72
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/72/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/72/comments
|
https://api.github.com/repos/psf/requests/issues/72/events
|
https://github.com/psf/requests/issues/72
| 1,102,925 |
MDU6SXNzdWUxMTAyOTI1
| 72 |
please support https client certificate authentication
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/632049?v=4",
"events_url": "https://api.github.com/users/cjw296/events{/privacy}",
"followers_url": "https://api.github.com/users/cjw296/followers",
"following_url": "https://api.github.com/users/cjw296/following{/other_user}",
"gists_url": "https://api.github.com/users/cjw296/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cjw296",
"id": 632049,
"login": "cjw296",
"node_id": "MDQ6VXNlcjYzMjA0OQ==",
"organizations_url": "https://api.github.com/users/cjw296/orgs",
"received_events_url": "https://api.github.com/users/cjw296/received_events",
"repos_url": "https://api.github.com/users/cjw296/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cjw296/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cjw296/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cjw296",
"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 | 0 |
2011-06-23T07:55:37Z
|
2021-09-09T12:00:40Z
|
2011-08-23T15:11:49Z
|
CONTRIBUTOR
|
resolved
|
The following Apache config section enforces the kind of auth I'm talking about:
SSLCACertificateFile /root/CA/cacert.pem
SSLVerifyClient require
SSLVerifyDepth 1
Using httplib2 (http://code.google.com/p/httplib2/) this is done as follows:
``` python
from httplib2 import Http
http = Http()
http.add_certificate(keyfile,certfile,urlparse(url).netloc)
```
...which is great, except for the suck of _having_ to parse the netloc.
My wishlist for requests would be:
``` python
requests.get(full_url,auth=AuthObject(method='cert',keyfile=keyfile,certfile=certfile))
```
However, on the subject, it's important for auth types of be used in parallel.
The specific case I have here has both client certificate _and_ basic auth at the same time.
I have no idea how I'd choose to spell that nicely, although httplib2 does it quite nicely:
``` python
http = Http()
http.add_credentials(username,password)
http.add_certificate(keyfile,certfile,urlparse(url).netloc)
```
thanks!
Chris
|
{
"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/72/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/72/timeline
| null |
completed
| null | null | false |
[] |
https://api.github.com/repos/psf/requests/issues/71
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/71/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/71/comments
|
https://api.github.com/repos/psf/requests/issues/71/events
|
https://github.com/psf/requests/issues/71
| 1,099,736 |
MDU6SXNzdWUxMDk5NzM2
| 71 |
v0.5 is backwards incompatible
|
{
"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 | 6 |
2011-06-22T18:00:50Z
|
2021-09-09T13:05:44Z
|
2011-06-23T07:24:20Z
|
CONTRIBUTOR
|
resolved
|
You may already know and be totally cool with this, but requests v0.5 is backwards incompatible due to [this commit](https://github.com/kennethreitz/requests/commit/80d860d2d409b6d2a6b4c133ef0eef4de6b32ef2).
```
>>> import requests
>>> requests.__version__
'0.4.0'
>>> # Sends a HTTP GET request to http://example.org with data in the query string
>>> requests.request('GET', 'http://example.org', data={'foo': 'bar'})
>>> import requests
>>> requests.__version__
'0.5.0'
>>> # Sends a HTTP GET request to http://example.org with data in the request body
>>> requests.request('GET', 'http://example.org', data={'foo': 'bar'})
```
|
{
"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/71/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/71/timeline
| null |
completed
| null | null | false |
[
"IMO data should map to the query string for a GET.\n\nSome more discussion here: http://stackoverflow.com/questions/978061/http-get-with-request-body\n",
"This change was introduced because parameters are now mapped on all query types, instead of only GET/HEADs. \n\nThis leads to a much more consistent internal API, with less request-type branching.\n\n`params` = querystring dict\n`data` = body dict or bytes\n",
"It should also be noted that `data` is not an available keyword on the `get` function, which should be the primary method of making GET requests. \n\n@jgorset, are you using `request.request` directly? I view that as an internal-only function.\n",
"@kennethreitz,\n\nif `request` is an internal function, I don't think it should be defined in the `api` module. I'd argue that it's [very useful](https://github.com/jgorset/facepy/blob/master/facepy/graph_api.py#L106), though.\n",
"@jgorset, can you hop on freenode #python-requests? \n",
"Re: params = querystring, data=request body for all methods, I like that even better. :+1:\n"
] |
https://api.github.com/repos/psf/requests/issues/70
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/70/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/70/comments
|
https://api.github.com/repos/psf/requests/issues/70/events
|
https://github.com/psf/requests/issues/70
| 1,095,924 |
MDU6SXNzdWUxMDk1OTI0
| 70 |
Python 3.x 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"
}
|
[
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] |
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}",
"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"
}
] | null | 14 |
2011-06-22T02:50:00Z
|
2021-09-09T10:00:41Z
|
2012-01-23T08:05:24Z
|
CONTRIBUTOR
|
resolved
|
It's closer than you think.
|
{
"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/70/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/70/timeline
| null |
completed
| null | null | false |
[
"Are you going to use 2to3 at build-time, or manually maintain two branches, or support both lines from a single codebase?\n",
"@merwok: support both from the same codebase, ideally (this is what I do for [tablib](https://github.com/kennethreitz/tablib)). \n",
"Okay. I guess you’ll have a small compat module, like six (look for it on PyPI if you don’t know what it is), and sprinkle the ugly b function everywhere to have sane bytes/string separation.\n",
"https://github.com/kennethreitz/tablib/blob/develop/tablib/compat.py :D\n",
"Hey, if you don't mind my asking - is there any progress on it?\n",
"Yes, great progress! The `feature/rewrite` branch has urllib2 and poster removed, and has a nice new codebasethat will be wonderfully simple to port to 3.x :)\n",
"Requests v0.8.x has been released for several weeks now, which uses urllib3. Getting closer!\n",
"Hey, is there any progress on py3 compatibility?\n",
"Well, kind of... Team behind pip installer may pretty soon decide to use requests instead of what they currently have and when this happens the pressure for porting will be enormous :)\n",
"Actually, no pressure from us, really, take your time, get this right the first time.\n",
"@jezdez nothing wrong with some motivation :)\n",
":sparkles: :cake: :sparkles:\n",
"**IT IS FINISHED**\n",
"Awesome, thank you!\n"
] |
https://api.github.com/repos/psf/requests/issues/69
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/69/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/69/comments
|
https://api.github.com/repos/psf/requests/issues/69/events
|
https://github.com/psf/requests/issues/69
| 1,095,815 |
MDU6SXNzdWUxMDk1ODE1
| 69 |
Parameters are getting out of hand.
|
{
"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"
}
|
[
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] |
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}",
"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"
}
] | null | 12 |
2011-06-22T02:14:54Z
|
2021-09-09T13:05:43Z
|
2011-06-24T01:34:04Z
|
CONTRIBUTOR
|
resolved
|
Use context manager as an alternative way to make requests?
Currently, settings context manager is a singleton. I suspect this will cause multiprocessing issues.
|
{
"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/69/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/69/timeline
| null |
completed
| null | null | false |
[
"Interesting idea!\n\nAre you thinking something along the lines of...\n\n``` python\nwith requests.settings(path='http://example.org', timeout=10) as r:\n response = r.get('/path/to/file.txt')\n```\n\n...?\n",
"Heh, neat path idea. \n\nI was thinking:\n\n``` python\nwith requests.settings(timeout=10, auth=('a', 'b'), proxies={'http': 'localhost:8080'}):\n requests.get('http://blah.com/', params={'x': 'y'})\n```\n",
"either way I think that's awesome.\n",
"Let's do it :)\n",
"Maybe this would be better:\n\n``` python\nwith requests.settings(timeout=10, auth=('a', 'b'), proxies={'http': 'localhost:8080'}) as r:\n r.get('http://blah.com/')\n```\n\nThis would escape the threading/processes issues.\n",
"If there's a way to detect if someone's using `as r`, then I'm all for doing it now. Otherwise, I'm going to think about it for a while.\n",
"My thought is always that explicit is better than implicit. And intuitiveness goes along with it. So then are context processors more explicit and are they intuitive?\n\nThis does look like a divergence from the intuitive aspect of Requests that I like so much. I can point other newbies at it and they **just get it**. I'm open to ideas, but keep in mind your audience. Use of context processors could be for advanced users, and be given appropriate documentation.\n",
"Great points.\n\nIf I do decide to implement this, it would be supplementary. All of the functions will accept the same paramaters they do now as well.\n",
"Maybe I'll hold off on this for now. \n\nCurrently, you can do the following\n\n``` pycon\n>>> with requests.settings(verbose=sys.stderr):\n... requests.get('http://httpbin.org/ip')\n2011-06-23T21:23:18.422726 GET http://httpbin.org/ip\n<Response [200]>\n\n>>> requests.get('http://httpbin.org/ip')\n<Response [200]>\n```\n\nAs an alternative to:\n\n``` pycon\n>>> requests.settings.verbose=sys.stderr\n>>> requests.get('http://httpbin.org/ip')\n2011-06-23T21:23:18.422726 GET http://httpbin.org/ip\n<Response [200]>\n\n>>> requests.settings.verbose=None\n>>> requests.get('http://httpbin.org/ip')\n<Response [200]>\n```\n\nI love this. \n\nMaybe, it would just be best to move proxies into the settings module instead of being _required_ to be passed into each request function for now.\n",
"**Decided**: current `settings` singleton use is a non-issue because `request.settings` should only manage (supplementarily) all-encompassing settings (timeouts, proxies, etc). \n\nAuth Management still needs to be rethought.\n",
"See #75 for Re: Proxy \n",
"I'd also like to move all non-essential keyword arguments (timeout, proxies, cookies) into a well-documented and constient `**kwargs` again. This will solve the 'paramaters getting out of hand' issue.\n\n**Closed.**\n"
] |
https://api.github.com/repos/psf/requests/issues/68
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/68/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/68/comments
|
https://api.github.com/repos/psf/requests/issues/68/events
|
https://github.com/psf/requests/issues/68
| 1,094,976 |
MDU6SXNzdWUxMDk0OTc2
| 68 |
Remove Poster
|
{
"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"
}
|
[
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] |
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}",
"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_at": "2011-11-13T05:41:39Z",
"closed_issues": 9,
"created_at": "2011-08-23T15:07:03Z",
"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": null,
"html_url": "https://github.com/psf/requests/milestone/10",
"id": 30485,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/10/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODU=",
"number": 10,
"open_issues": 0,
"state": "closed",
"title": "v0.8.0",
"updated_at": "2011-11-27T16:13:09Z",
"url": "https://api.github.com/repos/psf/requests/milestones/10"
}
| 2 |
2011-06-21T22:48:18Z
|
2021-09-09T12:00:35Z
|
2011-09-25T23:44:38Z
|
CONTRIBUTOR
|
resolved
|
Great project, but an unnecessary dependency. It is also the main barrier to 3.x compatiblity.
|
{
"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/68/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/68/timeline
| null |
completed
| null | null | false |
[
"Useful links: \n- http://code.activestate.com/recipes/146306-http-client-to-post-using-multipartform-data/\n- http://www.doughellmann.com/PyMOTW/urllib2/\n- http://stackoverflow.com/questions/1270518/python-standard-library-to-post-multipart-form-data-encoded-data\n",
"Done.\n"
] |
https://api.github.com/repos/psf/requests/issues/67
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/67/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/67/comments
|
https://api.github.com/repos/psf/requests/issues/67/events
|
https://github.com/psf/requests/pull/67
| 1,094,313 |
MDExOlB1bGxSZXF1ZXN0MTkyMjYz
| 67 |
Added setuptools management to setup.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/28075?v=4",
"events_url": "https://api.github.com/users/aparo/events{/privacy}",
"followers_url": "https://api.github.com/users/aparo/followers",
"following_url": "https://api.github.com/users/aparo/following{/other_user}",
"gists_url": "https://api.github.com/users/aparo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aparo",
"id": 28075,
"login": "aparo",
"node_id": "MDQ6VXNlcjI4MDc1",
"organizations_url": "https://api.github.com/users/aparo/orgs",
"received_events_url": "https://api.github.com/users/aparo/received_events",
"repos_url": "https://api.github.com/users/aparo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aparo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aparo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aparo",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-06-21T20:50:30Z
|
2021-09-08T11:01:05Z
|
2011-06-21T21:34:30Z
|
NONE
|
resolved
|
It's not possible to install requests in develop mode (python setup.py develop).
Adding support to setuptools and failing back to distutils, it's a safe approuch.
|
{
"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/67/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/67/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/67.diff",
"html_url": "https://github.com/psf/requests/pull/67",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/67.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/67"
}
| true |
[
"Beautiful. Thanks!\n"
] |
https://api.github.com/repos/psf/requests/issues/66
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/66/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/66/comments
|
https://api.github.com/repos/psf/requests/issues/66/events
|
https://github.com/psf/requests/pull/66
| 1,081,794 |
MDExOlB1bGxSZXF1ZXN0MTg5MTY5
| 66 |
Support for proxies
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/620035?v=4",
"events_url": "https://api.github.com/users/moliware/events{/privacy}",
"followers_url": "https://api.github.com/users/moliware/followers",
"following_url": "https://api.github.com/users/moliware/following{/other_user}",
"gists_url": "https://api.github.com/users/moliware/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moliware",
"id": 620035,
"login": "moliware",
"node_id": "MDQ6VXNlcjYyMDAzNQ==",
"organizations_url": "https://api.github.com/users/moliware/orgs",
"received_events_url": "https://api.github.com/users/moliware/received_events",
"repos_url": "https://api.github.com/users/moliware/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moliware/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moliware/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moliware",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 3 |
2011-06-19T20:50:59Z
|
2021-09-08T23:06:25Z
|
2011-06-21T04:03:54Z
|
NONE
|
resolved
|
Implements the feature explained in issue #54
Now you can do a GET/POST/.... through a proxy.
E.g:
``` pycon
>>> requests.get('http://docs.python.org/', proxies={'http' : 'localhost:3128'})
< Response [200]>
```
|
{
"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/66/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/66/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/66.diff",
"html_url": "https://github.com/psf/requests/pull/66",
"merged_at": "2011-06-21T04:03:54Z",
"patch_url": "https://github.com/psf/requests/pull/66.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/66"
}
| true |
[
"This is awesome, thanks! I'm going to toy around with it first before I merge. I'll get back shortly.\n",
":cake:\n",
"Thanks! I was using requests ( nice job, it's really useful ) for a couple of weeks and I need this feature on a project at work.\n"
] |
https://api.github.com/repos/psf/requests/issues/65
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/65/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/65/comments
|
https://api.github.com/repos/psf/requests/issues/65/events
|
https://github.com/psf/requests/issues/65
| 1,073,465 |
MDU6SXNzdWUxMDczNDY1
| 65 |
OAuth 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"
}
|
[
{
"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"
},
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] |
closed
| true | null |
[] | null | 17 |
2011-06-17T13:29:09Z
|
2021-09-09T05:00:50Z
|
2012-06-15T18:26:01Z
|
CONTRIBUTOR
|
resolved
|
Somehow.
|
{
"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/65/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/65/timeline
| null |
completed
| null | null | false |
[
"Hi Kenneth,\n\nFirst, thanks for this wonderful library, you've seen me saying \"this is best thing since beer\" in Twitter, but I want to emphasize that your work is amazing! \n\nI was yesterday night, going to work on a small twitter thing. I'm always looking for excuses to use Python Requests :) and I came across it doesn't have Oauth support and I thought \"Damn! I'm not using httplib2\" (which is the one supported by python-oauth2). So I decided to add it, well at least try it, thus <a href=\"http://twitter.com/#!/maraujop/status/101080557802360833\">I tweeted this</a>.\n\nI'm not an Oauth expert and this is the first time I dive in Python Requests and python-oauth2 code, I'm aware my results are very hacky and need a lot of work. But before progressing any farther, I would like to know your opinions. \n\nI've used part of python-oauth2 code adapted, I've put a use example in the commit message:\n\n``` python\nconsumer = oauth.Consumer('consumer-key', 'consumer-secret')\ntoken = oauth.Token('access-key', 'access-key-secret')\n\nresponse = requests.get('http://api.twitter.com/1/blocks/blocking/ids.json', auth=(consumer, token))\nprint response.status_code\nif response.status_code == 200:\n print response.content\n```\n\nThis is the file I've based my code on https://github.com/simplegeo/python-oauth2/blob/master/oauth2/__init__.py\n\npython-oauth2 `SignatureMethod` subclass `SignatureMethod_HMAC_SHA1` needs that the request object passed has three things: \n\n```\nrequest.method\nrequest.normalized_url\nrequest.get_normalized_parameters()\n```\n\n`request.method` was the only one already there. I've added the other two. Options are we create our own `SignatureMethod` subclass based in this one, so were are not forced to do have such an strict layout and do hacky things.\n\nThis is just a fast hack, done in a couple hours. I can work on it, detach the methods into functions in an oauth.py file or whatever you think better fits the project architecture, just let me know.\n\nCheers,\nMiguel\n",
"Thanks for all the kind words, and (more importantly) thanks for this awesome contribution.\n\nI haven't looked at the actual code yet, but my initial thoughts are: \n- I think adding a new OAuth object, or similar would be best (in place of taking over the tuple that gets converted into basicauth)\n- I'm not a fan of adding the new `get_normalized_parameters` method, but I can see why it's neccesary. I've been planning on extracting out some of the internal processing into externally-available functions, so you would have something along the lines of: `requests.utils.param_dict_from_url` or something similar.\n\nRandom thoughts:\n- I've been considering adding a pre-request and post-request processing layer to requests, mostly for internal use. This way the Authentication providers could simply add the headers they need to the requests that are being made, rather than have to deal w/ urllib2's messy auth stuff.\n",
"Thank you,\n- I first thought about putting everything in an OAuth class, but I'm not sure it could be an `AuthObject` as it is designed for a username/passworda authentication.\n- Me neither. If you add those external functions, probably some of this code could be refactored into something cleaner. \n\nAbout your thoughts:\n- pre-request should be fired right before `opener(req)` so that the request object is already built and can be tampered without side effects. I think that could work and could be a very clean way of attaching auth providers. \n\nOne more thing, my code is not working with POST requests that have params, I rather reorganize everything before adding more complexity to the code. \n\nI'm not an expert in all these requests libraries: httplib, urllib2... so when you review the code, be gentle :)\n",
"Just wanted to let you know, that I made some fixes in my code that make OAuth through GET work like it should. I'm using my version in a twitter script I've just built and it works like a charm.\nhttps://github.com/maraujop/requests/commit/60c0c31660487e2eaf43a6a287f64aa496e6e717\n\nI'm just missing to add some stuff for POST requests, but let me know first how do you want to lay out all this :)\n",
"Hooks just landed into develop. Going to try to push a release tonight.\n",
"Well done man!\n\nIf you keep this development pace, I will have to add you to my \"robots camouflaged as devs\" mental list, in which you will be next to jezdez.\n\nAnyway, I reviewed your new shinny hooks API and there is only one thing that calls my attention. If you call hooks in `api.py` then I guess `models.Request.send` is meant to be private, so people won't be able to create Requests objects, instead they are forced to use the api. In that case I would rename `send` to `_send` so that it follows your coding convention.\n\n**Good news!** I've moved all the code I had monkey-patched into your project onto a separate hook, which I'm not sure what to name. For now I've originally named it `oauth_hook`. It's working perfectly, though it needs some refactor and POST support (tiny fixes).\n- First, how do you want to proceed with hooks? Will you have them as separate files in a `hooks` directory or do you want me to create a github repository with my hook so I mantain it and you lighten Requests core. Maybe you could have a list of hooks in your docs, as if they were sort of plugins.\n- Second, will you support hook parameters besides the ones request pass. If not, I will probably have to move my hook, which is a function, into a class method, so that you can import the class and add/override parameters, see what I mean?\n- Third, right now every time I call requests I have to add a hooks dictionary parameter as you know. I'm coding two python APIs with OAuth support and Python Requests at the moment and it feels weird to add this parameter every time. So I'm thinking you might want to add a way to attach hooks to requests, when loaded, so that they work all the time. It looks DRYer.\n- When you let me know how do you want to go with hooks, I will upload my work. There are several functions that can probably be shortened if you extend a little bit you Request methods, things like `get_normalized_parameters` :)\n\nDamn! I'm so excited with this :D \n",
"Thanks for the enthusiasm :) :sparkles: :cake: :sparkles:\n\nI'll respond to your points when I have some free time later today.\n\nI'm leaning more towards having a requests-oauth module, w/ links in the docs. But, I need to think about this.\n\nCheck out the new session feature for automatically attaching:\n\n``` python\nwith requests.session(hooks=dict(pre_request=oauth_handler) as s:\n\n s.get(...) #hooks are passed in\n```\n",
"Thanks! \n\nWow, sessions are nice, thanks for the tip, I will look at them. \n\nI've thinking about the request-oauth module. What I can say is that it is probably going to take a lot of work to maintain it:\n- First <a href=\"https://github.com/simplegeo/python-oauth2\">python-oauth2</a> last commit is from 3rd of May. If you have a look into their issues, pull requests and forks, it totally looks like it's not being maintained anymore. People still use this, because there is not many other choices. With the raising popularity of Python Requests, many coders will move to it when this is supported.\n- So the code I'm basing the module right now is far from perfect. I'm gonna spend some time, diving into those forks and issues, to make the module better and more stable, but that takes time as you know.\n- OAuth2 standard is about to come out, which means we will have to add another module or adding support for both versions in the same module. \n\nLet me know what you come up with, cheers\n",
"any new thoughts on this? :D\n",
"I've finally decided to release at as an independent hook. As I said before it is probably going some time maintaining it, with bugs not related to requests itself. You can find my hook here:\nhttps://github.com/maraujop/requests-oauth-hook\n\nCheers\n",
"Beautiful! \n\nSorry for the late response. I've been super busy with the upcoming release :)\n\nCan't wait to play with it. I'll give you my thoughts as soon as I do\n",
"I know you are busy, that's why I ended up deciding by myself. It's amazing the pace you have working on this.\n\nI'm looking forward to hearing your thoughts :) \n\nshall I close the issue? Cheers\n",
"Thanks :)\n\nLet's leave it open, to remind me to add it to the documentation :)\n",
"request-oauth-hook version 0.2.0 is out. It doesn't depend on python-oauth2 anymore. It's got several bug fixes over python-oauth2 and it integrates better with requests, code has been refactored, cleaned and optimized.\n\nThis is the best OAuth alternative out there for Python at the moment IMHO. Have you tried it? Are you adding it to requests docs? \n\nCheers,\nMiguel\n",
"Ok, I've seen you have the hook listed under modules.\n\nI've renamed the project to something simpler: requests-oauth https://github.com/maraujop/requests-oauth\n",
"update: @idan is working on an oauth module that is library-agnostic. It'll be fully integrated into requests when it is complete.\n",
"Closing.\n"
] |
https://api.github.com/repos/psf/requests/issues/64
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/64/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/64/comments
|
https://api.github.com/repos/psf/requests/issues/64/events
|
https://github.com/psf/requests/issues/64
| 1,067,641 |
MDU6SXNzdWUxMDY3NjQx
| 64 |
Apache License v2
|
{
"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 |
[] |
{
"closed_at": "2011-06-22T02:27:21Z",
"closed_issues": 4,
"created_at": "2011-05-24T23:49:35Z",
"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": null,
"html_url": "https://github.com/psf/requests/milestone/6",
"id": 11871,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/6/labels",
"node_id": "MDk6TWlsZXN0b25lMTE4NzE=",
"number": 6,
"open_issues": 0,
"state": "closed",
"title": "v0.5.0",
"updated_at": "2013-02-14T23:20:20Z",
"url": "https://api.github.com/repos/psf/requests/milestones/6"
}
| 12 |
2011-06-16T14:17:19Z
|
2021-09-09T04:00:36Z
|
2011-06-22T01:04:41Z
|
CONTRIBUTOR
|
resolved
|
{
"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/64/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/64/timeline
| null |
completed
| null | null | false |
[
"Are you planning to change to this license? If so, please be aware that it's incompatible with projects licensed under the GPLv2. (And I'd be sad and unable to use the module in the main place I want to.)\n",
"Hmm, thanks for pointing that out. \n\nI'm planning on switching mostly because of the contribution clauses. \n",
"What project are you using that's GPLv2? Most popular GPLv2 projects are dual licensed w/ v3 as well.\n",
"One example is imgseek (http://www.imgseek.net), which is incorporated in (a patched version of) Xapian (http://xapian.org). Xapian itself is GPLv2 or later, but imgseek is v2 only (which is one reason that it's not in the main distribution of Xapian).\n\nI've come across a few others, though I agree it's not common.\n",
"Hmm, thanks for the info.\n\nThe main feature of the Apache v2, the patent killall clause, is what causes the GPLv2 incompatibility. Obviously, there's nothing in `Requests` that's patentable, so it may be overboard. I'll look into alternatives.\n\nI'll likely add a contribution clause to the existing license.\n",
"I've not looked the contribution clauses in the Apache license before - I assume you mean clause 5: \"Submission of Contributions\". It's an interesting approach, but I'm not sure how safe it would be to rely on it. I think you (in general) really should get explicit confirmation from a contributor that it's okay to redistribute their code under the project's license anyway, to be on the safe side. Assuming that they've read the license properly and are happy with that clause seems unwise. In particular, I always ask to check that contributors have the right to give you such a license (employees usually need to get their employers permission for code written in work time, for example) before incorporating it - if they get it wrong, you're still liable to some extent for distributing it. If you don't ask, they often don't even think of that potential problem. (Except for simple one line fixes, etc, where there isn't a copyright concern.)\n\nCertainly, I don't think that the act of forking **requests** and pushing some changes to that fork would count as a \"Contribution intentionally submitted for inclusion in the Work\" - I think there's a strong case that you need something more explicit than that.\n\nOne other thing to think about: it's possible you might want to contribute requests to the python core (in the distant future?). Maybe you should just use the python license, to make that easier?\n\nIt's your choice, of course, and I'd be happy to license the contributions in my fork on github under any open source license (and I have the right to, too!), but hopefully my comments are of some help.\n",
"FWIW, my preferred license these days, unless there's a very compelling reason otherwise, is MIT/X - it's clear enough that it's actually reasonable to expect people to have read it, and it doesn't get in the way of anything. That, combined with getting an explicit message from contributors that they agree to it, seems pretty safe to me.\n",
"Holding this off, for now.\n",
"AL2 licensed software is rather unfortunate for any GPL v2-only project that would like to use it due to that incompatibility.\n\nBut please don't underestimate that even GPL v2+ licensed projects also might not want to de-facto restrict themselves and their users to GPL v3 just because they would like to use some AL2 code. Tomorrow they might need some GPL v2 only code and then they can't use it because that would create a combination that's not licensable at all any more.\n\nSimilar if they already use GPL v2 code (although most code is v2+), then they can't use AL2 code already without causing that problem.\n\nSo it would be really great if you could license requests under a more compatible license.\n\nA potential GSOC student proposed to use requests (which I technically find great), but it currently looks like we can't allow it. :-(\n",
"You should probably talk to @kennethreitz about whether he's prepared to dual-license Requests, either in general or in specific cases.\n",
"Nope.\n",
"Looks like GPLv2 projects are out of luck then @ThomasWaldmann. Sorry!\n"
] |
|
https://api.github.com/repos/psf/requests/issues/63
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/63/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/63/comments
|
https://api.github.com/repos/psf/requests/issues/63/events
|
https://github.com/psf/requests/issues/63
| 1,066,729 |
MDU6SXNzdWUxMDY2NzI5
| 63 |
Allow querystring parameters with POST, PUT
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/73564?v=4",
"events_url": "https://api.github.com/users/rboulton/events{/privacy}",
"followers_url": "https://api.github.com/users/rboulton/followers",
"following_url": "https://api.github.com/users/rboulton/following{/other_user}",
"gists_url": "https://api.github.com/users/rboulton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rboulton",
"id": 73564,
"login": "rboulton",
"node_id": "MDQ6VXNlcjczNTY0",
"organizations_url": "https://api.github.com/users/rboulton/orgs",
"received_events_url": "https://api.github.com/users/rboulton/received_events",
"repos_url": "https://api.github.com/users/rboulton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rboulton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rboulton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rboulton",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 4 |
2011-06-16T11:01:19Z
|
2021-09-09T13:05:44Z
|
2011-06-22T02:01:32Z
|
CONTRIBUTOR
|
resolved
|
It would be nice to allow querystring parameters to be supplied for a POST or PUT request.
currently, I have to do something like:
```
request.post("http://localhost/test?" + urllib.urlencode(dict(foo=bar)), data="body")
```
I'd like, instead, to be able to do
```
request.post("http://localhost/test", params=dict(foo=bar), data="body")
```
|
{
"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/63/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/63/timeline
| null |
completed
| null | null | false |
[
"I've pushed some changes to my fork which implement this; hopefully in a sane way. The public API change is simply to add params parameters to the request.post and request.put functions (adding params at the end to avoid breakage if people are already calling the functions using positional arguments).\n",
"Thanks for the feedback.\n\nI was torn between putting querystring params in the non-get methods, and was waiting to see if anyone needed it.\n",
"Merged. \n",
"Released!!!\n"
] |
https://api.github.com/repos/psf/requests/issues/62
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/62/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/62/comments
|
https://api.github.com/repos/psf/requests/issues/62/events
|
https://github.com/psf/requests/pull/62
| 1,065,804 |
MDExOlB1bGxSZXF1ZXN0MTg1MjAz
| 62 |
cookie test with httpbin
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/182194?v=4",
"events_url": "https://api.github.com/users/zsiciarz/events{/privacy}",
"followers_url": "https://api.github.com/users/zsiciarz/followers",
"following_url": "https://api.github.com/users/zsiciarz/following{/other_user}",
"gists_url": "https://api.github.com/users/zsiciarz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zsiciarz",
"id": 182194,
"login": "zsiciarz",
"node_id": "MDQ6VXNlcjE4MjE5NA==",
"organizations_url": "https://api.github.com/users/zsiciarz/orgs",
"received_events_url": "https://api.github.com/users/zsiciarz/received_events",
"repos_url": "https://api.github.com/users/zsiciarz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zsiciarz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zsiciarz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zsiciarz",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 3 |
2011-06-16T07:11:17Z
|
2021-09-08T11:01:05Z
|
2011-06-16T07:13:58Z
|
CONTRIBUTOR
|
resolved
|
Ok, looks like it works now.
|
{
"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/62/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/62/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/62.diff",
"html_url": "https://github.com/psf/requests/pull/62",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/62.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/62"
}
| true |
[
"Oh my god, its full of merges :) Sorry about that.\n",
"Haha, no worries — Thanks! \n\nNot sure why it didn't work before.. Obviously, I don't use cookiejar often :)\n",
"I need more coffee to actually read github button captions...\n"
] |
https://api.github.com/repos/psf/requests/issues/61
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/61/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/61/comments
|
https://api.github.com/repos/psf/requests/issues/61/events
|
https://github.com/psf/requests/issues/61
| 1,065,211 |
MDU6SXNzdWUxMDY1MjEx
| 61 |
settings.verbose stream/logger 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 |
{
"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}",
"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_at": "2011-06-22T02:27:21Z",
"closed_issues": 4,
"created_at": "2011-05-24T23:49:35Z",
"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": null,
"html_url": "https://github.com/psf/requests/milestone/6",
"id": 11871,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/6/labels",
"node_id": "MDk6TWlsZXN0b25lMTE4NzE=",
"number": 6,
"open_issues": 0,
"state": "closed",
"title": "v0.5.0",
"updated_at": "2013-02-14T23:20:20Z",
"url": "https://api.github.com/repos/psf/requests/milestones/6"
}
| 5 |
2011-06-16T02:42:48Z
|
2021-09-09T13:05:48Z
|
2011-06-22T02:26:34Z
|
CONTRIBUTOR
|
resolved
|
Print all requests to `stdout`:
``` python
>>> requests.settings.verbose = sys.stderr
```
|
{
"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/61/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/61/timeline
| null |
completed
| null | null | false |
[
"This sounds very useful; but I hope it won't be a global configuration as the above implies - I'd like to be able to log some requests, but not all.\n",
"`requests.settings` is also a context manager :)\n\n``` pycon\n>>> with requests.settings(verbose=sys.stderr):\n... r = requests.get('http://httpbin.org')\n...\nGET http://httpbin.org\n```\n\nI really need to update the docs...\n",
"In all honesty, @kennethreitz, it is I who should've updated the docs when I committed that. ;-)\n",
"@jgorset: feel free to :)\n",
"Done.\n"
] |
https://api.github.com/repos/psf/requests/issues/60
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/60/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/60/comments
|
https://api.github.com/repos/psf/requests/issues/60/events
|
https://github.com/psf/requests/issues/60
| 1,062,411 |
MDU6SXNzdWUxMDYyNDEx
| 60 |
Handle Connection Refused properly
|
{
"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-06-15T16:58:37Z
|
2021-09-09T13:05:46Z
|
2011-06-22T02:48:40Z
|
CONTRIBUTOR
|
resolved
|
`r = requests.get('http://docs.python-requests.org/en/latest/user/intro/')`
|
{
"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/60/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/60/timeline
| null |
completed
| null | null | false |
[
"Issue URL fixed. Need to reproduce.\n",
"Done.\n"
] |
https://api.github.com/repos/psf/requests/issues/59
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/59/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/59/comments
|
https://api.github.com/repos/psf/requests/issues/59/events
|
https://github.com/psf/requests/pull/59
| 1,034,347 |
MDExOlB1bGxSZXF1ZXN0MTc3OTgy
| 59 |
Header capitalization
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5412?v=4",
"events_url": "https://api.github.com/users/steder/events{/privacy}",
"followers_url": "https://api.github.com/users/steder/followers",
"following_url": "https://api.github.com/users/steder/following{/other_user}",
"gists_url": "https://api.github.com/users/steder/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/steder",
"id": 5412,
"login": "steder",
"node_id": "MDQ6VXNlcjU0MTI=",
"organizations_url": "https://api.github.com/users/steder/orgs",
"received_events_url": "https://api.github.com/users/steder/received_events",
"repos_url": "https://api.github.com/users/steder/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/steder/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/steder/subscriptions",
"type": "User",
"url": "https://api.github.com/users/steder",
"user_view_type": "public"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
}
] |
closed
| true | null |
[] | null | 4 |
2011-06-10T03:56:02Z
|
2021-09-08T11:01:04Z
|
2011-07-24T01:45:01Z
|
NONE
|
resolved
|
Fixed bug where not capitalizing a header properly caused that header to not be set.
I noticed when doing a post to a service that expected a json request body that my typo "content-type" rather than "Content-type" in my headers dictionary caused the Content-type to default to "application/x-www-urlencoded" rather than "application/json".
I added a pair of tests that illustrate the problem with posts to postbin.
|
{
"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/59/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/59/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/59.diff",
"html_url": "https://github.com/psf/requests/pull/59",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/59.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/59"
}
| true |
[
"HTTP header names are case-insensitive, per spec: http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html\n\nPerhaps the website on the other side is not following the spec on this?\n",
"There was an issue in an early release where the wrong casing for `content-type` would fail to override `urllib2`s default Request `Content-Type` header, but it was fixed.\n\nIt's possible when I implemented `CaseInsensitiveDict` for `headers`, that something changed there. I'll take a look this evening.\n",
"Thanks for taking a look.\n",
"This was an error with your server.\n"
] |
https://api.github.com/repos/psf/requests/issues/58
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/58/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/58/comments
|
https://api.github.com/repos/psf/requests/issues/58/events
|
https://github.com/psf/requests/pull/58
| 1,029,334 |
MDExOlB1bGxSZXF1ZXN0MTc2NzUw
| 58 |
Testing that cookies actually work.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/182194?v=4",
"events_url": "https://api.github.com/users/zsiciarz/events{/privacy}",
"followers_url": "https://api.github.com/users/zsiciarz/followers",
"following_url": "https://api.github.com/users/zsiciarz/following{/other_user}",
"gists_url": "https://api.github.com/users/zsiciarz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zsiciarz",
"id": 182194,
"login": "zsiciarz",
"node_id": "MDQ6VXNlcjE4MjE5NA==",
"organizations_url": "https://api.github.com/users/zsiciarz/orgs",
"received_events_url": "https://api.github.com/users/zsiciarz/received_events",
"repos_url": "https://api.github.com/users/zsiciarz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zsiciarz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zsiciarz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zsiciarz",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-06-09T10:34:54Z
|
2021-09-08T11:01:03Z
|
2011-06-09T22:09:15Z
|
CONTRIBUTOR
|
resolved
|
Well, just a crude test case, I couldn't find a simpler website to check cookie support (also tried with some public phpinfo, but that's gross ;) ).
|
{
"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/58/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/58/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/58.diff",
"html_url": "https://github.com/psf/requests/pull/58",
"merged_at": "2011-06-09T22:09:15Z",
"patch_url": "https://github.com/psf/requests/pull/58.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/58"
}
| true |
[
"Awesome, thanks!\n"
] |
https://api.github.com/repos/psf/requests/issues/57
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/57/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/57/comments
|
https://api.github.com/repos/psf/requests/issues/57/events
|
https://github.com/psf/requests/issues/57
| 1,028,800 |
MDU6SXNzdWUxMDI4ODAw
| 57 |
Requests is too awesome.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/208567?v=4",
"events_url": "https://api.github.com/users/erinxocon/events{/privacy}",
"followers_url": "https://api.github.com/users/erinxocon/followers",
"following_url": "https://api.github.com/users/erinxocon/following{/other_user}",
"gists_url": "https://api.github.com/users/erinxocon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erinxocon",
"id": 208567,
"login": "erinxocon",
"node_id": "MDQ6VXNlcjIwODU2Nw==",
"organizations_url": "https://api.github.com/users/erinxocon/orgs",
"received_events_url": "https://api.github.com/users/erinxocon/received_events",
"repos_url": "https://api.github.com/users/erinxocon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erinxocon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erinxocon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erinxocon",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-06-09T08:17:18Z
|
2021-09-09T13:05:48Z
|
2011-06-11T15:15:56Z
|
NONE
|
resolved
|
Requests is _**way**_ to awesome. Please bring the level of awesome down a notch.
|
{
"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/57/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/57/timeline
| null |
completed
| null | null | false |
[
"This needs to be added to testimonals in the docs :)\n",
"Haha! Thanks guys :)\n\nEnjoy your cake: :cake:\n"
] |
https://api.github.com/repos/psf/requests/issues/56
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/56/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/56/comments
|
https://api.github.com/repos/psf/requests/issues/56/events
|
https://github.com/psf/requests/issues/56
| 1,002,948 |
MDU6SXNzdWUxMDAyOTQ4
| 56 |
Auth fail for private github repo
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19956?v=4",
"events_url": "https://api.github.com/users/mw44118/events{/privacy}",
"followers_url": "https://api.github.com/users/mw44118/followers",
"following_url": "https://api.github.com/users/mw44118/following{/other_user}",
"gists_url": "https://api.github.com/users/mw44118/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mw44118",
"id": 19956,
"login": "mw44118",
"node_id": "MDQ6VXNlcjE5OTU2",
"organizations_url": "https://api.github.com/users/mw44118/orgs",
"received_events_url": "https://api.github.com/users/mw44118/received_events",
"repos_url": "https://api.github.com/users/mw44118/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mw44118/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mw44118/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mw44118",
"user_view_type": "public"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
}
] |
closed
| true | null |
[] | null | 6 |
2011-06-04T16:23:34Z
|
2021-09-09T12:00:46Z
|
2011-07-24T02:55:20Z
|
NONE
|
resolved
|
I've got a private repo here on github. I want to suck down all the issues. This works in curl (password removed):
```
$ curl -u "mw44118:XXXXXXXX" https://api.github.com/repos/spothero/SpotHero-Splash-Page/issues
{
... real data here
}
```
And this is what happens when I don't include the -u authentication stuff:
```
$ curl https://api.github.com/repos/spothero/SpotHero-Splash-Page/issues
{
"message": "Not Found"
}
```
Then I tried the same thing with requests (again XXXXXX ain't really my password):
```
>>> requests.get('https://api.github.com/repos/spothero/SpotHero-Splash-Page/issues', auth=('mw44118', 'XXXXXXXX'))
<Response [404]>
```
I wondered if maybe you don't actually send the auth stuff unless the server replies with a 403, and since github is replying with a 404, the requests code never knows to send the credentials.
I tried reading through the requests code, but didn't see anything that supported that guess.
|
{
"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/56/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/56/timeline
| null |
completed
| null | null | false |
[
"I'm going to have to play with this. #74 may fix the problem, once it is implemented.\n",
"Same problem here. From Wireshark,\n\n``` python\nrequests.get('https://api.github.com', auth=('user', 'pass'))\n```\n\nseems to not send the HTTP authentication headers.\n",
"I'm going to get on this tonight. \n\nIt's because GitHub's api isn't asking for authentication. \n",
"Until I figure out a good method for overriding default HTTP behavior, you can do this:\n\nhttp://stackoverflow.com/questions/2407126/python-urllib2-basic-auth-problem/2955687#2955687\n",
"Alright, a new ForcedHTTPBasicAuthenticationHandler was added, and it's default.\n\nThis should work fine now::\n\n```\nrequests.get('https://api.github.com', auth=('user', 'pass'))\n```\n\n:)\n",
"Thanks for writing this! \n\nI just ran easy_install -U and now it seems to work, because I get a <Response 200> instead of the <Response 404>.\n\nOf course when I tried to read from the response, I got a huge stream of gibberish, but I'll try to figure that out myself.\n"
] |
https://api.github.com/repos/psf/requests/issues/55
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/55/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/55/comments
|
https://api.github.com/repos/psf/requests/issues/55/events
|
https://github.com/psf/requests/issues/55
| 991,550 |
MDU6SXNzdWU5OTE1NTA=
| 55 |
Support for OPTIONS and PATCH
|
{
"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"
}
|
[
{
"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 | 1 |
2011-06-02T18:50:44Z
|
2021-09-09T13:05:47Z
|
2011-06-22T02:27:07Z
|
CONTRIBUTOR
|
resolved
|
{
"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/55/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/55/timeline
| null |
completed
| null | null | false |
[
"Done. No OPTIONS.\n"
] |
|
https://api.github.com/repos/psf/requests/issues/54
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/54/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/54/comments
|
https://api.github.com/repos/psf/requests/issues/54/events
|
https://github.com/psf/requests/issues/54
| 976,984 |
MDU6SXNzdWU5NzY5ODQ=
| 54 |
Add support for proxies
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/118963?v=4",
"events_url": "https://api.github.com/users/j0hnsmith/events{/privacy}",
"followers_url": "https://api.github.com/users/j0hnsmith/followers",
"following_url": "https://api.github.com/users/j0hnsmith/following{/other_user}",
"gists_url": "https://api.github.com/users/j0hnsmith/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/j0hnsmith",
"id": 118963,
"login": "j0hnsmith",
"node_id": "MDQ6VXNlcjExODk2Mw==",
"organizations_url": "https://api.github.com/users/j0hnsmith/orgs",
"received_events_url": "https://api.github.com/users/j0hnsmith/received_events",
"repos_url": "https://api.github.com/users/j0hnsmith/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/j0hnsmith/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/j0hnsmith/subscriptions",
"type": "User",
"url": "https://api.github.com/users/j0hnsmith",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-05-31T05:17:46Z
|
2021-09-09T13:05:47Z
|
2011-06-22T02:26:48Z
|
NONE
|
resolved
|
It would be nice to be able to provide a dict of proxies to use eg
```
proxies = {'http': 'http://someproxy.com:8080', 'https': 'http://anotherproxy.com:8443'}
requests.get(url, params={}, headers={}, cookies=None, auth=None, proxies={}, **kwargs)
```
|
{
"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/54/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/54/timeline
| null |
completed
| null | null | false |
[
"It's better do like here, with HTTP and SOCKS5 support:\nhttp://code.google.com/p/httplib2/wiki/Examples#Proxies\n",
"Done.\n"
] |
https://api.github.com/repos/psf/requests/issues/53
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/53/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/53/comments
|
https://api.github.com/repos/psf/requests/issues/53/events
|
https://github.com/psf/requests/issues/53
| 972,925 |
MDU6SXNzdWU5NzI5MjU=
| 53 |
Authenticaion Context Manager
|
{
"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}",
"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"
}
] | null | 1 |
2011-05-30T06:25:47Z
|
2021-09-09T13:05:45Z
|
2011-06-22T02:49:25Z
|
CONTRIBUTOR
|
resolved
|
``` python
with requests.auth_manager('http://base-uri', ('user', 'pass')):
r = requests.get('http://base-uri')
```
|
{
"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/53/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/53/timeline
| null |
completed
| null | null | false |
[
"Merging with #69\n"
] |
https://api.github.com/repos/psf/requests/issues/52
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/52/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/52/comments
|
https://api.github.com/repos/psf/requests/issues/52/events
|
https://github.com/psf/requests/issues/52
| 972,749 |
MDU6SXNzdWU5NzI3NDk=
| 52 |
Timeouts throw exception from urllib2
|
{
"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-05-30T05:01:17Z
|
2021-09-09T13:05:49Z
|
2011-05-30T06:14:04Z
|
CONTRIBUTOR
|
resolved
|
Slight grump. When I set a timeout (say `requests.get('some url', timeout=1.0)`), if the server on the other end doesn't reply in time, I get a `urllib2.URLError` thrown. Yay that it timed out right, but in order to catch the exception, I have to import `urllib2` as well. Any chance there could be a `requests` exception thrown there instead?
|
{
"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/52/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/52/timeline
| null |
completed
| null | null | false |
[
"Luckily, the latest release raises a `requests.exceptions.Timeout` exception :)\n"
] |
https://api.github.com/repos/psf/requests/issues/51
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/51/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/51/comments
|
https://api.github.com/repos/psf/requests/issues/51/events
|
https://github.com/psf/requests/issues/51
| 967,324 |
MDU6SXNzdWU5NjczMjQ=
| 51 |
Possible Feature: Request Status Callback Hooks
|
{
"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 | 0 |
2011-05-28T01:16:19Z
|
2021-09-09T12:00:40Z
|
2011-08-23T15:06:39Z
|
CONTRIBUTOR
|
resolved
|
``` python
def handler(r_msg):
# logic to handle various request states
...
```
``` pycon
>>> requests.get(url, callback=handler)
```
|
{
"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/51/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/51/timeline
| null |
completed
| null | null | false |
[] |
https://api.github.com/repos/psf/requests/issues/50
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/50/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/50/comments
|
https://api.github.com/repos/psf/requests/issues/50/events
|
https://github.com/psf/requests/issues/50
| 967,312 |
MDU6SXNzdWU5NjczMTI=
| 50 |
Add verbose logging support for debugging
|
{
"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}",
"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_at": "2011-06-22T02:27:21Z",
"closed_issues": 4,
"created_at": "2011-05-24T23:49:35Z",
"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": null,
"html_url": "https://github.com/psf/requests/milestone/6",
"id": 11871,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/6/labels",
"node_id": "MDk6TWlsZXN0b25lMTE4NzE=",
"number": 6,
"open_issues": 0,
"state": "closed",
"title": "v0.5.0",
"updated_at": "2013-02-14T23:20:20Z",
"url": "https://api.github.com/repos/psf/requests/milestones/6"
}
| 3 |
2011-05-28T01:13:42Z
|
2021-09-09T08:00:42Z
|
2011-06-22T02:27:21Z
|
CONTRIBUTOR
|
resolved
|
``` pycon
>>> requests.settings.log = True
# Logs all HTTP Traffic to stderr
>>> requests.settings.log = steam_like_object
# Logs all HTTP Traffic to given stream
>>> requests.settings.log = False
# [Default] No HTTP Logging
```
|
{
"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/50/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/50/timeline
| null |
completed
| null | null | false |
[
"Done.\n",
"I can't find any documentation on this and it doesn't work for me, even after pip installing right from GitHub:\n\n```\nIn [9]: import requests\n\nIn [10]: requests.settings.log = True\n---------------------------------------------------------------------------\nAttributeError Traceback (most recent call last)\n/Users/fletcher/Work/Current/twrss/<ipython-input-10-e3570368ba7d> in <module>()\n----> 1 requests.settings.log = True\n\nAttributeError: 'module' object has no attribute 'settings'\n\nIn [11]: requests.__version__\nOut[11]: '0.10.2'\n```\n\nWhat am I doing wrong?\n",
"Same here with current HEAD:\n\n``` python\n>>> import requests\n>>> requests.settings.log = True\nTraceback (most recent call last):\n File \"<stdin>\", line 1, in <module>\nAttributeError: 'module' object has no attribute 'settings'\n>>> requests.__version__\n'0.12.01'\n\n```\n\nAlso, I can only find a couple of mentions to settings:\n\n``` bash\n$ grep -rnsI settings lib/python2.6/site-packages/requests/*\nlib/python2.6/site-packages/requests/models.py:186: # Pass settings over.\nlib/python2.6/site-packages/requests/sessions.py:7:This module provides a Session object to manage and persist settings across\n```\n\nHas this been removed after closing this issue or something?\n"
] |
https://api.github.com/repos/psf/requests/issues/49
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/49/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/49/comments
|
https://api.github.com/repos/psf/requests/issues/49/events
|
https://github.com/psf/requests/issues/49
| 967,308 |
MDU6SXNzdWU5NjczMDg=
| 49 |
Investigate auth_manager base urls
|
{
"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}",
"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_at": "2011-06-22T02:27:21Z",
"closed_issues": 4,
"created_at": "2011-05-24T23:49:35Z",
"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": null,
"html_url": "https://github.com/psf/requests/milestone/6",
"id": 11871,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/6/labels",
"node_id": "MDk6TWlsZXN0b25lMTE4NzE=",
"number": 6,
"open_issues": 0,
"state": "closed",
"title": "v0.5.0",
"updated_at": "2013-02-14T23:20:20Z",
"url": "https://api.github.com/repos/psf/requests/milestones/6"
}
| 1 |
2011-05-28T01:12:31Z
|
2021-09-09T13:05:46Z
|
2011-06-22T02:27:16Z
|
CONTRIBUTOR
|
resolved
|
Reported to be buggy.
|
{
"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/49/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/49/timeline
| null |
completed
| null | null | false |
[
"Done.\n"
] |
https://api.github.com/repos/psf/requests/issues/48
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/48/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/48/comments
|
https://api.github.com/repos/psf/requests/issues/48/events
|
https://github.com/psf/requests/issues/48
| 965,123 |
MDU6SXNzdWU5NjUxMjM=
| 48 |
requests.post should accept strings in addition to dicts
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/62857?v=4",
"events_url": "https://api.github.com/users/pydanny/events{/privacy}",
"followers_url": "https://api.github.com/users/pydanny/followers",
"following_url": "https://api.github.com/users/pydanny/following{/other_user}",
"gists_url": "https://api.github.com/users/pydanny/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pydanny",
"id": 62857,
"login": "pydanny",
"node_id": "MDQ6VXNlcjYyODU3",
"organizations_url": "https://api.github.com/users/pydanny/orgs",
"received_events_url": "https://api.github.com/users/pydanny/received_events",
"repos_url": "https://api.github.com/users/pydanny/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pydanny/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pydanny/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pydanny",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-05-27T15:39:08Z
|
2021-09-09T13:05:49Z
|
2011-05-27T16:56:49Z
|
NONE
|
resolved
|
The specification for HTTP POST is that it has a "message body". HTML forms sticks encoded key/values representing form inputs into that message body when submitted. However, this means that currently requests.post can't accept JSON or XML message bodies, which could make it hard to use with some APIs. Therefore, I propose the following:
``` python
"""inside of requests.post method"""
if isinstance(data, dict):
# process as existing code now handles POST
elif isinstance(data, str) or isinstance(data, unicode):
# Stick into message body
# Do encoding if that is what the spec demands (I'm not sure)
else:
# raise InvalidRequestDataFormat
"""Example of implementation"""
import json
import requests
post_dict = {"hello":"world"}
r = request.post(form_url, post_dict)
post_json = json.dumps(post_dict)
r = request.post(json_url, post_json)
```
|
{
"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/48/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/48/timeline
| null |
completed
| null | null | false |
[
"`Request.post` accepts both dicts and bytestrings for the data parameter already :)\n",
"Thanks for submitting this issue though. Clearly, the docs need to reflect that capability. :)\n"
] |
https://api.github.com/repos/psf/requests/issues/47
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/47/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/47/comments
|
https://api.github.com/repos/psf/requests/issues/47/events
|
https://github.com/psf/requests/issues/47
| 963,404 |
MDU6SXNzdWU5NjM0MDQ=
| 47 |
Kerberos support
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/91576?v=4",
"events_url": "https://api.github.com/users/FedericoCeratto/events{/privacy}",
"followers_url": "https://api.github.com/users/FedericoCeratto/followers",
"following_url": "https://api.github.com/users/FedericoCeratto/following{/other_user}",
"gists_url": "https://api.github.com/users/FedericoCeratto/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FedericoCeratto",
"id": 91576,
"login": "FedericoCeratto",
"node_id": "MDQ6VXNlcjkxNTc2",
"organizations_url": "https://api.github.com/users/FedericoCeratto/orgs",
"received_events_url": "https://api.github.com/users/FedericoCeratto/received_events",
"repos_url": "https://api.github.com/users/FedericoCeratto/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FedericoCeratto/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FedericoCeratto/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FedericoCeratto",
"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"
},
{
"color": "0b02e1",
"default": false,
"description": null,
"id": 191274,
"name": "Contributor Friendly",
"node_id": "MDU6TGFiZWwxOTEyNzQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Contributor%20Friendly"
}
] |
closed
| true | null |
[] | null | 21 |
2011-05-27T09:14:23Z
|
2021-09-09T05:00:46Z
|
2012-07-31T00:46:00Z
|
NONE
|
resolved
|
A simple way to authenticate using Kerberos is blatantly missing from urllib/urllib2
Having (optional) Kerberos support in Requests would be awesome... here is a code example that does pretty much everything is needed http://bretm.wordpress.com/2010/09/03/python-kerberos-urllib2/
Thank you!
|
{
"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/47/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/47/timeline
| null |
completed
| null | null | false |
[
"I'm looking into adding this, thanks for the suggestion!\n",
"Someone was working on this, but I haven't heard from him in a while.\n\nI'd love to see a `requests-kerberos` module that provides the auth handler.\n",
"Was there a published tree with a starting point for this? Else if it's free I may take a stab.\n",
"Release v0.13.4 includes this (just add auth=requests.auth.HTTPKerberosAuth() to the keyword args to requests.get()) so perhaps this can be closed now...\n",
":cake:\n",
"Said code appears to have been ripped out in 377078b0f5cc5944756635f6e506d208b421b1e1\n",
"correct, there is now a requests-keroberos project which will contain this functionality\n\nhttps://github.com/requests/requests-kerberos\n",
"Which doesn't work, and when fixed will continue to rot when you change an interface.\n\nWhich isn't packaged by anyone and will be that much more effort to get into e.g. debian or ubuntu.\n\nSecurity should never be a secondary feature that you have to go to extra lengths to enable.\n",
"The interface will never change. It was removed because I cannot maintain it.\n",
"(I apologize if this is coming across a bit confrontational, but I was unreasonably annoyed by the functionality I was wanting and expecting being removed in a commit labelled \"hooks and such\")\n",
"refactors are brutal :)\n",
"I say this about interfaces from the perspective of having made the code work again; some of the details of how the response hook is called appears to have changed since it was written.\n\nI appreciate that this sort of thing is hard to maintain, but that's a reason to say \"hey can someone write me a test\" not quietly delete it in the apparent hope that nobody notices.\n",
"this was not quietly removed, requests was basically fully rewritten and stripped down of everything unnccesary. \n\nhttp://kennethreitz.org/exposures/announcing-requests-v1-0-0\n",
"Oops, I completely failed to find that. I apologize for my implication.\n\nStill, authentication methods ought to be core functionality and tested along with everything else; anything more complex than Basic is going to end up having to fiddle around behind the scenes.\n",
"The authentication interface and mechanism is a first-class citizen. Basic and Digest is all that will be supported in core. \n",
"\"Security is hard, batteries not included\"\n",
"Pull request for requests_kerberos sent.\n",
"@kcr: The biggest problem requests-kerberos has is a lack of tests. If you want to contribute a test suite (or even just a couple of tests), that will greatly improve our ability to keep it up to date. =)\n",
"@Lukasa I suspect we'll be able to repurpose at least the setup parts of the Zephyr test suite we're working on over the next couple of weekends, we'll definitely be in touch about that :)\n",
"@eichin, link for the curious?\n",
"Also, can we move this over to requests/requests-kerberos#1?\n"
] |
https://api.github.com/repos/psf/requests/issues/46
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/46/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/46/comments
|
https://api.github.com/repos/psf/requests/issues/46/events
|
https://github.com/psf/requests/pull/46
| 963,009 |
MDExOlB1bGxSZXF1ZXN0MTYxODk4
| 46 |
request.header objects don't support the standard keys() method of dicts
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61381?v=4",
"events_url": "https://api.github.com/users/JNRowe/events{/privacy}",
"followers_url": "https://api.github.com/users/JNRowe/followers",
"following_url": "https://api.github.com/users/JNRowe/following{/other_user}",
"gists_url": "https://api.github.com/users/JNRowe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JNRowe",
"id": 61381,
"login": "JNRowe",
"node_id": "MDQ6VXNlcjYxMzgx",
"organizations_url": "https://api.github.com/users/JNRowe/orgs",
"received_events_url": "https://api.github.com/users/JNRowe/received_events",
"repos_url": "https://api.github.com/users/JNRowe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JNRowe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JNRowe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JNRowe",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 0 |
2011-05-27T07:21:30Z
|
2021-09-08T11:01:04Z
|
2011-05-27T12:01:44Z
|
CONTRIBUTOR
|
resolved
|
`UserDict.DictMixin` derivatives should support [keys()](http://docs.python.org/library/userdict.html#UserDict.DictMixin), not `__keys__()`. I'm guessing it was probably a typo :)
I took a peak at the code when I found the bug, and wonder if it wouldn't just be easier to use the attached code instead? Maybe I'm missing something, but the only problem I can see is if you suddenly decided to start supporting _much_ older versions of Python.
Thanks,
James
|
{
"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/46/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/46/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/46.diff",
"html_url": "https://github.com/psf/requests/pull/46",
"merged_at": "2011-05-27T12:01:44Z",
"patch_url": "https://github.com/psf/requests/pull/46.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/46"
}
| true |
[] |
https://api.github.com/repos/psf/requests/issues/45
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/45/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/45/comments
|
https://api.github.com/repos/psf/requests/issues/45/events
|
https://github.com/psf/requests/pull/45
| 962,879 |
MDExOlB1bGxSZXF1ZXN0MTYxODc1
| 45 |
Conform api.* arguments to api.request arguments
|
{
"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 | 0 |
2011-05-27T06:33:55Z
|
2021-09-08T11:01:03Z
|
2011-05-27T11:59:34Z
|
CONTRIBUTOR
|
resolved
|
{
"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/45/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/45/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/45.diff",
"html_url": "https://github.com/psf/requests/pull/45",
"merged_at": "2011-05-27T11:59:34Z",
"patch_url": "https://github.com/psf/requests/pull/45.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/45"
}
| true |
[] |
|
https://api.github.com/repos/psf/requests/issues/44
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/44/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/44/comments
|
https://api.github.com/repos/psf/requests/issues/44/events
|
https://github.com/psf/requests/issues/44
| 961,901 |
MDU6SXNzdWU5NjE5MDE=
| 44 |
Authorization header missing?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33829?v=4",
"events_url": "https://api.github.com/users/edsu/events{/privacy}",
"followers_url": "https://api.github.com/users/edsu/followers",
"following_url": "https://api.github.com/users/edsu/following{/other_user}",
"gists_url": "https://api.github.com/users/edsu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/edsu",
"id": 33829,
"login": "edsu",
"node_id": "MDQ6VXNlcjMzODI5",
"organizations_url": "https://api.github.com/users/edsu/orgs",
"received_events_url": "https://api.github.com/users/edsu/received_events",
"repos_url": "https://api.github.com/users/edsu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/edsu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/edsu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/edsu",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-05-26T23:55:19Z
|
2021-09-09T13:05:51Z
|
2011-05-27T02:15:42Z
|
CONTRIBUTOR
|
resolved
|
I'm confused why an Authorization header isn't sent on the first request, and seems dependent on a 401 coming back to trigger another request with the Authorization header?
``` python
import requests
r = requests.post("http://localhost:8080/", auth=('test', 'test'))
```
```
esummers@roentgenium:~$ netcat -l localhost 8080
POST / HTTP/1.1
Accept-Encoding: identity
Content-Length: 0
Host: localhost:8080
Content-Type: application/x-www-form-urlencoded
Connection: close
User-Agent: Python-urllib/2.6
```
|
{
"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/44/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/44/timeline
| null |
completed
| null | null | false |
[
"That's how it's supposed to work. The client doesn't know in advance if and what kind of authentication the server requires. Could be basic, digest, kerberos, NTLM, etc.\n",
"In my case I do know, and the server is unfortunately responding with a 403, which means requests gives up. I guess this is really a bug on the server side though. Feel free to close this 'wont-fix' or whatever :-)\n"
] |
https://api.github.com/repos/psf/requests/issues/43
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/43/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/43/comments
|
https://api.github.com/repos/psf/requests/issues/43/events
|
https://github.com/psf/requests/pull/43
| 960,255 |
MDExOlB1bGxSZXF1ZXN0MTYxMTcw
| 43 |
Conform api.get/head/post/put/delete default arguments to api.request default arguments
|
{
"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 | 0 |
2011-05-26T18:31:16Z
|
2021-09-08T11:01:03Z
|
2011-05-27T06:27:50Z
|
CONTRIBUTOR
|
resolved
|
_I wonder if there's a coderwall achievement for insignificant commits..._
|
{
"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"
}
|
{
"+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/43/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/43/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/43.diff",
"html_url": "https://github.com/psf/requests/pull/43",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/43.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/43"
}
| true |
[] |
https://api.github.com/repos/psf/requests/issues/42
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/42/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/42/comments
|
https://api.github.com/repos/psf/requests/issues/42/events
|
https://github.com/psf/requests/pull/42
| 960,095 |
MDExOlB1bGxSZXF1ZXN0MTYxMTI5
| 42 |
Refactor requests.get/head/post/put/delete to conform to requests.request
|
{
"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 | 0 |
2011-05-26T18:05:13Z
|
2021-09-08T11:01:02Z
|
2011-05-26T18:10:24Z
|
CONTRIBUTOR
|
resolved
|
{
"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"
}
|
{
"+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/42/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/42/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/42.diff",
"html_url": "https://github.com/psf/requests/pull/42",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/42.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/42"
}
| true |
[] |
|
https://api.github.com/repos/psf/requests/issues/41
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/41/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/41/comments
|
https://api.github.com/repos/psf/requests/issues/41/events
|
https://github.com/psf/requests/issues/41
| 957,529 |
MDU6SXNzdWU5NTc1Mjk=
| 41 |
allow_redirects doesn't work
|
{
"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 | 4 |
2011-05-26T09:05:05Z
|
2021-09-09T13:05:50Z
|
2011-05-27T11:59:34Z
|
CONTRIBUTOR
|
resolved
|
I haven't had the opportunity to research this yet, but I thought I'd go ahead and submit it because it might be a while until I can.
```
>>> import requests
>>> response = requests.get('http://graph.facebook.com/espen.hogbakk/picture', allow_redirects=False)
>>> response.url
'http://profile.ak.fbcdn.net/hprofile-ak-snc4/23219_653735294_3452_q.jpg'
```
|
{
"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/41/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/41/timeline
| null |
completed
| null | null | false |
[
"On a related note, I think there's something really weird going on with `Request#redirect`.\n",
"When `allow_redirects` is set to `True`, the redirection of non-GET/HEAD requests is allowed. [RFC 2616 10.3](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) says that test redirects should only occur w/ permission of the user (therefore, the flag).\n\nWhen `allow_redirects` is set to `False` (default), GET and HEAD requests are redirected as usual, and a 301 result of a POST, will not be redirected.\n",
"Maybe `allow_redirects` should be renamed to avoid confusion.\n",
"I see.\n\nI'm not sure that it's necessary to rename `allow_redirects`. It might be sufficient that it just isn't available as an argument to `api.get` and `api.head` (see [pull request #45](https://github.com/kennethreitz/requests/pull/45)).\n"
] |
https://api.github.com/repos/psf/requests/issues/40
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/40/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/40/comments
|
https://api.github.com/repos/psf/requests/issues/40/events
|
https://github.com/psf/requests/issues/40
| 957,525 |
MDU6SXNzdWU5NTc1MjU=
| 40 |
Fix allow_redirects
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/394587?v=4",
"events_url": "https://api.github.com/users/espenhogbakk/events{/privacy}",
"followers_url": "https://api.github.com/users/espenhogbakk/followers",
"following_url": "https://api.github.com/users/espenhogbakk/following{/other_user}",
"gists_url": "https://api.github.com/users/espenhogbakk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/espenhogbakk",
"id": 394587,
"login": "espenhogbakk",
"node_id": "MDQ6VXNlcjM5NDU4Nw==",
"organizations_url": "https://api.github.com/users/espenhogbakk/orgs",
"received_events_url": "https://api.github.com/users/espenhogbakk/received_events",
"repos_url": "https://api.github.com/users/espenhogbakk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/espenhogbakk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/espenhogbakk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/espenhogbakk",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 2 |
2011-05-26T09:04:18Z
|
2021-09-09T13:05:50Z
|
2011-05-27T11:59:34Z
|
NONE
|
resolved
|
Hi,
I have problems with the "allow_redirects" to the Request object. It seems that if you specify "allow_redirects=False" it still follows redirects. I think I've found the source of the problem on line 169 in models.py:
```
while (
('location' in r.headers) and
((self.method in ('GET', 'HEAD')) or
(r.status_code is 303) or
(self.allow_redirects))
):
```
Shouldt the `or (self.allow_redirects)` be `and (self.allow_redirects)`?
|
{
"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/40/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/40/timeline
| null |
completed
| null | null | false |
[
"When `allow_redirects` is set to `True`, the redirection of non-GET/HEAD requests is allowed. [RFC 2616 10.3](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) says that these redirects should only occur w/ permission of the user (therefore, the flag).\n\nWhen `allow_redirects` is set to `False` (default), GET and HEAD requests are redirected as usual, and a 301 result of a POST, will not be redirected.\n",
"I'm considering renaming `allow_redirects` to avoid confusion.\n"
] |
https://api.github.com/repos/psf/requests/issues/39
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/39/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/39/comments
|
https://api.github.com/repos/psf/requests/issues/39/events
|
https://github.com/psf/requests/pull/39
| 942,037 |
MDExOlB1bGxSZXF1ZXN0MTU2Mzk4
| 39 |
e.g. should be i.e. I guess
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/68183?v=4",
"events_url": "https://api.github.com/users/mrtazz/events{/privacy}",
"followers_url": "https://api.github.com/users/mrtazz/followers",
"following_url": "https://api.github.com/users/mrtazz/following{/other_user}",
"gists_url": "https://api.github.com/users/mrtazz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mrtazz",
"id": 68183,
"login": "mrtazz",
"node_id": "MDQ6VXNlcjY4MTgz",
"organizations_url": "https://api.github.com/users/mrtazz/orgs",
"received_events_url": "https://api.github.com/users/mrtazz/received_events",
"repos_url": "https://api.github.com/users/mrtazz/repos",
"site_admin": true,
"starred_url": "https://api.github.com/users/mrtazz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrtazz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mrtazz",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 1 |
2011-05-23T15:41:41Z
|
2021-09-08T11:01:02Z
|
2011-05-23T15:42:53Z
|
CONTRIBUTOR
|
resolved
|
Maybe a little overkill to open a Pull Request for this, but I really wanted to finally use the "Fork and Edit button" :)
|
{
"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/39/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/39/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/39.diff",
"html_url": "https://github.com/psf/requests/pull/39",
"merged_at": "2011-05-23T15:42:53Z",
"patch_url": "https://github.com/psf/requests/pull/39.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/39"
}
| true |
[
"Haha, thanks :)\n"
] |
https://api.github.com/repos/psf/requests/issues/38
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/38/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/38/comments
|
https://api.github.com/repos/psf/requests/issues/38/events
|
https://github.com/psf/requests/pull/38
| 938,916 |
MDExOlB1bGxSZXF1ZXN0MTU1NjM5
| 38 |
Refactor
|
{
"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-22T21:46:29Z
|
2021-09-08T11:01:00Z
|
2011-05-22T22:01:25Z
|
CONTRIBUTOR
|
resolved
|
I've refactored `api.request`. I think. The new version is more robust in that it no longer accepts arbitrary arguments and raises an exception if one attempts to call it with both `params` and `data` (that should probably be supported, though, but that's a topic for another issue).
|
{
"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/38/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/38/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/38.diff",
"html_url": "https://github.com/psf/requests/pull/38",
"merged_at": "2011-05-22T22:01:25Z",
"patch_url": "https://github.com/psf/requests/pull/38.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/38"
}
| true |
[
"thank you sir!\n"
] |
https://api.github.com/repos/psf/requests/issues/37
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/37/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/37/comments
|
https://api.github.com/repos/psf/requests/issues/37/events
|
https://github.com/psf/requests/pull/37
| 937,441 |
MDExOlB1bGxSZXF1ZXN0MTU1MzEz
| 37 |
Support relative redirects. Fixes #36
|
{
"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 | 2 |
2011-05-22T09:40:51Z
|
2021-09-08T11:01:01Z
|
2011-05-22T15:26:07Z
|
CONTRIBUTOR
|
resolved
|

|
{
"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/37/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/37/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/37.diff",
"html_url": "https://github.com/psf/requests/pull/37",
"merged_at": "2011-05-22T15:26:07Z",
"patch_url": "https://github.com/psf/requests/pull/37.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/37"
}
| true |
[
"Haha! Thanks :)\n",
"\n"
] |
https://api.github.com/repos/psf/requests/issues/36
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/36/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/36/comments
|
https://api.github.com/repos/psf/requests/issues/36/events
|
https://github.com/psf/requests/issues/36
| 935,846 |
MDU6SXNzdWU5MzU4NDY=
| 36 |
Support Relative Redirects
|
{
"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}",
"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"
}
] | null | 0 |
2011-05-21T15:24:49Z
|
2021-09-09T13:05:52Z
|
2011-05-22T15:26:07Z
|
CONTRIBUTOR
|
resolved
|
`POST` to `https://www.postbin.org` = `301` with `Location: /1acb1vx`
|
{
"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/36/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/36/timeline
| null |
completed
| null | null | false |
[] |
https://api.github.com/repos/psf/requests/issues/35
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/35/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/35/comments
|
https://api.github.com/repos/psf/requests/issues/35/events
|
https://github.com/psf/requests/pull/35
| 933,251 |
MDExOlB1bGxSZXF1ZXN0MTU0MjU1
| 35 |
Migrate settings to new module
|
{
"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-05-20T18:38:28Z
|
2021-09-08T11:01:01Z
|
2011-05-21T17:04:37Z
|
CONTRIBUTOR
|
resolved
|
I've completed the migration of the requests settings to the new `settings` module, but my attempt to facilitate for manipulating settings outside of the context manager (eg. `requests.settings.timeout = 5`) has been thwarted by the namespace collision of the context manager and the module.
I'm probably just being stupid. You'll figure it out.
|
{
"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/35/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/35/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/35.diff",
"html_url": "https://github.com/psf/requests/pull/35",
"merged_at": "2011-05-21T17:04:37Z",
"patch_url": "https://github.com/psf/requests/pull/35.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/35"
}
| true |
[
"I'll try to take a look at this tonight.\n",
"I moved `settings.py` to `config.py` and reimplemented the `Settings()` object as a singleton+context-manager+struct\n",
"Very good. I'm glad I wasn't just being stupid.\n"
] |
https://api.github.com/repos/psf/requests/issues/34
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/34/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/34/comments
|
https://api.github.com/repos/psf/requests/issues/34/events
|
https://github.com/psf/requests/pull/34
| 932,730 |
MDExOlB1bGxSZXF1ZXN0MTU0MTIw
| 34 |
Exceptions
|
{
"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 | 5 |
2011-05-20T16:31:37Z
|
2021-09-08T23:08:26Z
|
2011-05-20T16:40:29Z
|
CONTRIBUTOR
|
resolved
|
It's really tedious to catch timeouts in urllib2.
```
import requests
import urllib2
import sockets
try:
requests.get('http://google.com', timeout=0.0001)
except urllib2.URLError, error:
if isinstance(error.reason, socket.timeout):
print "oh noes."
```
I've implemented a new exception, Timeout, to alleviate that.
```
import requests
try:
requests.get('http://google.com', timeout=0.0001)
except requests.Timeout:
print "oh noes."
```
PS: I took the liberty of moving the exceptions from models.py to exceptions.py and importing them in the request module so they may be referenced as `requests.Exception` instead of `requests.models.Exception`, but it's totally fine if you don't want to merge that.
|
{
"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": 1,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/psf/requests/issues/34/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/34/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/34.diff",
"html_url": "https://github.com/psf/requests/pull/34",
"merged_at": "2011-05-20T16:40:29Z",
"patch_url": "https://github.com/psf/requests/pull/34.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/34"
}
| true |
[
"I've thinking about this lately, actually. My thought was to either raise an exception (as you suggest) or return a `Response` object with that `URLError` attached at `Response.error`.\n\nRaising an exception makes sense to me if a timeout is something that is explicitly added, as it is currently.\n",
"Also, Ideally, I'd like for the logic that has been added to `__init__.py` to be moved into `core.py`, but I haven't taken the time to investigate yet. \n",
"Thanks for the contribution! This is awesome.\n\nFYI, I moved a few things around (out of `__init__.py`).\n",
"> I've thinking about this lately, actually. My thought was to either raise an exception (as you suggest) or return a Response object with that URLError attached at Response.error.\n> \n> Raising an exception makes sense to me if a timeout is something that is explicitly added, as it is currently.\n\nI think that, too, would be an improvement to the way timeouts are currently \"disguised\" in an URLError.\n\n> Also, Ideally, I'd like for the logic that has been added to **init**.py to be moved into core.py, but I haven't taken the time to investigate yet.\n\nYes. In fact, how do you feel about moving the settings and the settings context manager to new and aptly-named module `settings`?\n\n**EDIT:** You beat me to it!\n",
"@jgorset already done :)\n\n**EDIT:** You already know :P\n"
] |
https://api.github.com/repos/psf/requests/issues/33
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/33/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/33/comments
|
https://api.github.com/repos/psf/requests/issues/33/events
|
https://github.com/psf/requests/issues/33
| 927,942 |
MDU6SXNzdWU5Mjc5NDI=
| 33 |
GET request to PyPI does not work
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/238549?v=4",
"events_url": "https://api.github.com/users/rubik/events{/privacy}",
"followers_url": "https://api.github.com/users/rubik/followers",
"following_url": "https://api.github.com/users/rubik/following{/other_user}",
"gists_url": "https://api.github.com/users/rubik/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rubik",
"id": 238549,
"login": "rubik",
"node_id": "MDQ6VXNlcjIzODU0OQ==",
"organizations_url": "https://api.github.com/users/rubik/orgs",
"received_events_url": "https://api.github.com/users/rubik/received_events",
"repos_url": "https://api.github.com/users/rubik/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rubik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rubik/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rubik",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 6 |
2011-05-19T16:46:41Z
|
2021-09-09T13:05:51Z
|
2011-05-22T15:31:31Z
|
NONE
|
resolved
|
Hi, `requests` it is fantastic!
But if I try to retrieve data from `http://pypi.python.org/simple/sphinx/` I get the following error:
```
ValueError: unknown url type: /simple/Sphinx
```
That is because PyPI redirects me to that url. You should really allow redirections.
rubik
|
{
"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/33/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/33/timeline
| null |
completed
| null | null | false |
[
"Requests does have extensive redirection support. Looks like PyPI is attempting a relative redirect. I don't think that's a valid redirect, but I'll try to support it.\n",
"Yeah, that's not a valid form of redirection.\n\nSee: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30\n\nI see no harm in trying to support it though.\n",
"Ok, thank you. I didn't know that.\n",
"Support for this was just added. It will be included in the next release.\n",
"Ok thank you very much!\n",
":sparkles::cake::sparkles:\n"
] |
https://api.github.com/repos/psf/requests/issues/32
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/32/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/32/comments
|
https://api.github.com/repos/psf/requests/issues/32/events
|
https://github.com/psf/requests/pull/32
| 925,996 |
MDExOlB1bGxSZXF1ZXN0MTUyMjg0
| 32 |
Tests & refactoring
|
{
"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-19T08:19:23Z
|
2021-09-08T11:01:00Z
|
2011-05-19T15:39:06Z
|
CONTRIBUTOR
|
resolved
|
{
"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/32/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/32/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/32.diff",
"html_url": "https://github.com/psf/requests/pull/32",
"merged_at": "2011-05-19T15:39:06Z",
"patch_url": "https://github.com/psf/requests/pull/32.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/32"
}
| true |
[
"Awesome, thanks.\n\nThis is much cleaner ):\n"
] |
|
https://api.github.com/repos/psf/requests/issues/31
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/31/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/31/comments
|
https://api.github.com/repos/psf/requests/issues/31/events
|
https://github.com/psf/requests/issues/31
| 900,108 |
MDU6SXNzdWU5MDAxMDg=
| 31 |
Compensate for urllib2's basic http retry
|
{
"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 | 0 |
2011-05-14T17:28:27Z
|
2021-09-09T13:05:54Z
|
2011-05-14T18:02:40Z
|
CONTRIBUTOR
|
resolved
|
See http://bugs.python.org/issue8894 for more info.
|
{
"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/31/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/31/timeline
| null |
completed
| null | null | false |
[] |
https://api.github.com/repos/psf/requests/issues/30
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/30/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/30/comments
|
https://api.github.com/repos/psf/requests/issues/30/events
|
https://github.com/psf/requests/issues/30
| 894,748 |
MDU6SXNzdWU4OTQ3NDg=
| 30 |
HTTPS Cert Checking
|
{
"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"
}
|
[
{
"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"
},
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] |
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}",
"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"
}
] | null | 30 |
2011-05-13T13:31:24Z
|
2021-09-09T10:00:40Z
|
2011-12-28T09:22:46Z
|
CONTRIBUTOR
|
resolved
|
`Response.raise_for_status()`
|
{
"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/30/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/30/timeline
| null |
completed
| null | null | false |
[
"there are some patches/workarounds: http://stackoverflow.com/questions/1875052/using-paired-certificates-with-urllib2\n",
"Maybe we could have an empty list of PEMs as the default, and then just some methods like:\n\n```\nverisign_pem = \"\"\"-----BEGIN CERTIFICATE-----\nMIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkG\nA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz\ncyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2\nMDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV\nBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt\nYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN\nADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE\nBarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is\nI19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G\nCSqGSIb3DQEBAgUAA4GBALtMEivPLCYATxQT3ab7/AoRhIzzKBxnki98tsX63/Do\nlbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59AhWM1pF+NEHJwZRDmJXNyc\nAA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2OmufTqj/ZA1k\n-----END CERTIFICATE-----\n\"\"\"\n\nrequests.add_ca(verisign_pem)\n```\n\nIt also probably wouldn't be too hard to keep a small list of acceptable PEMs on file, and then do \n\n```\nrequests.accept_ca([\"verisign\", \"geotrust\"]) and pull them from an internal dict.\n```\n\nJust some ideas to get the ball rolling.\n",
"I'm thinking of having a default list of PEMs that the major browsers use and accept. The list can be extended/modified via `requests.settings.certs`. By default, everything will behave as it does now.\n\n`Response.raise_for_cert()` will raise an exception if the cert isn't accepted. I'm thinking an optional custom PEM argument could be passed into `raise_for_cert()` in the case that there's a private cert shared between the server and the client.\n\nWill this suit everyone's needs? \n",
"Yes, that would be perfect.\n\nOn Tue, May 24, 2011 at 7:42 PM, kennethreitz <\[email protected]>wrote:\n\n> I'm thinking of having a default list of PEMs that the major browsers use\n> and accept. The list can be extended/modified via `requests.settings.certs`.\n> By default, everything will behave as it does now.\n> \n> `Response.raise_for_cert()` will raise an exception if the cert isn't\n> accepted. I'm thinking an optional custom PEM could be passed into\n> `raise_for_cert()` in the case that there's a private cert shared between\n> the server and the client.\n> \n> Will this suit everyone's needs?\n> \n> ## \n> \n> Reply to this email directly or view it on GitHub:\n> https://github.com/kennethreitz/requests/issues/30#comment_1232227\n",
"Please can you make sure the default option is to use modssl's list of accepted certificates?\nThe trend in python request libraries to have to specify _all_ the accepted certs rather than using the \"system standards\" is pretty annoying. If I have my own CA, I just want to install the certificate in /etc/ssl/certs/ rather than having to pass it in every piece of python client software I write ;-)\n",
"The standard ssl module has something to help here, but only for Python 3.2+: http://docs.python.org/dev/library/ssl#ssl.SSLContext.set_default_verify_paths\n",
"The more I think about this, the more I think it's a bad idea. \n\nIf you look at httplib2, almost all of its issues are ssl-related. \n\nI'm not ruling it out yet, but maybe it's a bit out of scope for requests itself. There could easily be a `requests-ssl` package that uses the hooks system to force checks and such.\n\nLike I said, I'm just thinking out loud at this point.\n",
"I wouldn't mind this as an external library, I just think it needs to exist in one form or another. I wouldn't mind you closing this with a \"#wontfix\" for being out of scope.\n",
"https://github.com/eldarion/braintree_python/commit/634f1f3e4952de2240e110d68c81c1fca87f3a2d#comments\n",
"http://pypi.python.org/pypi/backports.ssl_match_hostname/\n",
"http://whatschrisdoing.com/blog/2011/10/30/making-https-requests-secure-in-python/\n",
"Definitely want to add this in, but it will certainly be considered _experimental_ for a while. \n",
"In the meantime, is there a reasonable way to implement this in requests manually? I have a requirement that might force me to drop the whole library, i would hate that - and it would be a ton of work.\n\n(and thanks for the response, very glad to know it is coming! :)\n",
"@jcwdev see https://github.com/eldarion/braintree_python/commit/634f1f3e4952de2240e110d68c81c1fca87f3a2d#comments. \n\nI honestly don't think it will take much effort. I'll accept a working pull requests that fits this workflow as soon as it happens :)\n",
"Perhaps I'm just tired, but reading the code linked above it appears to be validating the server certificate, but perhaps it is validating the server cert and host name against the client cert?\n\nI am just looking for a way to pass a client cert along with my request so that the receiving server can use it for identity check.\n\nHopefully I'm making sense :)\n\neg.\nhttp://www.osmonov.com/2009/04/client-certificates-with-urllib2.html\n",
"I don't think the `Response.raise_for_cert()` idea will work, since by the time the `Response` has been returned to the caller, the HTTP headers will already have been sent (and if it's a MITM attack, that leaks information).\n",
"shazow/urllib3#25\n",
"This just landed in urllib3.\n",
"I'm planning on bundling a CA bundle. Unfortunately, Mozilla's is GPL.\n",
"Requests v0.8.8 was just released that includes ssl verification!\n\nhttp://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification\n",
"v0.9.0 adds this by default. Enjoy.\n\n:sparkles: :cake: :sparkles:\n",
"<3\n",
"Awesome, thanks!\n",
"Is there a way to provide client certificate (key file + cert file) for authorization purposes?\n",
"@wlz you can provide any CA Bundle.\n",
"@kennethreitz that is to check server cert against a CA bundle or i'm missing something?\n\nI've found traces of key/cert pair in packages, but not a mention of this in requests itself. Looks like there's some non-obvious way to actually pass client stuff to server as an auth token.\n",
"How can I unsubscribe from this issue?!\n",
"@cjw296: this pretty link: http://cl.ly/2U003k373O1L0b400y08\n",
"thanks :-)\n",
"There, i fixed it™: https://gist.github.com/1710121\n"
] |
https://api.github.com/repos/psf/requests/issues/29
|
https://api.github.com/repos/psf/requests
|
https://api.github.com/repos/psf/requests/issues/29/labels{/name}
|
https://api.github.com/repos/psf/requests/issues/29/comments
|
https://api.github.com/repos/psf/requests/issues/29/events
|
https://github.com/psf/requests/pull/29
| 890,621 |
MDExOlB1bGxSZXF1ZXN0MTQ0ODk1
| 29 |
fix for post non-dict data
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/290611?v=4",
"events_url": "https://api.github.com/users/meganemura/events{/privacy}",
"followers_url": "https://api.github.com/users/meganemura/followers",
"following_url": "https://api.github.com/users/meganemura/following{/other_user}",
"gists_url": "https://api.github.com/users/meganemura/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meganemura",
"id": 290611,
"login": "meganemura",
"node_id": "MDQ6VXNlcjI5MDYxMQ==",
"organizations_url": "https://api.github.com/users/meganemura/orgs",
"received_events_url": "https://api.github.com/users/meganemura/received_events",
"repos_url": "https://api.github.com/users/meganemura/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meganemura/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meganemura/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meganemura",
"user_view_type": "public"
}
|
[] |
closed
| true | null |
[] | null | 3 |
2011-05-12T17:34:52Z
|
2021-09-08T23:07:30Z
|
2011-05-14T17:04:53Z
|
NONE
|
resolved
|
raised Attribute Error when post str data something like json because of not having 'items' attribute.
move encoding data to utf-8 inside hasattr(data, 'items')
|
{
"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/29/reactions"
}
|
https://api.github.com/repos/psf/requests/issues/29/timeline
| null | null | false |
{
"diff_url": "https://github.com/psf/requests/pull/29.diff",
"html_url": "https://github.com/psf/requests/pull/29",
"merged_at": "2011-05-14T17:04:53Z",
"patch_url": "https://github.com/psf/requests/pull/29.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/29"
}
| true |
[
"Awesome, Thanks for the contribution! \n\nThis is merged in now.\n",
"glad to be some help.\nin addition, my screen name is megane murayama.\nsorry for making you confuse about japanese language.\n",
"No worries, I'll fix the AUTHORS file. Thanks!\n"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.