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": "ht... | [] | 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, ... | {
"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_... | {
"+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.git... | [] | 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_... | {
"+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.githu... | [] | 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_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-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... | 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"... | {
"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_... | {
"+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://... |
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... | [] | 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_... | {
"+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:... | [] | 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_... | {
"+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": "http... | [] | 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_... | {
"+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://a... | [] | 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_... | {
"+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.git... | [] | 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 (e... | {
"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_... | {
"+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... | [] | 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_... | {
"+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... | [] | 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_... | {
"+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": "ht... | [] | 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... | 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 ins... | {
"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_... | {
"+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 patter... |
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... | [] | 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_... | {
"+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... | [] | 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_... | {
"+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.git... | [] | 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... | 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... | {
"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_... | {
"+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 r... |
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.git... | [
{
"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 H... | {
"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_... | {
"+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'... |
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.git... | [] | 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_... | {
"+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. Tha... |
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.git... | [] | 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" time... | {
"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.git... | {
"+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... | [] | 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_... | {
"+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.git... | [] | 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_... | [] | 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... | 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_... | {
"+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.co... | [] | 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_... | {
"+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": "htt... | [] | 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_... | {
"+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... | [] | 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_... | {
"+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_u... | [] | 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��... | {
"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_... | {
"+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 mo... |
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": ... | [] | 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_... | {
"+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_... | [] | 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_... | {
"+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... | [] | 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": {}, "ur... | {
"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... | {
"+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_... | [] | 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... | 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 d... | {
"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_... | {
"+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 ke... |
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... | [] | 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_... | {
"+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... | [] | 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_... | {
"+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_... | [
{
"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_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-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... | 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_... | {
"+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",
"Un... |
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_... | [
{
"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_... | {
"+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://a... | [] | 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_... | {
"+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.... | [] | 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_... | {
"+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=Fa... |
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.githu... | [] | 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_... | {
"+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... | [] | 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_... | {
"+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_... | [] | 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_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-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... | 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_... | {
"+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.git... | [] | 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_... | [
{
"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}... | 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_... | {
"+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 ca... |
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://a... | [] | 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_... | {
"+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'... |
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.gi... | [] | 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_... | {
"+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 ... |
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.... | [] | 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': 'clos... | {
"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_... | {
"+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 ... |
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.git... | [] | 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_... | {
"+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.git... | [] | 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 thi... | {
"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_... | {
"+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 `H... |
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.githu... | [] | 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 li... | {
"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.githu... | {
"+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.githu... | [] | 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 Fil... | {
"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.githu... | {
"+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.githu... | [] | 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... | {
"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_... | {
"+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.githu... | [] | 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 li... | {
"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.githu... | {
"+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.githu... | [] | 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 li... | {
"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.githu... | {
"+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.githu... | [] | 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... | {
"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.githu... | {
"+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... | [] | 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.co... | {
"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_... | {
"+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 in... |
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.git... | [
{
"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... | 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_... | {
"+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... |
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.git... | [] | 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_... | {
"+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.git... | [
{
"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-pa... | {
"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_... | {
"+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_... | [] | 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_... | {
"+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_... | [
{
"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_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-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... | 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_... | {
"+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... | [
{
"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_... | {
"+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 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... | [
{
"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(keyfi... | {
"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_... | {
"+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://... | [] | 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 w... | {
"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_... | {
"+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 ... |
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_... | [
{
"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_... | [
{
"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}... | 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_... | {
"+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, ... |
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_... | [
{
"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_... | [
{
"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}... | 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_... | {
"+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... |
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_... | [
{
"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_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-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... | 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_... | {
"+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.git... | [] | 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_... | {
"+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... | [] | 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_... | {
"+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_... | [
{
"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... | 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_... | {
"+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 acro... |
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_... | [] | 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... | 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_... | {
"+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 c... | |
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:... | [] | 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(f... | {
"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_... | {
"+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",
"Than... |
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... | [] | 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_... | {
"+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_... | [] | 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_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-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... | 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_... | {
"+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... |
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_... | [] | 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_... | {
"+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.g... | [
{
"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 th... | {
"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_... | {
"+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 Reque... |
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... | [] | 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_... | {
"+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": "ht... | [] | 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_... | {
"+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://a... | [
{
"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:... | {
"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_... | {
"+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 b... |
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_... | [
{
"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_... | {
"+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": "ht... | [] | 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_... | {
"+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_... | [] | 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_... | [
{
"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}... | 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_... | {
"+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":... | [] | 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` exceptio... | {
"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_... | {
"+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_... | [] | 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_... | {
"+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_... | [] | 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_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-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... | 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_... | {
"+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 ... |
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_... | [] | 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_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-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... | 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_... | {
"+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://a... | [] | 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 pro... | {
"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_... | {
"+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}",
... | [
{
"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... | 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_... | {
"+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... |
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.... | [] | 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 miss... | {
"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_... | {
"+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://... | [] | 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_... | {
"+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... | [] | 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 localho... | {
"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_... | {
"+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 o... |
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://... | [] | 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://... | {
"+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://... | [] | 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://... | {
"+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://... | [] | 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-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_... | {
"+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/ perm... |
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_... | [] | 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... | {
"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_... | {
"+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), G... |
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.... | [] | 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_... | {
"+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://... | [] | 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_... | {
"+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://... | [] | 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_... | {
"+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_... | [] | 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_... | [
{
"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}... | 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_... | {
"+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://... | [] | 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 stu... | {
"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_... | {
"+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://... | [] | 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 al... | {
"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_... | {
"+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, Ide... |
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.gi... | [] | 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_... | {
"+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 tr... |
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://... | [] | 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_... | {
"+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_... | [] | 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_... | {
"+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_... | [
{
"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... | 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_... | [
{
"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}... | 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_... | {
"+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-----\nMIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJK... |
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": ... | [] | 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_... | {
"+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.