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/1629
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1629/labels{/name}
https://api.github.com/repos/psf/requests/issues/1629/comments
https://api.github.com/repos/psf/requests/issues/1629/events
https://github.com/psf/requests/pull/1629
20,099,553
MDExOlB1bGxSZXF1ZXN0ODYyMjI5Mw==
1,629
Made proxy support more clear in README.
{ "avatar_url": "https://avatars.githubusercontent.com/u/238652?v=4", "events_url": "https://api.github.com/users/schlamar/events{/privacy}", "followers_url": "https://api.github.com/users/schlamar/followers", "following_url": "https://api.github.com/users/schlamar/following{/other_user}", "gists_url": "https://api.github.com/users/schlamar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/schlamar", "id": 238652, "login": "schlamar", "node_id": "MDQ6VXNlcjIzODY1Mg==", "organizations_url": "https://api.github.com/users/schlamar/orgs", "received_events_url": "https://api.github.com/users/schlamar/received_events", "repos_url": "https://api.github.com/users/schlamar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/schlamar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/schlamar/subscriptions", "type": "User", "url": "https://api.github.com/users/schlamar", "user_view_type": "public" }
[ { "color": "009800", "default": false, "description": null, "id": 44501218, "name": "Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTIxOA==", "url": "https://api.github.com/repos/psf/requests/labels/Ready%20To%20Merge" } ]
closed
true
null
[]
null
3
2013-09-26T09:45:06Z
2021-09-08T23:06:22Z
2013-09-26T19:01:25Z
CONTRIBUTOR
resolved
see #1622
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1629/reactions" }
https://api.github.com/repos/psf/requests/issues/1629/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1629.diff", "html_url": "https://github.com/psf/requests/pull/1629", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1629.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1629" }
true
[ "This suits me fine, but the README is inside Kenneth's wheelhouse so I'm leaving it up to him. =)\n", "i'm going to use slightly different wording, but thanks!\n", "@kennethreitz Did you forget about this? Can't find a relevant commit ;)\n" ]
https://api.github.com/repos/psf/requests/issues/1628
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1628/labels{/name}
https://api.github.com/repos/psf/requests/issues/1628/comments
https://api.github.com/repos/psf/requests/issues/1628/events
https://github.com/psf/requests/pull/1628
20,099,542
MDExOlB1bGxSZXF1ZXN0ODYyMjI4NA==
1,628
Update host header on redirect.
{ "avatar_url": "https://avatars.githubusercontent.com/u/157797?v=4", "events_url": "https://api.github.com/users/Scorpil/events{/privacy}", "followers_url": "https://api.github.com/users/Scorpil/followers", "following_url": "https://api.github.com/users/Scorpil/following{/other_user}", "gists_url": "https://api.github.com/users/Scorpil/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Scorpil", "id": 157797, "login": "Scorpil", "node_id": "MDQ6VXNlcjE1Nzc5Nw==", "organizations_url": "https://api.github.com/users/Scorpil/orgs", "received_events_url": "https://api.github.com/users/Scorpil/received_events", "repos_url": "https://api.github.com/users/Scorpil/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Scorpil/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Scorpil/subscriptions", "type": "User", "url": "https://api.github.com/users/Scorpil", "user_view_type": "public" }
[ { "color": "009800", "default": false, "description": null, "id": 44501218, "name": "Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTIxOA==", "url": "https://api.github.com/repos/psf/requests/labels/Ready%20To%20Merge" } ]
closed
true
null
[]
null
26
2013-09-26T09:44:58Z
2021-09-08T23:11:05Z
2013-12-05T22:39:12Z
NONE
resolved
If you manually specify HTTP Host header, any redirect to host different from specified will result in TooManyRedirects exception. Example: ``` >>> import requests >>> requests.get('http://reddit.com', headers={"Host": "reddit.com"}) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "requests/api.py", line 55, in get return request('get', url, **kwargs) File "requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "requests/sessions.py", line 357, in request resp = self.send(prep, **send_kwargs) File "requests/sessions.py", line 480, in send history = [resp for resp in gen] if allow_redirects else [] File "requests/sessions.py", line 82, in resolve_redirects raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects) requests.exceptions.TooManyRedirects: Exceeded 30 redirects. ``` After receiving first 301 response, requests library makes a request for url specified in it's "Location" field (in the example above it was http://www.reddit.com/), but it also preserves all headers set by user, so you end up having header "Host: reddit.com" while host is now **www**.reddit.com. Server checks "host" header and responds with 301 again. And now we're in a loop. I'd be glad to add tests for this fix, but httpbin does not support subdomains.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1628/reactions" }
https://api.github.com/repos/psf/requests/issues/1628/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1628.diff", "html_url": "https://github.com/psf/requests/pull/1628", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1628.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1628" }
true
[ "Thanks for this! The Pull Request itself looks good.\n\nBefore we merge this, I want to nail down a few things because it's not clear to me this this fix won't cause people problems. In particular, if you've set `Host` explicitly you clearly feel that Requests is going to choose an incorrect value for that header....
https://api.github.com/repos/psf/requests/issues/1627
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1627/labels{/name}
https://api.github.com/repos/psf/requests/issues/1627/comments
https://api.github.com/repos/psf/requests/issues/1627/events
https://github.com/psf/requests/pull/1627
20,092,700
MDExOlB1bGxSZXF1ZXN0ODYxODY3Mg==
1,627
Fixed #1623. Added 'MD5-sess' algorithm to HTTPDigestAuth
{ "avatar_url": "https://avatars.githubusercontent.com/u/3482660?v=4", "events_url": "https://api.github.com/users/daftshady/events{/privacy}", "followers_url": "https://api.github.com/users/daftshady/followers", "following_url": "https://api.github.com/users/daftshady/following{/other_user}", "gists_url": "https://api.github.com/users/daftshady/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/daftshady", "id": 3482660, "login": "daftshady", "node_id": "MDQ6VXNlcjM0ODI2NjA=", "organizations_url": "https://api.github.com/users/daftshady/orgs", "received_events_url": "https://api.github.com/users/daftshady/received_events", "repos_url": "https://api.github.com/users/daftshady/repos", "site_admin": false, "starred_url": "https://api.github.com/users/daftshady/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/daftshady/subscriptions", "type": "User", "url": "https://api.github.com/users/daftshady", "user_view_type": "public" }
[ { "color": "e11d21", "default": false, "description": null, "id": 44501305, "name": "Not Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTMwNQ==", "url": "https://api.github.com/repos/psf/requests/labels/Not%20Ready%20To%20Merge" } ]
closed
true
null
[]
null
2
2013-09-26T06:46:26Z
2021-09-08T23:05:12Z
2013-10-07T23:22:50Z
CONTRIBUTOR
resolved
See https://github.com/kennethreitz/requests/issues/1623 I've added md5-sess algorithm referencing 'http://en.wikipedia.org/wiki/Digest_access_authentication' Any criticism is welcome :)
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1627/reactions" }
https://api.github.com/repos/psf/requests/issues/1627/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1627.diff", "html_url": "https://github.com/psf/requests/pull/1627", "merged_at": "2013-10-07T23:22:50Z", "patch_url": "https://github.com/psf/requests/pull/1627.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1627" }
true
[ "Thanks for this!\n\nI'm not in the best place to review this, having not contributed to this section of our codebase, but I can point out a few things. @sigmavirus24 would do a better job of reviewing this change.\n\nFirstly, according to RFC 2617, ['If the \"algorithm\" directive's value is \"MD5-sess\", then A1 ...
https://api.github.com/repos/psf/requests/issues/1626
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1626/labels{/name}
https://api.github.com/repos/psf/requests/issues/1626/comments
https://api.github.com/repos/psf/requests/issues/1626/events
https://github.com/psf/requests/issues/1626
20,091,051
MDU6SXNzdWUyMDA5MTA1MQ==
1,626
Cann't run request in crontab
{ "avatar_url": "https://avatars.githubusercontent.com/u/317622?v=4", "events_url": "https://api.github.com/users/massifor/events{/privacy}", "followers_url": "https://api.github.com/users/massifor/followers", "following_url": "https://api.github.com/users/massifor/following{/other_user}", "gists_url": "https://api.github.com/users/massifor/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/massifor", "id": 317622, "login": "massifor", "node_id": "MDQ6VXNlcjMxNzYyMg==", "organizations_url": "https://api.github.com/users/massifor/orgs", "received_events_url": "https://api.github.com/users/massifor/received_events", "repos_url": "https://api.github.com/users/massifor/repos", "site_admin": false, "starred_url": "https://api.github.com/users/massifor/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/massifor/subscriptions", "type": "User", "url": "https://api.github.com/users/massifor", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2013-09-26T05:31:21Z
2021-09-09T00:34:30Z
2013-10-11T11:04:15Z
NONE
resolved
I write a python script for sending post request, and add the script to crontab. The code like this: for i in range(10): requests.post(url, data=data, files=files) When I run the script on shell, it working well. But run it in crontab, the loop just execute once, not 10 times.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1626/reactions" }
https://api.github.com/repos/psf/requests/issues/1626/timeline
null
completed
null
null
false
[ "Thanks for raising this issue!\n\nUh..that doesn't seem at all possible. Can you redirect stdout and stderr to a file and see if anything is being outputted?\n", "@massifor do you have any more details for us?\n", "Closing due to inactivity.\n" ]
https://api.github.com/repos/psf/requests/issues/1625
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1625/labels{/name}
https://api.github.com/repos/psf/requests/issues/1625/comments
https://api.github.com/repos/psf/requests/issues/1625/events
https://github.com/psf/requests/pull/1625
20,045,156
MDExOlB1bGxSZXF1ZXN0ODU5NTAyMA==
1,625
kbutton.org button added to README file to clone requests in Koding cloud.
{ "avatar_url": "https://avatars.githubusercontent.com/u/4077495?v=4", "events_url": "https://api.github.com/users/fka/events{/privacy}", "followers_url": "https://api.github.com/users/fka/followers", "following_url": "https://api.github.com/users/fka/following{/other_user}", "gists_url": "https://api.github.com/users/fka/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fka", "id": 4077495, "login": "fka", "node_id": "MDEyOk9yZ2FuaXphdGlvbjQwNzc0OTU=", "organizations_url": "https://api.github.com/users/fka/orgs", "received_events_url": "https://api.github.com/users/fka/received_events", "repos_url": "https://api.github.com/users/fka/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fka/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fka/subscriptions", "type": "Organization", "url": "https://api.github.com/users/fka", "user_view_type": "public" }
[ { "color": "fbca04", "default": false, "description": null, "id": 44501249, "name": "Needs BDFL Input", "node_id": "MDU6TGFiZWw0NDUwMTI0OQ==", "url": "https://api.github.com/repos/psf/requests/labels/Needs%20BDFL%20Input" } ]
closed
true
null
[]
null
5
2013-09-25T14:33:23Z
2021-09-08T21:01:12Z
2013-09-25T15:34:22Z
NONE
resolved
It adds the kbutton to clone requests repository into Koding easily. You can find the details in http://kbutton.org Thank you so much! :) github: @f twitter: @fkadev Fatih Kadir Akin
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1625/reactions" }
https://api.github.com/repos/psf/requests/issues/1625/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1625.diff", "html_url": "https://github.com/psf/requests/pull/1625", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1625.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1625" }
true
[ "I'm totally +0 on this, it's up to @kennethreitz. =)\n", "@Lukasa Sure. It's just a request. :)\n", "Is this necessary for users to use that site or is this just a way of promoting that site? If the former then I'm +0.5 otherwise -1\n", "@fka This is really cool! I think I'll hold off on it for now, though. ...
https://api.github.com/repos/psf/requests/issues/1624
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1624/labels{/name}
https://api.github.com/repos/psf/requests/issues/1624/comments
https://api.github.com/repos/psf/requests/issues/1624/events
https://github.com/psf/requests/issues/1624
20,039,390
MDU6SXNzdWUyMDAzOTM5MA==
1,624
bad authentication with Twitter and update_with_media
{ "avatar_url": "https://avatars.githubusercontent.com/u/752122?v=4", "events_url": "https://api.github.com/users/monocasual/events{/privacy}", "followers_url": "https://api.github.com/users/monocasual/followers", "following_url": "https://api.github.com/users/monocasual/following{/other_user}", "gists_url": "https://api.github.com/users/monocasual/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/monocasual", "id": 752122, "login": "monocasual", "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1MjEyMg==", "organizations_url": "https://api.github.com/users/monocasual/orgs", "received_events_url": "https://api.github.com/users/monocasual/received_events", "repos_url": "https://api.github.com/users/monocasual/repos", "site_admin": false, "starred_url": "https://api.github.com/users/monocasual/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/monocasual/subscriptions", "type": "Organization", "url": "https://api.github.com/users/monocasual", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2013-09-25T12:51:17Z
2021-09-09T01:22:20Z
2013-09-25T14:54:17Z
NONE
resolved
Hi guys, thank you for this great library! I'm trying to publish a tweet with a picture in it, by calling update_with_media, without success. This is my code so far: ``` python import requests_oauthlib import requests auth = requests_oauthlib.OAuth1(YOUR_APP_KEY, YOUR_APP_SECRET, USER_OAUTH_TOKEN, USER_OAUTH_TOKEN_SECRET) req = requests.request('POST', 'https://api.twitter.com/1.1/statuses/update_with_media.json', data={'status':'test'}, files={'media[]' : open('/tmp/tmp.jpg', 'rb').read()}) print req.json() # error! ``` and the result is: ``` {u'errors': [{u'message': u'Bad Authentication data', u'code': 215}]} ``` That's not true, because I can call any other API's end point, both via POST and GET. For example, I can tweet a text-only message: ``` python import requests_oauthlib import requests auth = requests_oauthlib.OAuth1(YOUR_APP_KEY, YOUR_APP_SECRET, USER_OAUTH_TOKEN, USER_OAUTH_TOKEN_SECRET) req = requests.request('POST', 'https://api.twitter.com/1.1/statuses/update.json', data={'status':'test'}) print req.json() # ok! ``` This is what I found reading some Twitter docs and support pages: ``` Parameters being sent to the API that are not the oauth_* named parameters do not become part of the OAuth signature base string when the HTTP method being used is POST but the post body is not of the "Content-Type: x-www-form-urlencoded" variety. Since you're using multipart POST, you're not sending a POST body with the Content-Type set as x-www-form-urlencoded and it's therefore erroneous to include parameters like "status" or "media[]" in the OAuth signature base string. Some implementations of OAuth do not account for this gotcha. ``` I sense there's something wrong with the headers or the body: maybe a missing parameter in my request() call? Requests version: 1.2.3 Python version: 2.7.3
{ "avatar_url": "https://avatars.githubusercontent.com/u/752122?v=4", "events_url": "https://api.github.com/users/monocasual/events{/privacy}", "followers_url": "https://api.github.com/users/monocasual/followers", "following_url": "https://api.github.com/users/monocasual/following{/other_user}", "gists_url": "https://api.github.com/users/monocasual/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/monocasual", "id": 752122, "login": "monocasual", "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1MjEyMg==", "organizations_url": "https://api.github.com/users/monocasual/orgs", "received_events_url": "https://api.github.com/users/monocasual/received_events", "repos_url": "https://api.github.com/users/monocasual/repos", "site_admin": false, "starred_url": "https://api.github.com/users/monocasual/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/monocasual/subscriptions", "type": "Organization", "url": "https://api.github.com/users/monocasual", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1624/reactions" }
https://api.github.com/repos/psf/requests/issues/1624/timeline
null
completed
null
null
false
[ "One thing I noticed is that you're never using the auth instance you create. Is this just a mistake in your example code or are you actually never using it? On top of that, OAuth is only supposed to sign certain kinds of data if I remember correctly so and multipart form-data is not one of those kinds.\n\nCan I as...
https://api.github.com/repos/psf/requests/issues/1623
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1623/labels{/name}
https://api.github.com/repos/psf/requests/issues/1623/comments
https://api.github.com/repos/psf/requests/issues/1623/events
https://github.com/psf/requests/issues/1623
20,030,222
MDU6SXNzdWUyMDAzMDIyMg==
1,623
Use MD5-sess authentication got "UnboundLocalError: local variable 'hash_utf8' referenced before assignment"
{ "avatar_url": "https://avatars.githubusercontent.com/u/537911?v=4", "events_url": "https://api.github.com/users/linuxhngg/events{/privacy}", "followers_url": "https://api.github.com/users/linuxhngg/followers", "following_url": "https://api.github.com/users/linuxhngg/following{/other_user}", "gists_url": "https://api.github.com/users/linuxhngg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/linuxhngg", "id": 537911, "login": "linuxhngg", "node_id": "MDQ6VXNlcjUzNzkxMQ==", "organizations_url": "https://api.github.com/users/linuxhngg/orgs", "received_events_url": "https://api.github.com/users/linuxhngg/received_events", "repos_url": "https://api.github.com/users/linuxhngg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/linuxhngg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/linuxhngg/subscriptions", "type": "User", "url": "https://api.github.com/users/linuxhngg", "user_view_type": "public" }
[ { "color": "02e10c", "default": false, "description": null, "id": 76800, "name": "Feature Request", "node_id": "MDU6TGFiZWw3NjgwMA==", "url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request" }, { "color": "0b02e1", "default": false, "description": null...
closed
true
null
[]
null
7
2013-09-25T09:13:46Z
2021-09-09T01:22:21Z
2013-09-26T07:54:08Z
NONE
resolved
Error Message: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/api.py", line 55, in get return request('get', url, *_kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, *_kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 360, in request resp = self.send(prep, *_send_kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 468, in send r = dispatch_hook('response', hooks, r, *_kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/hooks.py", line 41, in dispatch_hook _hook_data = hook(hook_data, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/auth.py", line 163, in handle_401 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/auth.py", line 96, in build_digest_header KD = lambda s, d: hash_utf8("%s:%s" % (s, d)) UnboundLocalError: local variable 'hash_utf8' referenced before assignment
{ "avatar_url": "https://avatars.githubusercontent.com/u/537911?v=4", "events_url": "https://api.github.com/users/linuxhngg/events{/privacy}", "followers_url": "https://api.github.com/users/linuxhngg/followers", "following_url": "https://api.github.com/users/linuxhngg/following{/other_user}", "gists_url": "https://api.github.com/users/linuxhngg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/linuxhngg", "id": 537911, "login": "linuxhngg", "node_id": "MDQ6VXNlcjUzNzkxMQ==", "organizations_url": "https://api.github.com/users/linuxhngg/orgs", "received_events_url": "https://api.github.com/users/linuxhngg/received_events", "repos_url": "https://api.github.com/users/linuxhngg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/linuxhngg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/linuxhngg/subscriptions", "type": "User", "url": "https://api.github.com/users/linuxhngg", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1623/reactions" }
https://api.github.com/repos/psf/requests/issues/1623/timeline
null
completed
null
null
false
[ "I just saw this is not implemented yet, so please ignore.\n", "I don't think we should ignore this, I think we should fix it. =) I'll try to take a run at it sometime soon.\n", "I think it's working correctly when i tested with md5.\nIn my opinion, that UnboundLocalError only happens when 'www-authenticate' he...
https://api.github.com/repos/psf/requests/issues/1622
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1622/labels{/name}
https://api.github.com/repos/psf/requests/issues/1622/comments
https://api.github.com/repos/psf/requests/issues/1622/events
https://github.com/psf/requests/issues/1622
20,020,060
MDU6SXNzdWUyMDAyMDA2MA==
1,622
Requests 2.0.0 breaks SSL proxying via https_port of Squid.
{ "avatar_url": "https://avatars.githubusercontent.com/u/507637?v=4", "events_url": "https://api.github.com/users/GrahamDumpleton/events{/privacy}", "followers_url": "https://api.github.com/users/GrahamDumpleton/followers", "following_url": "https://api.github.com/users/GrahamDumpleton/following{/other_user}", "gists_url": "https://api.github.com/users/GrahamDumpleton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/GrahamDumpleton", "id": 507637, "login": "GrahamDumpleton", "node_id": "MDQ6VXNlcjUwNzYzNw==", "organizations_url": "https://api.github.com/users/GrahamDumpleton/orgs", "received_events_url": "https://api.github.com/users/GrahamDumpleton/received_events", "repos_url": "https://api.github.com/users/GrahamDumpleton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/GrahamDumpleton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GrahamDumpleton/subscriptions", "type": "User", "url": "https://api.github.com/users/GrahamDumpleton", "user_view_type": "public" }
[ { "color": "e10c02", "default": false, "description": null, "id": 117744, "name": "Bug", "node_id": "MDU6TGFiZWwxMTc3NDQ=", "url": "https://api.github.com/repos/psf/requests/labels/Bug" }, { "color": "f7c6c7", "default": false, "description": null, "id": 167537670, ...
closed
true
null
[]
null
40
2013-09-25T03:16:36Z
2021-09-08T23:06:05Z
2015-01-19T09:25:49Z
CONTRIBUTOR
resolved
For a Squid configuration of: ``` http_port 3128 https_port 3129 cert=/usr/local/opt/squid/etc/ssl/squid.crt key=/usr/local/opt/squid/etc/ssl/squid.key ``` And test names where: The 'http_port' annotation indicates whether Squid HTTP port was used. The 'https_port' annotation indicates whether Squid HTTPS port was used. The 'scheme' annotation in test names refers to whether the scheme was part of proxy definition in proxies dictionary passed to requests ``` no_scheme --> { 'https': 'localhost:3129' } http_scheme --> { 'https': 'http://localhost:3129' } https_scheme --> { 'https': 'https://localhost:3129' } ``` Results for different requests versions are: ``` requests 0.9.3 1.2.3 2.0.0 no_proxy PASS PASS PASS http_port_no_scheme PASS FAIL FAIL http_port_with_http_scheme PASS PASS PASS http_port_with_https_scheme FAIL FAIL PASS https_port_no_scheme FAIL PASS FAIL https_port_with_http_scheme FAIL FAIL FAIL https_port_with_https_scheme PASS PASS FAIL ``` The problem one I am concerned about is https_port_with_https_scheme as this no longer works any more. I fully realise that http_port_with_https_scheme now works and that this presumably would use CONNECT as is the safest option, but we would have to notify all customers relying on https_port_with_https_scheme that what they used before no longer works and they will need to change their configuration they have. If they don't heed that instruction, then we will start see failed connections and complaints. BTW, it would be really good if the documentation explained the differences between all the combinations, what mechanisms they use and what represents best practice for being the safest/best to use. Test used for https_port_with_https_scheme is: ``` import unittest import requests PROXY_HOST = 'localhost' PROXY_HTTP_PORT = 3128 PROXY_HTTPS_PORT = 3129 REMOTE_URL = 'https://pypi.python.org/pypi' class TestProxyingOfSSLRequests(unittest.TestCase): def test_proxy_via_squid_https_port_with_https_scheme(self): proxies = { 'https': 'https://%s:%s' % (PROXY_HOST, PROXY_HTTPS_PORT) } response = requests.get(REMOTE_URL, proxies=proxies) self.assertTrue(len(response.content) != 0) if __name__ == '__main__': unittest.main() ``` For full set of tests and results see: - https://dl.dropboxusercontent.com/u/22571016/requests-ssl-proxy.tar Cheat sheet for setting up Squid on MacOS X with SSL support from our own cheat sheet is: To test proxying via SSL, the easiest thing to do is install 'squid' via 'brew' under MacOSX, but avoid the standard recipe and instead use: ``` brew install https://raw.github.com/mxcl/homebrew/a7bf4c381f4e38c24fb23493a92851ea8339493e/Library/Formula/squid.rb ``` This will install 'squid' with SSL support. You can then generate a self signed certificate to use: ``` cd /usr/local/opt/squid/etc mkdir ssl cd ssl openssl genrsa -des3 -out squid.key 1024 openssl req -new -key squid.key -out squid.csr cp squid.key squid.key.org openssl rsa -in squid.key.org -out squid.key openssl x509 -req -days 365 -in squid.csr -signkey squid.key -out squid.crt ``` Then edit the the squid configuration file at '/usr/local/opt/squid/etc/squid.conf', adding: ``` https_port 3129 cert=/usr/local/opt/squid/etc/ssl/squid.crt key=/usr/local/opt/squid/etc/ssl/squid.key ``` Then use configuration of: ``` proxy_host = localhost proxy_port = 3129 ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1622/reactions" }
https://api.github.com/repos/psf/requests/issues/1622/timeline
null
completed
null
null
false
[ "Unless someone else beats me to it, I'll probably take a look at duplicating this weekend. I have pretty much no context on the proxy work though so if anyone with some background on that wants to pair on this let me know.\n", "To explain more about what has been broken. Consider the following;\n\nrequests - 1.2...
https://api.github.com/repos/psf/requests/issues/1621
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1621/labels{/name}
https://api.github.com/repos/psf/requests/issues/1621/comments
https://api.github.com/repos/psf/requests/issues/1621/events
https://github.com/psf/requests/pull/1621
20,017,801
MDExOlB1bGxSZXF1ZXN0ODU4MDMxNA==
1,621
Added migrating to 2.x docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/185043?v=4", "events_url": "https://api.github.com/users/davidfischer/events{/privacy}", "followers_url": "https://api.github.com/users/davidfischer/followers", "following_url": "https://api.github.com/users/davidfischer/following{/other_user}", "gists_url": "https://api.github.com/users/davidfischer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/davidfischer", "id": 185043, "login": "davidfischer", "node_id": "MDQ6VXNlcjE4NTA0Mw==", "organizations_url": "https://api.github.com/users/davidfischer/orgs", "received_events_url": "https://api.github.com/users/davidfischer/received_events", "repos_url": "https://api.github.com/users/davidfischer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/davidfischer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/davidfischer/subscriptions", "type": "User", "url": "https://api.github.com/users/davidfischer", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2013-09-25T01:42:32Z
2021-09-08T21:01:11Z
2013-09-25T02:02:18Z
CONTRIBUTOR
resolved
In a similar vein to the migrating to 1.x docs, this section details changes that can break existing code in order to ease the migration to 2.x. I didn't talk about any of the added APIs since those don't really break existing code. Compared with the last major release, there's not much to say. This is largely based on @Lukasa's [blog post](http://lukasa.co.uk/2013/09/Requests_20/) and the [changelog](https://github.com/kennethreitz/requests/blob/master/HISTORY.rst). I did not know how folks feel about linking to a blog post from the docs so I didn't add the link.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1621/reactions" }
https://api.github.com/repos/psf/requests/issues/1621/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1621.diff", "html_url": "https://github.com/psf/requests/pull/1621", "merged_at": "2013-09-25T02:02:18Z", "patch_url": "https://github.com/psf/requests/pull/1621.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1621" }
true
[ ":cake:\n", "@davidfischer I think the link would be fantastic, actually. Want to add it?\n", "@kennethreitz linked!\n", ":100: \n", "This is awesome @davidfischer, thanks! =D :cake:\n" ]
https://api.github.com/repos/psf/requests/issues/1620
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1620/labels{/name}
https://api.github.com/repos/psf/requests/issues/1620/comments
https://api.github.com/repos/psf/requests/issues/1620/events
https://github.com/psf/requests/issues/1620
20,006,697
MDU6SXNzdWUyMDAwNjY5Nw==
1,620
requests doesn't fill CookieJar
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2013-09-24T21:15:35Z
2021-09-09T01:22:22Z
2013-09-24T21:21:20Z
NONE
resolved
First of all, i cannot use session to manage cookies across many requests. Based on this answer http://stackoverflow.com/questions/6878418/putting-a-cookie-in-a-cookiejar, requests should fill CookieJar object jar = cookielib.CookieJar() r = requests.get(URL, cookies=jar) But it doesn't work for me. Is this a bug or not? > jar = cookielib.CookieJar() > r = requests.get('http://192.168.226.141/test.php', cookies=jar) > r.cookies > <<class 'requests.cookies.RequestsCookieJar'>[Cookie(version=0, name='test1', value='1', port=None, port_specified=False, domain='192.168.226.141', domain_specified=False, domain_initial_dot=False, path='/', path_specified=False, secure=False, expires=1380060661, discard=False, comment=None, comment_url=None, rest={}, rfc2109=False)]> > jar > <cookielib.CookieJar[]>
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1620/reactions" }
https://api.github.com/repos/psf/requests/issues/1620/timeline
null
completed
null
null
false
[ "Why can't you use a session?\n", "To answer the question:\n\nThat answer is two years old. Today marked the release of the second major API breaking version release. Answers from two years prior are not even remotely applicable to today's versions of requests. In other words, no that is not still possible and it...
https://api.github.com/repos/psf/requests/issues/1619
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1619/labels{/name}
https://api.github.com/repos/psf/requests/issues/1619/comments
https://api.github.com/repos/psf/requests/issues/1619/events
https://github.com/psf/requests/pull/1619
19,996,506
MDExOlB1bGxSZXF1ZXN0ODU2ODU3Mg==
1,619
Up to date CL.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
null
[]
null
0
2013-09-24T18:27:07Z
2021-09-08T21:01:12Z
2013-09-24T18:31:13Z
MEMBER
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1619/reactions" }
https://api.github.com/repos/psf/requests/issues/1619/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1619.diff", "html_url": "https://github.com/psf/requests/pull/1619", "merged_at": "2013-09-24T18:31:13Z", "patch_url": "https://github.com/psf/requests/pull/1619.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1619" }
true
[]
https://api.github.com/repos/psf/requests/issues/1618
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1618/labels{/name}
https://api.github.com/repos/psf/requests/issues/1618/comments
https://api.github.com/repos/psf/requests/issues/1618/events
https://github.com/psf/requests/issues/1618
19,965,833
MDU6SXNzdWUxOTk2NTgzMw==
1,618
Encountering off-host redirects using allow_redirects=True doesn't handle authentication sanely
{ "avatar_url": "https://avatars.githubusercontent.com/u/132824?v=4", "events_url": "https://api.github.com/users/smokey42/events{/privacy}", "followers_url": "https://api.github.com/users/smokey42/followers", "following_url": "https://api.github.com/users/smokey42/following{/other_user}", "gists_url": "https://api.github.com/users/smokey42/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smokey42", "id": 132824, "login": "smokey42", "node_id": "MDQ6VXNlcjEzMjgyNA==", "organizations_url": "https://api.github.com/users/smokey42/orgs", "received_events_url": "https://api.github.com/users/smokey42/received_events", "repos_url": "https://api.github.com/users/smokey42/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smokey42/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smokey42/subscriptions", "type": "User", "url": "https://api.github.com/users/smokey42", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2013-09-24T09:24:12Z
2021-09-09T01:22:22Z
2013-09-24T17:50:21Z
NONE
resolved
Problem: A host which requires authentication redirects off-hostname. Using `allow_redirects=True` will then send the target the current authentication headers. This is almost certainly wrong behaviour. Probably a solution: - Simple: Just reset the authentication when encountering an off-hostname redirect. - Complex: Introduce a dict of authentication objects keyed on hostname. May break or introduce new API functionality though.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1618/reactions" }
https://api.github.com/repos/psf/requests/issues/1618/timeline
null
completed
null
null
false
[ "Thanks for raising this issue!\n\nI seem to recall we discussed this in the past, and decided that what we do here is a user-level issue. Some users may absolutely want their authentication headers to redirect off-host. Does that sound right to you @kennethreitz?\n", "Ah, here we go. Original discussion on #975,...
https://api.github.com/repos/psf/requests/issues/1617
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1617/labels{/name}
https://api.github.com/repos/psf/requests/issues/1617/comments
https://api.github.com/repos/psf/requests/issues/1617/events
https://github.com/psf/requests/issues/1617
19,952,471
MDU6SXNzdWUxOTk1MjQ3MQ==
1,617
Inconsistent ConnectionError Behavior
{ "avatar_url": "https://avatars.githubusercontent.com/u/1452980?v=4", "events_url": "https://api.github.com/users/laruellef/events{/privacy}", "followers_url": "https://api.github.com/users/laruellef/followers", "following_url": "https://api.github.com/users/laruellef/following{/other_user}", "gists_url": "https://api.github.com/users/laruellef/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/laruellef", "id": 1452980, "login": "laruellef", "node_id": "MDQ6VXNlcjE0NTI5ODA=", "organizations_url": "https://api.github.com/users/laruellef/orgs", "received_events_url": "https://api.github.com/users/laruellef/received_events", "repos_url": "https://api.github.com/users/laruellef/repos", "site_admin": false, "starred_url": "https://api.github.com/users/laruellef/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/laruellef/subscriptions", "type": "User", "url": "https://api.github.com/users/laruellef", "user_view_type": "public" }
[]
closed
true
null
[]
null
10
2013-09-24T01:52:34Z
2015-03-10T08:12:42Z
2013-09-24T02:45:49Z
NONE
null
Looking for guidance to solve the following problem: On dev env / MacOSX, the following: ``` python url = "http://insurance-guide.netfirms.com" response = requests.get(url, timeout=90, verify=False, stream=True) ``` results in: ``` python ConnectionError: HTTPConnectionPool(host='insurance-guide.netfirms.com', port=80): Max retries exceeded with url: / (Caused by <class 'socket.gaierror'>: [Errno 8] nodename nor servname provided, or not known) ``` on prod env / Centos 6, the exact same code never timesout and just stays stuck forever... both env are python 2.7.5 and requests 1.2.3 what could be the cause of the diff behavior on prod vs dev?
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1617/reactions" }
https://api.github.com/repos/psf/requests/issues/1617/timeline
null
completed
null
null
false
[ "It should be noted that the `ConnectionError` is raised without the parameters you specify:\n\n``` python\nresponse = requests.get('http://insurance-guide.netfirms.com')\n```\n\nproduces this exception as reliably as your example does. Oddly enough, I get a different reason for the exception though:\n\n```\nreques...
https://api.github.com/repos/psf/requests/issues/1616
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1616/labels{/name}
https://api.github.com/repos/psf/requests/issues/1616/comments
https://api.github.com/repos/psf/requests/issues/1616/events
https://github.com/psf/requests/issues/1616
19,857,212
MDU6SXNzdWUxOTg1NzIxMg==
1,616
Incorrect key types in request headers (python3)
{ "avatar_url": "https://avatars.githubusercontent.com/u/165325?v=4", "events_url": "https://api.github.com/users/abn/events{/privacy}", "followers_url": "https://api.github.com/users/abn/followers", "following_url": "https://api.github.com/users/abn/following{/other_user}", "gists_url": "https://api.github.com/users/abn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abn", "id": 165325, "login": "abn", "node_id": "MDQ6VXNlcjE2NTMyNQ==", "organizations_url": "https://api.github.com/users/abn/orgs", "received_events_url": "https://api.github.com/users/abn/received_events", "repos_url": "https://api.github.com/users/abn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abn/subscriptions", "type": "User", "url": "https://api.github.com/users/abn", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2013-09-21T14:21:04Z
2021-09-09T01:22:25Z
2013-09-21T14:31:31Z
NONE
resolved
Request header keys are being encoded and then checked for later. In python 3 this is causing issues. In an example use case, if `Content-Type` is explicitly set, when making a post request, you end up getting both the user-set type and the default type, eg: `application/x-www-form-urlencoded`. https://github.com/kennethreitz/requests/blob/master/requests/models.py#L364 ``` py headers = dict((name.encode('ascii'), value) for name, value in headers.items()) ``` https://github.com/kennethreitz/requests/blob/master/requests/models.py#L417 ``` py # Add content-type if it wasn't explicitly provided. if (content_type) and (not 'content-type' in self.headers): self.headers['Content-Type'] = content_type ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1616/reactions" }
https://api.github.com/repos/psf/requests/issues/1616/timeline
null
completed
null
null
false
[ "Thanks for raising this issue!\n\nThis is a well known bug. We've had a fix for this for a very long time (more than 7 months), which has been scheduled for our next major release (2.0). This is planned to be our next release. In the meantime, the current `2.0` branch includes that change and many others. =)\n\nAd...
https://api.github.com/repos/psf/requests/issues/1615
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1615/labels{/name}
https://api.github.com/repos/psf/requests/issues/1615/comments
https://api.github.com/repos/psf/requests/issues/1615/events
https://github.com/psf/requests/issues/1615
19,856,265
MDU6SXNzdWUxOTg1NjI2NQ==
1,615
ConnectionError on timeout=0
{ "avatar_url": "https://avatars.githubusercontent.com/u/1592927?v=4", "events_url": "https://api.github.com/users/Damgaard/events{/privacy}", "followers_url": "https://api.github.com/users/Damgaard/followers", "following_url": "https://api.github.com/users/Damgaard/following{/other_user}", "gists_url": "https://api.github.com/users/Damgaard/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Damgaard", "id": 1592927, "login": "Damgaard", "node_id": "MDQ6VXNlcjE1OTI5Mjc=", "organizations_url": "https://api.github.com/users/Damgaard/orgs", "received_events_url": "https://api.github.com/users/Damgaard/received_events", "repos_url": "https://api.github.com/users/Damgaard/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Damgaard/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Damgaard/subscriptions", "type": "User", "url": "https://api.github.com/users/Damgaard", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2013-09-21T13:02:18Z
2021-09-09T01:22:23Z
2013-09-24T17:49:47Z
CONTRIBUTOR
resolved
I get the following exception when doing a request with `timeout=0`. ``` bash >>> requests.get('http://github.com', timeout=0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 55, in get return request('get', url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 335, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 438, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 327, in send raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPConnectionPool(host='github.com', port=80): Max retries exceeded with url: / (Caused by <class 'socket.error'>: [Errno 115] Operation now in progress) ``` I don't see any mention of this in the issues. Shouldn't the expected behavior of this be equivalent to `timeout=None`? I'm running `requests` version 1.2.3 and python 2.7.3
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1615/reactions" }
https://api.github.com/repos/psf/requests/issues/1615/timeline
null
completed
null
null
false
[ "Thanks for raising this issue!\n\nI don't think I agree with your assessment of what the 'expected behaviour' of this should be. You've set a timeout of zero seconds. That implies that the connection process should time out after zero seconds, e.g. immediately.\n\nI'm a bit mixed here. On the one hand, we're doing...
https://api.github.com/repos/psf/requests/issues/1614
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1614/labels{/name}
https://api.github.com/repos/psf/requests/issues/1614/comments
https://api.github.com/repos/psf/requests/issues/1614/events
https://github.com/psf/requests/pull/1614
19,856,069
MDExOlB1bGxSZXF1ZXN0ODUwNDExNQ==
1,614
Making requests PEP 302 compatible which makes its zip_safe for .egg distrubution
{ "avatar_url": "https://avatars.githubusercontent.com/u/735015?v=4", "events_url": "https://api.github.com/users/rocktavious/events{/privacy}", "followers_url": "https://api.github.com/users/rocktavious/followers", "following_url": "https://api.github.com/users/rocktavious/following{/other_user}", "gists_url": "https://api.github.com/users/rocktavious/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rocktavious", "id": 735015, "login": "rocktavious", "node_id": "MDQ6VXNlcjczNTAxNQ==", "organizations_url": "https://api.github.com/users/rocktavious/orgs", "received_events_url": "https://api.github.com/users/rocktavious/received_events", "repos_url": "https://api.github.com/users/rocktavious/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rocktavious/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rocktavious/subscriptions", "type": "User", "url": "https://api.github.com/users/rocktavious", "user_view_type": "public" }
[ { "color": "fbca04", "default": false, "description": null, "id": 44501249, "name": "Needs BDFL Input", "node_id": "MDU6TGFiZWw0NDUwMTI0OQ==", "url": "https://api.github.com/repos/psf/requests/labels/Needs%20BDFL%20Input" }, { "color": "e11d21", "default": false, "descrip...
closed
true
null
[]
null
8
2013-09-21T12:41:51Z
2021-09-08T23:06:28Z
2013-09-24T17:40:52Z
NONE
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1614/reactions" }
https://api.github.com/repos/psf/requests/issues/1614/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1614.diff", "html_url": "https://github.com/psf/requests/pull/1614", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1614.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1614" }
true
[ "Thanks for this!\n\nI don't know how much Kenneth will want/not want this. However, in its current form this PR can't be accepted. The reason is that our `requirements.txt` file actually defines our _testing_ requirements. For actual use, Requests has _no_ external dependencies. This is important to us, which mean...
https://api.github.com/repos/psf/requests/issues/1613
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1613/labels{/name}
https://api.github.com/repos/psf/requests/issues/1613/comments
https://api.github.com/repos/psf/requests/issues/1613/events
https://github.com/psf/requests/pull/1613
19,832,562
MDExOlB1bGxSZXF1ZXN0ODQ5MTgzMQ==
1,613
Update urllib3 to b4391c1
{ "avatar_url": "https://avatars.githubusercontent.com/u/69920?v=4", "events_url": "https://api.github.com/users/JshWright/events{/privacy}", "followers_url": "https://api.github.com/users/JshWright/followers", "following_url": "https://api.github.com/users/JshWright/following{/other_user}", "gists_url": "https://api.github.com/users/JshWright/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JshWright", "id": 69920, "login": "JshWright", "node_id": "MDQ6VXNlcjY5OTIw", "organizations_url": "https://api.github.com/users/JshWright/orgs", "received_events_url": "https://api.github.com/users/JshWright/received_events", "repos_url": "https://api.github.com/users/JshWright/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JshWright/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JshWright/subscriptions", "type": "User", "url": "https://api.github.com/users/JshWright", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-20T18:18:14Z
2021-09-08T23:06:28Z
2013-09-20T20:05:17Z
NONE
resolved
urllib3 recently added support for https proxies (https://github.com/shazow/urllib3/pull/170). This has been a blocking issue for our us of the requests library. All tests pass, and no backwards incompatible changes are noted in the urllib3 docs.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1613/reactions" }
https://api.github.com/repos/psf/requests/issues/1613/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1613.diff", "html_url": "https://github.com/psf/requests/pull/1613", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1613.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1613" }
true
[ "Thanks for raising this!\n\nThese changes are actually already available in the `2.0` branch. We're just as excited to have them merged as you are! The 2.0 release is intended to be our next release, but if you can't wait until then you should feel free to use Requests as it stands in the `2.0` branch. We've got a...
https://api.github.com/repos/psf/requests/issues/1612
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1612/labels{/name}
https://api.github.com/repos/psf/requests/issues/1612/comments
https://api.github.com/repos/psf/requests/issues/1612/events
https://github.com/psf/requests/pull/1612
19,823,340
MDExOlB1bGxSZXF1ZXN0ODQ4NjQ0Nw==
1,612
Multi-part file encoding requires types that allow buffer interface
{ "avatar_url": "https://avatars.githubusercontent.com/u/2776090?v=4", "events_url": "https://api.github.com/users/sanmayaj/events{/privacy}", "followers_url": "https://api.github.com/users/sanmayaj/followers", "following_url": "https://api.github.com/users/sanmayaj/following{/other_user}", "gists_url": "https://api.github.com/users/sanmayaj/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sanmayaj", "id": 2776090, "login": "sanmayaj", "node_id": "MDQ6VXNlcjI3NzYwOTA=", "organizations_url": "https://api.github.com/users/sanmayaj/orgs", "received_events_url": "https://api.github.com/users/sanmayaj/received_events", "repos_url": "https://api.github.com/users/sanmayaj/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sanmayaj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sanmayaj/subscriptions", "type": "User", "url": "https://api.github.com/users/sanmayaj", "user_view_type": "public" }
[ { "color": "fbca04", "default": false, "description": null, "id": 44501249, "name": "Needs BDFL Input", "node_id": "MDU6TGFiZWw0NDUwMTI0OQ==", "url": "https://api.github.com/repos/psf/requests/labels/Needs%20BDFL%20Input" }, { "color": "eb6420", "default": false, "descrip...
closed
true
null
[]
null
3
2013-09-20T15:19:51Z
2021-09-08T23:06:19Z
2013-09-24T17:44:28Z
NONE
resolved
"TypeError: 'long' does not have the buffer interface" fixed for multi-part file encoding.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1612/reactions" }
https://api.github.com/repos/psf/requests/issues/1612/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1612.diff", "html_url": "https://github.com/psf/requests/pull/1612", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1612.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1612" }
true
[ "Your tests are failing on Python 3. Could you fix them please?\n", "@sanmayaj do I understand correctly that you expect requests to string-ify everything you send in? Why can you not do this yourself on your inputs?\n\n> Be liberal in what you receive and conservative in what you send.\n\nYou should be assuming ...
https://api.github.com/repos/psf/requests/issues/1611
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1611/labels{/name}
https://api.github.com/repos/psf/requests/issues/1611/comments
https://api.github.com/repos/psf/requests/issues/1611/events
https://github.com/psf/requests/issues/1611
19,760,284
MDU6SXNzdWUxOTc2MDI4NA==
1,611
Specifying the source_address parameter for HTTP and HTTPS connections.
{ "avatar_url": "https://avatars.githubusercontent.com/u/668627?v=4", "events_url": "https://api.github.com/users/standeck/events{/privacy}", "followers_url": "https://api.github.com/users/standeck/followers", "following_url": "https://api.github.com/users/standeck/following{/other_user}", "gists_url": "https://api.github.com/users/standeck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/standeck", "id": 668627, "login": "standeck", "node_id": "MDQ6VXNlcjY2ODYyNw==", "organizations_url": "https://api.github.com/users/standeck/orgs", "received_events_url": "https://api.github.com/users/standeck/received_events", "repos_url": "https://api.github.com/users/standeck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/standeck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/standeck/subscriptions", "type": "User", "url": "https://api.github.com/users/standeck", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2013-09-19T15:05:08Z
2021-09-09T01:22:25Z
2013-09-20T21:00:19Z
NONE
resolved
Add a possibility specify the source_address parameter. HTTPConnection and HTTPSConnection support this parameter since Python 2.7 and Python 3.2. This is necessary when one server has multiple ip.
{ "avatar_url": "https://avatars.githubusercontent.com/u/668627?v=4", "events_url": "https://api.github.com/users/standeck/events{/privacy}", "followers_url": "https://api.github.com/users/standeck/followers", "following_url": "https://api.github.com/users/standeck/following{/other_user}", "gists_url": "https://api.github.com/users/standeck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/standeck", "id": 668627, "login": "standeck", "node_id": "MDQ6VXNlcjY2ODYyNw==", "organizations_url": "https://api.github.com/users/standeck/orgs", "received_events_url": "https://api.github.com/users/standeck/received_events", "repos_url": "https://api.github.com/users/standeck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/standeck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/standeck/subscriptions", "type": "User", "url": "https://api.github.com/users/standeck", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1611/reactions" }
https://api.github.com/repos/psf/requests/issues/1611/timeline
null
completed
null
null
false
[ "Thanks for raising this issue!\n\nThere's no particular interest in providing this parameter on the functional API at this time. By and large we expect that this behaviour will be controlled via [Transport Adapters](http://docs.python-requests.org/en/latest/user/advanced/#transport-adapters). For an example of how...
https://api.github.com/repos/psf/requests/issues/1610
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1610/labels{/name}
https://api.github.com/repos/psf/requests/issues/1610/comments
https://api.github.com/repos/psf/requests/issues/1610/events
https://github.com/psf/requests/issues/1610
19,755,904
MDU6SXNzdWUxOTc1NTkwNA==
1,610
Add copyright header to each source files to pass Debian's licensecheck.pl script
{ "avatar_url": "https://avatars.githubusercontent.com/u/75011?v=4", "events_url": "https://api.github.com/users/maruel/events{/privacy}", "followers_url": "https://api.github.com/users/maruel/followers", "following_url": "https://api.github.com/users/maruel/following{/other_user}", "gists_url": "https://api.github.com/users/maruel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maruel", "id": 75011, "login": "maruel", "node_id": "MDQ6VXNlcjc1MDEx", "organizations_url": "https://api.github.com/users/maruel/orgs", "received_events_url": "https://api.github.com/users/maruel/received_events", "repos_url": "https://api.github.com/users/maruel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maruel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maruel/subscriptions", "type": "User", "url": "https://api.github.com/users/maruel", "user_view_type": "public" }
[ { "color": "fbca04", "default": false, "description": null, "id": 44501249, "name": "Needs BDFL Input", "node_id": "MDU6TGFiZWw0NDUwMTI0OQ==", "url": "https://api.github.com/repos/psf/requests/labels/Needs%20BDFL%20Input" } ]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}...
null
3
2013-09-19T13:55:23Z
2021-09-09T01:22:23Z
2013-09-24T17:51:02Z
NONE
resolved
It is a side effect of using requests in the Chromium project. We have over 100 third party libraries in the codebase. While we audit all of their licenses, it's also helpful for Open Source Distributions like Debian and others to at least semi-automatically see what licenses apply to our 100+ libraries. For a team of volunteers this is a pretty big task, and having license headers in each file is helpful. Note that it doesn't need to be a full text of the license. For example in Chromium project we use this: // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. Still, it's preferred to use a full header if possible to help avoid any ambiguity. When people copy your library around, and bundle it as part of other third party project (the nesting can be 1 or even 2 levels deep), finding the right scope of a LICENSE file can be tricky, especially if it's missing (fortunately not the case here, but in general nothing is guaranteed). And then is it LICENSE, LICENSE.txt, COPYING, COPYING.txt and so on - it's trivial for people, but becomes increasingly non-trivial to automate. Also see the following for recommendations (not all directly related to BSD, but still): http://producingoss.com/en/license-quickstart.html "The standard way to do this is to put the full license text in a file called COPYING (or LICENSE) included with the source code, and then put a short notice in a comment at the top of each source file, naming the copyright date, holder, and license, and saying where to find the full text of the license." http://www.gnu.org/licenses/gpl-howto.html "This statement should go near the beginning of every source file, close to the copyright notices." http://www.mozilla.org/MPL/2.0/FAQ.html "To apply the Mozilla Public License to software that you have written, add the header from Exhibit A of the license to each source code file in your project."
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1610/reactions" }
https://api.github.com/repos/psf/requests/issues/1610/timeline
null
completed
null
null
false
[ "Thanks for raising this!\n\nYeah, this is something I'm aware of. I recall briefly discussing with Kenneth when he switched licenses to Apache, which includes a similar recommendation. The way I remember it, I'm pretty strongly opposed to putting the full license in each file, and the only person more opposed to i...
https://api.github.com/repos/psf/requests/issues/1609
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1609/labels{/name}
https://api.github.com/repos/psf/requests/issues/1609/comments
https://api.github.com/repos/psf/requests/issues/1609/events
https://github.com/psf/requests/issues/1609
19,724,453
MDU6SXNzdWUxOTcyNDQ1Mw==
1,609
status_code wrong
{ "avatar_url": "https://avatars.githubusercontent.com/u/33916?v=4", "events_url": "https://api.github.com/users/chadgh/events{/privacy}", "followers_url": "https://api.github.com/users/chadgh/followers", "following_url": "https://api.github.com/users/chadgh/following{/other_user}", "gists_url": "https://api.github.com/users/chadgh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chadgh", "id": 33916, "login": "chadgh", "node_id": "MDQ6VXNlcjMzOTE2", "organizations_url": "https://api.github.com/users/chadgh/orgs", "received_events_url": "https://api.github.com/users/chadgh/received_events", "repos_url": "https://api.github.com/users/chadgh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chadgh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chadgh/subscriptions", "type": "User", "url": "https://api.github.com/users/chadgh", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2013-09-19T02:57:59Z
2021-09-09T01:22:26Z
2013-09-19T14:01:23Z
NONE
resolved
``` In [1]: import requests In [2]: requests.__version__ Out[2]: '1.2.3' In [3]: requests.get('http://mock.issues.com/404').status_code Out[3]: 200 In [4]: requests.get('http://mock.issues.com/500').status_code Out[4]: 200 ``` mock.issues.com seems to be sending the correct HTTP status codes using other tools to check. Am I doing something wrong, or is this broken?
{ "avatar_url": "https://avatars.githubusercontent.com/u/33916?v=4", "events_url": "https://api.github.com/users/chadgh/events{/privacy}", "followers_url": "https://api.github.com/users/chadgh/followers", "following_url": "https://api.github.com/users/chadgh/following{/other_user}", "gists_url": "https://api.github.com/users/chadgh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chadgh", "id": 33916, "login": "chadgh", "node_id": "MDQ6VXNlcjMzOTE2", "organizations_url": "https://api.github.com/users/chadgh/orgs", "received_events_url": "https://api.github.com/users/chadgh/received_events", "repos_url": "https://api.github.com/users/chadgh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chadgh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chadgh/subscriptions", "type": "User", "url": "https://api.github.com/users/chadgh", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1609/reactions" }
https://api.github.com/repos/psf/requests/issues/1609/timeline
null
completed
null
null
false
[ "@chadgh `mock.issues.com` is down, whereas `issues.com` isn't. Can you compare the results with `httpie` and `curl`. `http -h http://mock.issues.com/500`, `curl -i http://mock.issues.com/500`\n", "Is `mock.issues.com` down, or nonexistent? I can't resolve the domain at all.\n", "In fact @chadgh, if your ISP is...
https://api.github.com/repos/psf/requests/issues/1608
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1608/labels{/name}
https://api.github.com/repos/psf/requests/issues/1608/comments
https://api.github.com/repos/psf/requests/issues/1608/events
https://github.com/psf/requests/issues/1608
19,613,705
MDU6SXNzdWUxOTYxMzcwNQ==
1,608
"Content-Type header: application/x-www-form-urlencoded" won't be overridden
{ "avatar_url": "https://avatars.githubusercontent.com/u/4493404?v=4", "events_url": "https://api.github.com/users/sebastien-bratieres/events{/privacy}", "followers_url": "https://api.github.com/users/sebastien-bratieres/followers", "following_url": "https://api.github.com/users/sebastien-bratieres/following{/other_user}", "gists_url": "https://api.github.com/users/sebastien-bratieres/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sebastien-bratieres", "id": 4493404, "login": "sebastien-bratieres", "node_id": "MDQ6VXNlcjQ0OTM0MDQ=", "organizations_url": "https://api.github.com/users/sebastien-bratieres/orgs", "received_events_url": "https://api.github.com/users/sebastien-bratieres/received_events", "repos_url": "https://api.github.com/users/sebastien-bratieres/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sebastien-bratieres/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sebastien-bratieres/subscriptions", "type": "User", "url": "https://api.github.com/users/sebastien-bratieres", "user_view_type": "public" }
[]
closed
true
null
[]
null
10
2013-09-17T13:22:27Z
2021-09-09T01:22:26Z
2013-09-18T13:16:50Z
NONE
resolved
Simple test under Python 3.3.2, using the current 2.0 branch of requests (same behaviour with requests-1.2.3 btw); inspecting request headers with requestb.in. The Content-Type header contains two entries. I expected my stipulated header to override (replace) application/x-www-form-urlencoded. import requests data = open('C:/my_audio_files\sample_50.wav', 'rb').read() response = requests.post(url = "http://requestb.in/183gv9g1" data=data, headers={'Content-Type': 'application/octet-stream'} ) FORM/POST PARAMETERS None HEADERS Content-Length: 38206 User-Agent: python-requests/1.2.3 CPython/3.3.2 Windows/8 Connection: close Host: requestb.in Content-Type: application/octet-stream, application/x-www-form-urlencoded Accept: _/_ Accept-Encoding: identity, gzip, deflate, compress RAW BODY RIFF6•WAVEfmt etc...
{ "avatar_url": "https://avatars.githubusercontent.com/u/4493404?v=4", "events_url": "https://api.github.com/users/sebastien-bratieres/events{/privacy}", "followers_url": "https://api.github.com/users/sebastien-bratieres/followers", "following_url": "https://api.github.com/users/sebastien-bratieres/following{/other_user}", "gists_url": "https://api.github.com/users/sebastien-bratieres/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sebastien-bratieres", "id": 4493404, "login": "sebastien-bratieres", "node_id": "MDQ6VXNlcjQ0OTM0MDQ=", "organizations_url": "https://api.github.com/users/sebastien-bratieres/orgs", "received_events_url": "https://api.github.com/users/sebastien-bratieres/received_events", "repos_url": "https://api.github.com/users/sebastien-bratieres/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sebastien-bratieres/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sebastien-bratieres/subscriptions", "type": "User", "url": "https://api.github.com/users/sebastien-bratieres", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1608/reactions" }
https://api.github.com/repos/psf/requests/issues/1608/timeline
null
completed
null
null
false
[ "This is a known issue that was [just opened and closed](https://github.com/kennethreitz/requests/issues/1607). Please search in both closed and open issues next time before submitting a bug report.\n", "This is not the same issue. @sebastien-bratieres claims that he observed this using the 2.0 branch of Requests...
https://api.github.com/repos/psf/requests/issues/1607
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1607/labels{/name}
https://api.github.com/repos/psf/requests/issues/1607/comments
https://api.github.com/repos/psf/requests/issues/1607/events
https://github.com/psf/requests/issues/1607
19,604,816
MDU6SXNzdWUxOTYwNDgxNg==
1,607
CaseInsensitiveDict problem with python3 result in duplicated Content-Type/Length headers
{ "avatar_url": "https://avatars.githubusercontent.com/u/118673?v=4", "events_url": "https://api.github.com/users/gawel/events{/privacy}", "followers_url": "https://api.github.com/users/gawel/followers", "following_url": "https://api.github.com/users/gawel/following{/other_user}", "gists_url": "https://api.github.com/users/gawel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gawel", "id": 118673, "login": "gawel", "node_id": "MDQ6VXNlcjExODY3Mw==", "organizations_url": "https://api.github.com/users/gawel/orgs", "received_events_url": "https://api.github.com/users/gawel/received_events", "repos_url": "https://api.github.com/users/gawel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gawel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gawel/subscriptions", "type": "User", "url": "https://api.github.com/users/gawel", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-17T09:50:38Z
2021-09-09T01:22:26Z
2013-09-17T10:02:57Z
NONE
resolved
Headers are stored in a CaseInsensitiveDict but this class accept both bytes and str as key in python3. This result in duplicated headers when you want to provide Content-Type/Length by yourself. When using python3 requests converts headers keys to bytes then set some headers with str as keys here https://github.com/kennethreitz/requests/blob/master/requests/models.py#L416 and here https://github.com/kennethreitz/requests/blob/master/requests/models.py#L422 This result in the fact that you can't provide those headers by yourself. Requests should always check if the header exist first (both with bytes and str key) Or at least replace the existing key (bytes not str) Example: ``` >>> from requests.structures import CaseInsensitiveDict >>> d = CaseInsensitiveDict() >>> d[b'Content-Type'] = 'text/html' >>> 'Content-Type' in d False >>> d['Content-Type'] = 'application/json' >>> d CaseInsensitiveDict({b'Content-Type': 'text/html', 'Content-Type': 'application/json'}) >>> ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1607/reactions" }
https://api.github.com/repos/psf/requests/issues/1607/timeline
null
completed
null
null
false
[ "Thanks for raising this issue!\n\nWe've known about this bug for some time, and had a fix ready for a long time (see #1338). This fix is a breaking API change, so we wanted to hold off on making it. However, it has been merged into the upcoming 2.0 release. 2.0 is intended to be the next release, so this should be...
https://api.github.com/repos/psf/requests/issues/1606
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1606/labels{/name}
https://api.github.com/repos/psf/requests/issues/1606/comments
https://api.github.com/repos/psf/requests/issues/1606/events
https://github.com/psf/requests/pull/1606
19,597,727
MDExOlB1bGxSZXF1ZXN0ODM3NTc0Mw==
1,606
expose urllib3's assert_hostname argument (v1 for 2.0)
{ "avatar_url": "https://avatars.githubusercontent.com/u/2726112?v=4", "events_url": "https://api.github.com/users/borfig/events{/privacy}", "followers_url": "https://api.github.com/users/borfig/followers", "following_url": "https://api.github.com/users/borfig/following{/other_user}", "gists_url": "https://api.github.com/users/borfig/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/borfig", "id": 2726112, "login": "borfig", "node_id": "MDQ6VXNlcjI3MjYxMTI=", "organizations_url": "https://api.github.com/users/borfig/orgs", "received_events_url": "https://api.github.com/users/borfig/received_events", "repos_url": "https://api.github.com/users/borfig/repos", "site_admin": false, "starred_url": "https://api.github.com/users/borfig/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/borfig/subscriptions", "type": "User", "url": "https://api.github.com/users/borfig", "user_view_type": "public" }
[ { "color": "fbca04", "default": false, "description": null, "id": 44501249, "name": "Needs BDFL Input", "node_id": "MDU6TGFiZWw0NDUwMTI0OQ==", "url": "https://api.github.com/repos/psf/requests/labels/Needs%20BDFL%20Input" } ]
closed
false
null
[]
null
7
2013-09-17T06:42:27Z
2014-07-05T07:26:25Z
2013-09-24T17:44:02Z
NONE
null
This allows the user to control SSL CommonName verification. For example, ``` python requests.get('https://github.com/', assert_hostname='foo') ``` Will fail with an requests.exceptions.SSLError
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1606/reactions" }
https://api.github.com/repos/psf/requests/issues/1606/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1606.diff", "html_url": "https://github.com/psf/requests/pull/1606", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1606.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1606" }
true
[ "Hi @borfig! Thanks for doing this work!\n\nI have no idea if this'll get accepted or not. We're very reluctant to add new things to the Requests functional API at this stage, so this boils down to whether or not @kennethreitz believes this is a feature worth exposing at that level. I simply don't know what he'll d...
https://api.github.com/repos/psf/requests/issues/1605
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1605/labels{/name}
https://api.github.com/repos/psf/requests/issues/1605/comments
https://api.github.com/repos/psf/requests/issues/1605/events
https://github.com/psf/requests/pull/1605
19,593,933
MDExOlB1bGxSZXF1ZXN0ODM3Mzg0OA==
1,605
expose urllib3's assert_hostname argument
{ "avatar_url": "https://avatars.githubusercontent.com/u/2726112?v=4", "events_url": "https://api.github.com/users/borfig/events{/privacy}", "followers_url": "https://api.github.com/users/borfig/followers", "following_url": "https://api.github.com/users/borfig/following{/other_user}", "gists_url": "https://api.github.com/users/borfig/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/borfig", "id": 2726112, "login": "borfig", "node_id": "MDQ6VXNlcjI3MjYxMTI=", "organizations_url": "https://api.github.com/users/borfig/orgs", "received_events_url": "https://api.github.com/users/borfig/received_events", "repos_url": "https://api.github.com/users/borfig/repos", "site_admin": false, "starred_url": "https://api.github.com/users/borfig/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/borfig/subscriptions", "type": "User", "url": "https://api.github.com/users/borfig", "user_view_type": "public" }
[]
closed
false
null
[]
null
4
2013-09-17T03:52:47Z
2014-07-20T01:32:50Z
2013-09-17T04:05:26Z
NONE
null
urllib3 has the assert_hostname argument to control verification of the Common Name of the server's SSL certificate (shazow/urllib3@2493c9b3c0ce90b82209b93cad84296244e2763a), and this was also merged to requests (@2ed976ea7147a9d0c18998e02b16d691b6798a3e). Therefore I would like to let the user use it.
{ "avatar_url": "https://avatars.githubusercontent.com/u/2726112?v=4", "events_url": "https://api.github.com/users/borfig/events{/privacy}", "followers_url": "https://api.github.com/users/borfig/followers", "following_url": "https://api.github.com/users/borfig/following{/other_user}", "gists_url": "https://api.github.com/users/borfig/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/borfig", "id": 2726112, "login": "borfig", "node_id": "MDQ6VXNlcjI3MjYxMTI=", "organizations_url": "https://api.github.com/users/borfig/orgs", "received_events_url": "https://api.github.com/users/borfig/received_events", "repos_url": "https://api.github.com/users/borfig/repos", "site_admin": false, "starred_url": "https://api.github.com/users/borfig/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/borfig/subscriptions", "type": "User", "url": "https://api.github.com/users/borfig", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1605/reactions" }
https://api.github.com/repos/psf/requests/issues/1605/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1605.diff", "html_url": "https://github.com/psf/requests/pull/1605", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1605.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1605" }
true
[ "1. We have been asking that all Pull Requests be pointed at the requests 2.0 branch\n2. This is a major API change and as such should only be considered for 2.0. I'm not adverse to exposing this API, but I'm also not convinced this is necessary. I don't think we expose everything `urllib3` can do and so I don't se...
https://api.github.com/repos/psf/requests/issues/1604
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1604/labels{/name}
https://api.github.com/repos/psf/requests/issues/1604/comments
https://api.github.com/repos/psf/requests/issues/1604/events
https://github.com/psf/requests/issues/1604
19,523,766
MDU6SXNzdWUxOTUyMzc2Ng==
1,604
Response.text returns improperly decoded text (requests 1.2.3, python 2.7)
{ "avatar_url": "https://avatars.githubusercontent.com/u/129239?v=4", "events_url": "https://api.github.com/users/lavr/events{/privacy}", "followers_url": "https://api.github.com/users/lavr/followers", "following_url": "https://api.github.com/users/lavr/following{/other_user}", "gists_url": "https://api.github.com/users/lavr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lavr", "id": 129239, "login": "lavr", "node_id": "MDQ6VXNlcjEyOTIzOQ==", "organizations_url": "https://api.github.com/users/lavr/orgs", "received_events_url": "https://api.github.com/users/lavr/received_events", "repos_url": "https://api.github.com/users/lavr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lavr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lavr/subscriptions", "type": "User", "url": "https://api.github.com/users/lavr", "user_view_type": "public" }
[]
closed
true
null
[]
null
24
2013-09-15T18:15:15Z
2018-12-26T15:46:15Z
2013-09-15T18:21:21Z
NONE
resolved
If http server returns Content-type: text/\* without encoding, Response.text always decode it as 'ISO-8859-1' text. It may be valid in RFC2616/3.7.1, but this is wrong in real life in 2013. I made example page with chinese text: http://lavr.github.io/python-emails/tests/requests/some-utf8-text.html All browsers renders this page properly. But reguests.get returns invalid text. And here is simple test with that url: https://gist.github.com/lavr/6572927
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1604/reactions" }
https://api.github.com/repos/psf/requests/issues/1604/timeline
null
completed
null
null
false
[ "Thanks for this @lavr!\n\nThis is a deliberate design decision for Requests. We're following the spec unless we find ourselves in a position where the specification diverges so wildly from real world behaviour that it becomes a problem (e.g. GET after 302 response to a POST).\n\nIf the upstream server knows what t...
https://api.github.com/repos/psf/requests/issues/1603
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1603/labels{/name}
https://api.github.com/repos/psf/requests/issues/1603/comments
https://api.github.com/repos/psf/requests/issues/1603/events
https://github.com/psf/requests/issues/1603
19,516,949
MDU6SXNzdWUxOTUxNjk0OQ==
1,603
urllib3 was update to1.7, and support connection pooling.
{ "avatar_url": "https://avatars.githubusercontent.com/u/416141?v=4", "events_url": "https://api.github.com/users/toontong/events{/privacy}", "followers_url": "https://api.github.com/users/toontong/followers", "following_url": "https://api.github.com/users/toontong/following{/other_user}", "gists_url": "https://api.github.com/users/toontong/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toontong", "id": 416141, "login": "toontong", "node_id": "MDQ6VXNlcjQxNjE0MQ==", "organizations_url": "https://api.github.com/users/toontong/orgs", "received_events_url": "https://api.github.com/users/toontong/received_events", "repos_url": "https://api.github.com/users/toontong/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toontong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toontong/subscriptions", "type": "User", "url": "https://api.github.com/users/toontong", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2013-09-15T09:20:05Z
2021-09-09T01:22:26Z
2013-09-15T09:21:21Z
NONE
resolved
urllib3 was update to1.7, and support connection pooling. you should update the request inline package->urllib3 (version was dev) to out inline. just import from python-site-packages, not import from request.packages. ​did you change the inline packge urllib3?​
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1603/reactions" }
https://api.github.com/repos/psf/requests/issues/1603/timeline
null
completed
null
null
false
[ "Intentional design decision. Thanks, though.\n", "could you explain why used this design ? I want to fork and change it, but worry bugs.\n", "Dependency management is still far from perfect in Python. If we vendor `urllib3` we can control and understand exactly which version is used and we can more easily debu...
https://api.github.com/repos/psf/requests/issues/1602
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1602/labels{/name}
https://api.github.com/repos/psf/requests/issues/1602/comments
https://api.github.com/repos/psf/requests/issues/1602/events
https://github.com/psf/requests/pull/1602
19,485,361
MDExOlB1bGxSZXF1ZXN0ODMyOTU2Ng==
1,602
Handle multiple qop types
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
[ { "color": "009800", "default": false, "description": null, "id": 44501218, "name": "Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTIxOA==", "url": "https://api.github.com/repos/psf/requests/labels/Ready%20To%20Merge" }, { "color": "fbca04", "default": false, "description...
closed
true
null
[]
null
3
2013-09-14T03:33:08Z
2021-09-08T23:06:16Z
2013-09-24T17:46:16Z
CONTRIBUTOR
resolved
In Digest Access Authentication there are two possible values (four if you count the not-present and both cases) for authentication. We were narrowly handling one of the four cases. Now we handle two. Fixes #1601. As for logic: I reordered the branches because if `qop is None` then we can not call `split` on it. So if we handle that case first, we shouldn't hit any exceptions. :) I think I'll also be sending a PR to handle the `auth-int` `qop` value for DigestAuth. Is there a reason we never did do it?
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1602/reactions" }
https://api.github.com/repos/psf/requests/issues/1602/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1602.diff", "html_url": "https://github.com/psf/requests/pull/1602", "merged_at": "2013-09-24T17:46:16Z", "patch_url": "https://github.com/psf/requests/pull/1602.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1602" }
true
[ "As a side note: the Travis builds will continue to fail on this branch until someone (:eyes: @kennethreitz) deploys the latest version of httpbin. :wink:\n", "Presumably because it's not commonly used: note that #1601 is the first issue we've had that mentions it.\n\nThis PR is awesome, as always I'm :+1:. =D\n"...
https://api.github.com/repos/psf/requests/issues/1601
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1601/labels{/name}
https://api.github.com/repos/psf/requests/issues/1601/comments
https://api.github.com/repos/psf/requests/issues/1601/events
https://github.com/psf/requests/issues/1601
19,484,747
MDU6SXNzdWUxOTQ4NDc0Nw==
1,601
qop problem on HTTPDigestAuth
{ "avatar_url": "https://avatars.githubusercontent.com/u/1127463?v=4", "events_url": "https://api.github.com/users/tarzanjw/events{/privacy}", "followers_url": "https://api.github.com/users/tarzanjw/followers", "following_url": "https://api.github.com/users/tarzanjw/following{/other_user}", "gists_url": "https://api.github.com/users/tarzanjw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tarzanjw", "id": 1127463, "login": "tarzanjw", "node_id": "MDQ6VXNlcjExMjc0NjM=", "organizations_url": "https://api.github.com/users/tarzanjw/orgs", "received_events_url": "https://api.github.com/users/tarzanjw/received_events", "repos_url": "https://api.github.com/users/tarzanjw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tarzanjw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tarzanjw/subscriptions", "type": "User", "url": "https://api.github.com/users/tarzanjw", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}...
null
7
2013-09-14T02:31:04Z
2021-09-09T01:22:23Z
2013-09-24T17:46:16Z
NONE
resolved
When Server responses 401 with qop in WWW-Authenticate header is : "auth,auth-int". Requests package send "None" as Authorization header. It's wrong. ``` www-authenticate: ...qop=auth,auth-int... ``` Requests package does correctly for: ``` www-authenticate: ...qop=auth... ``` from debuging, file <code>requests/auth.py</code>, line 109: ``` python if qop == 'auth': if nonce == self.last_nonce: self.nonce_count += 1 else: self.nonce_count = 1 ncvalue = '%08x' % self.nonce_count s = str(self.nonce_count).encode('utf-8') s += nonce.encode('utf-8') s += time.ctime().encode('utf-8') s += os.urandom(8) cnonce = (hashlib.sha1(s).hexdigest()[:16]) noncebit = "%s:%s:%s:%s:%s" % (nonce, ncvalue, cnonce, qop, hash_utf8(A2)) respdig = KD(hash_utf8(A1), noncebit) elif qop is None: respdig = KD(hash_utf8(A1), "%s:%s" % (nonce, hash_utf8(A2))) else: # XXX handle auth-int. return None ``` I saw that when you parse headers for qop argument, you did not split it into some option. Did I misunderstand or something else?
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1601/reactions" }
https://api.github.com/repos/psf/requests/issues/1601/timeline
null
completed
null
null
false
[ "Nice catch! Frankly I'm not certain how we should be handling the case with `qop=auth,auth-int` but I know where to look. :)\n\nThanks for reporting this! :+1: If it turns out not to be a bug on our side, I'll let you know.\n", "I really made me in some troubles when I connected with others, but fortunately I ca...
https://api.github.com/repos/psf/requests/issues/1600
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1600/labels{/name}
https://api.github.com/repos/psf/requests/issues/1600/comments
https://api.github.com/repos/psf/requests/issues/1600/events
https://github.com/psf/requests/issues/1600
19,466,468
MDU6SXNzdWUxOTQ2NjQ2OA==
1,600
Request hook
{ "avatar_url": "https://avatars.githubusercontent.com/u/120501?v=4", "events_url": "https://api.github.com/users/charlax/events{/privacy}", "followers_url": "https://api.github.com/users/charlax/followers", "following_url": "https://api.github.com/users/charlax/following{/other_user}", "gists_url": "https://api.github.com/users/charlax/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/charlax", "id": 120501, "login": "charlax", "node_id": "MDQ6VXNlcjEyMDUwMQ==", "organizations_url": "https://api.github.com/users/charlax/orgs", "received_events_url": "https://api.github.com/users/charlax/received_events", "repos_url": "https://api.github.com/users/charlax/repos", "site_admin": false, "starred_url": "https://api.github.com/users/charlax/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/charlax/subscriptions", "type": "User", "url": "https://api.github.com/users/charlax", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2013-09-13T17:47:44Z
2021-09-09T01:22:27Z
2013-09-13T22:28:02Z
NONE
resolved
Hey, How do you feel about adding a `request` hook? My use case would be to print the requested URL with its parameters and headers. It's not possible with the `response` hook. Let me know what you think. If that sounds like a good idea, I'll implement it and send you a PR. Best, Chx
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1600/reactions" }
https://api.github.com/repos/psf/requests/issues/1600/timeline
null
completed
null
null
false
[ "We had that and removed it intentionally. If you want to print what is being sent you can print them from the `request` attribute on the `Response` object, e.g.,\n\n``` python\nr = requests.get('https://httpbin.org/get')\nprint r.request.url\nprint r.request.headers\n```\n", "Nice! Should this be added to the do...
https://api.github.com/repos/psf/requests/issues/1599
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1599/labels{/name}
https://api.github.com/repos/psf/requests/issues/1599/comments
https://api.github.com/repos/psf/requests/issues/1599/events
https://github.com/psf/requests/issues/1599
19,452,708
MDU6SXNzdWUxOTQ1MjcwOA==
1,599
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'error' in adapters.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/496754?v=4", "events_url": "https://api.github.com/users/pigmej/events{/privacy}", "followers_url": "https://api.github.com/users/pigmej/followers", "following_url": "https://api.github.com/users/pigmej/following{/other_user}", "gists_url": "https://api.github.com/users/pigmej/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pigmej", "id": 496754, "login": "pigmej", "node_id": "MDQ6VXNlcjQ5Njc1NA==", "organizations_url": "https://api.github.com/users/pigmej/orgs", "received_events_url": "https://api.github.com/users/pigmej/received_events", "repos_url": "https://api.github.com/users/pigmej/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pigmej/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pigmej/subscriptions", "type": "User", "url": "https://api.github.com/users/pigmej", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2013-09-13T14:34:18Z
2021-09-08T23:00:54Z
2014-02-03T10:56:57Z
NONE
resolved
``` File "/something/lib/python2.7/site-packages/requests/api.py", line 88, in post File "/something/lib/python2.7/site-packages/requests/api.py", line 44, in request File "/something/lib/python2.7/site-packages/requests/sessions.py", line 335, in request File "/something/lib/python2.7/site-packages/requests/sessions.py", line 438, in send File "/something/lib/python2.7/site-packages/requests/adapters.py", line 323, in send <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'error' ``` Seems to happen very rare.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1599/reactions" }
https://api.github.com/repos/psf/requests/issues/1599/timeline
null
completed
null
null
false
[ "That seems like a weird exception. That line is `except socket.error`. Out of interest, do you ever touch `requests.adapters.socket`?\n", "I did not.\n\nIf the line says socket.error, then probably somewhere socket name is overriden...\n", "Yeah, that's my concern. It's worth checking in your application.\n", ...
https://api.github.com/repos/psf/requests/issues/1598
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1598/labels{/name}
https://api.github.com/repos/psf/requests/issues/1598/comments
https://api.github.com/repos/psf/requests/issues/1598/events
https://github.com/psf/requests/pull/1598
19,446,742
MDExOlB1bGxSZXF1ZXN0ODMxMDU4Nw==
1,598
[2.0] Python default arguments are hard
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "color": "009800", "default": false, "description": null, "id": 44501218, "name": "Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTIxOA==", "url": "https://api.github.com/repos/psf/requests/labels/Ready%20To%20Merge" } ]
closed
true
null
[]
null
2
2013-09-13T13:13:55Z
2021-09-08T23:06:14Z
2013-09-13T13:17:41Z
MEMBER
resolved
Turns out we were doing this wrong. Kindly pointed out by @redspider. Bizarrely, we're half doing this right, but just didn't fix the whole thing up. This should. =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_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1598/reactions" }
https://api.github.com/repos/psf/requests/issues/1598/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1598.diff", "html_url": "https://github.com/psf/requests/pull/1598", "merged_at": "2013-09-13T13:17:41Z", "patch_url": "https://github.com/psf/requests/pull/1598.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1598" }
true
[ "ouch\n", ":cake:\n" ]
https://api.github.com/repos/psf/requests/issues/1597
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1597/labels{/name}
https://api.github.com/repos/psf/requests/issues/1597/comments
https://api.github.com/repos/psf/requests/issues/1597/events
https://github.com/psf/requests/issues/1597
19,432,496
MDU6SXNzdWUxOTQzMjQ5Ng==
1,597
Use of mutable defaults in Request class
{ "avatar_url": "https://avatars.githubusercontent.com/u/63004?v=4", "events_url": "https://api.github.com/users/redspider/events{/privacy}", "followers_url": "https://api.github.com/users/redspider/followers", "following_url": "https://api.github.com/users/redspider/following{/other_user}", "gists_url": "https://api.github.com/users/redspider/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/redspider", "id": 63004, "login": "redspider", "node_id": "MDQ6VXNlcjYzMDA0", "organizations_url": "https://api.github.com/users/redspider/orgs", "received_events_url": "https://api.github.com/users/redspider/received_events", "repos_url": "https://api.github.com/users/redspider/repos", "site_admin": false, "starred_url": "https://api.github.com/users/redspider/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/redspider/subscriptions", "type": "User", "url": "https://api.github.com/users/redspider", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url...
null
2
2013-09-13T06:30:20Z
2021-09-09T01:22:27Z
2013-09-13T13:20:22Z
NONE
resolved
Incorrect use of mutable default dictionary in the Request class can lead to incorrect behaviour in advanced usage. The mutable defaults are specified at: https://github.com/kennethreitz/requests/blob/master/requests/models.py#L189 and should be None, not dict(). In order to maintain interface consistency it may be necessary to change the following lines to ensure data is set to a dict() if data is None, otherwise it will change to an empty list in the default case. A demonstration of the flaw is: ``` >>> import requests >>> s = requests.Session() >>> r = requests.Request('GET','http://google.com/') >>> r.data {} >>> r.data['foo'] = 'cat' >>> r2 = requests.Request('GET','http://google.com/') >>> r2.data {'foo': 'cat'} ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1597/reactions" }
https://api.github.com/repos/psf/requests/issues/1597/timeline
null
completed
null
null
false
[ "Heh, I briefly got totally misled by the appearance of `Session()` in your example. =D\n\nYeah, that absolutely looks wrong. We notably do this for everything else except those two parameters. I'll fix this up today. Thanks for raising this issue! :cake:\n", "Resolved by #1598. Thanks for pointing this out! =D :...
https://api.github.com/repos/psf/requests/issues/1596
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1596/labels{/name}
https://api.github.com/repos/psf/requests/issues/1596/comments
https://api.github.com/repos/psf/requests/issues/1596/events
https://github.com/psf/requests/issues/1596
19,424,266
MDU6SXNzdWUxOTQyNDI2Ng==
1,596
Automatically detect authentication
{ "avatar_url": "https://avatars.githubusercontent.com/u/836426?v=4", "events_url": "https://api.github.com/users/dpursehouse/events{/privacy}", "followers_url": "https://api.github.com/users/dpursehouse/followers", "following_url": "https://api.github.com/users/dpursehouse/following{/other_user}", "gists_url": "https://api.github.com/users/dpursehouse/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dpursehouse", "id": 836426, "login": "dpursehouse", "node_id": "MDQ6VXNlcjgzNjQyNg==", "organizations_url": "https://api.github.com/users/dpursehouse/orgs", "received_events_url": "https://api.github.com/users/dpursehouse/received_events", "repos_url": "https://api.github.com/users/dpursehouse/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dpursehouse/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dpursehouse/subscriptions", "type": "User", "url": "https://api.github.com/users/dpursehouse", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2013-09-13T00:52:10Z
2021-09-09T01:22:27Z
2013-09-13T01:24:01Z
CONTRIBUTOR
resolved
Would it be feasible for requests to check the `WWW-Authenticate` response header and send the appropriate authentication? I'm trying to build a REST API client for a web service, but found that some of the servers where the service runs require basic auth, while others require digest. I want to, if possible, make it so the user doesn't need to care which one it is.
{ "avatar_url": "https://avatars.githubusercontent.com/u/836426?v=4", "events_url": "https://api.github.com/users/dpursehouse/events{/privacy}", "followers_url": "https://api.github.com/users/dpursehouse/followers", "following_url": "https://api.github.com/users/dpursehouse/following{/other_user}", "gists_url": "https://api.github.com/users/dpursehouse/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dpursehouse", "id": 836426, "login": "dpursehouse", "node_id": "MDQ6VXNlcjgzNjQyNg==", "organizations_url": "https://api.github.com/users/dpursehouse/orgs", "received_events_url": "https://api.github.com/users/dpursehouse/received_events", "repos_url": "https://api.github.com/users/dpursehouse/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dpursehouse/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dpursehouse/subscriptions", "type": "User", "url": "https://api.github.com/users/dpursehouse", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1596/reactions" }
https://api.github.com/repos/psf/requests/issues/1596/timeline
null
completed
null
null
false
[ "We do not perform authentication for anyone automatically and there's a difference in how servers and APIs respond. The GitHub API does not normally return the header so it would be useless there. Several other prominent APIs do the same and for good reason. Beyond that you can do this for your user without having...
https://api.github.com/repos/psf/requests/issues/1595
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1595/labels{/name}
https://api.github.com/repos/psf/requests/issues/1595/comments
https://api.github.com/repos/psf/requests/issues/1595/events
https://github.com/psf/requests/issues/1595
19,414,930
MDU6SXNzdWUxOTQxNDkzMA==
1,595
ujson option
{ "avatar_url": "https://avatars.githubusercontent.com/u/2837532?v=4", "events_url": "https://api.github.com/users/woozyking/events{/privacy}", "followers_url": "https://api.github.com/users/woozyking/followers", "following_url": "https://api.github.com/users/woozyking/following{/other_user}", "gists_url": "https://api.github.com/users/woozyking/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/woozyking", "id": 2837532, "login": "woozyking", "node_id": "MDQ6VXNlcjI4Mzc1MzI=", "organizations_url": "https://api.github.com/users/woozyking/orgs", "received_events_url": "https://api.github.com/users/woozyking/received_events", "repos_url": "https://api.github.com/users/woozyking/repos", "site_admin": false, "starred_url": "https://api.github.com/users/woozyking/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/woozyking/subscriptions", "type": "User", "url": "https://api.github.com/users/woozyking", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2013-09-12T21:02:59Z
2021-09-05T00:06:48Z
2013-09-12T21:26:05Z
NONE
resolved
Hi, Is it possible to use ujson as an optional JSON encoder/decoder for requests? Or, if ujson satisfies all the use cases of requests, replace simplejson with ujson?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1595/reactions" }
https://api.github.com/repos/psf/requests/issues/1595/timeline
null
completed
null
null
false
[ "You absolutely can. The easiest way to do it is to monkeypatch:\n\n``` python\nimport requests\nimport ujson\n\nrequests.models.json = ujson\n```\n\nThat _should_ cause all further calls to `Response.json()` to use ujson. As that's the only place in Requests that uses simplejson, that should cover everything.\n", ...
https://api.github.com/repos/psf/requests/issues/1594
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1594/labels{/name}
https://api.github.com/repos/psf/requests/issues/1594/comments
https://api.github.com/repos/psf/requests/issues/1594/events
https://github.com/psf/requests/issues/1594
19,366,692
MDU6SXNzdWUxOTM2NjY5Mg==
1,594
Plumb through new urllib3 Timeout API
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "color": "fbca04", "default": false, "description": null, "id": 44501249, "name": "Needs BDFL Input", "node_id": "MDU6TGFiZWw0NDUwMTI0OQ==", "url": "https://api.github.com/repos/psf/requests/labels/Needs%20BDFL%20Input" }, { "color": "eb6420", "default": false, "descrip...
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url...
null
4
2013-09-12T07:54:00Z
2021-09-04T00:06:22Z
2013-09-24T18:12:02Z
MEMBER
resolved
From shazow/urllib3#231. We may not necessarily want to expose the new API in its direct urllib3 form. In particular, I'm strongly in favour of keeping the current timeout API as the default usage.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1594/reactions" }
https://api.github.com/repos/psf/requests/issues/1594/timeline
null
completed
null
null
false
[ "I did some investigation on this today.\n\nIn principle we've got total freedom to expose any or all of the urllib3 `Timeout` class-based API. In practice, [this section of code](https://github.com/kennethreitz/requests/blob/master/requests/adapters.py#L297-L321) is a bit tricky for two reasons. First, we use `tim...
https://api.github.com/repos/psf/requests/issues/1593
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1593/labels{/name}
https://api.github.com/repos/psf/requests/issues/1593/comments
https://api.github.com/repos/psf/requests/issues/1593/events
https://github.com/psf/requests/issues/1593
19,365,476
MDU6SXNzdWUxOTM2NTQ3Ng==
1,593
Max retries exceeded exception on stale pooled connections
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2013-09-12T07:17:14Z
2021-09-09T01:22:28Z
2013-09-12T08:33:52Z
NONE
resolved
The application code uses the same requests.Session object to download bunch of files. In rare cases, downloading fails with the following trace (here, there is one successful download and one failed for the same Session object): <pre> 2013-09-08 22:57:38,553 INFO root: Download 'http://node-testing.sugarlabs.org//packages/OLPC/11.3.1/ghostscript-8.71-16.fc14.i686.rpm' package 2013-09-08 22:57:38,754 DEBUG requests.packages.urllib3.connectionpool: "GET //packages/OLPC/11.3.1/ghostscript-8.71-16.fc14.i686.rpm HTTP/1.1" 200 None 2013-09-08 22:58:23,276 INFO root: Download 'http://node-testing.sugarlabs.org//packages/OLPC/11.3.1/poppler-data-0.4.4-1.fc14.noarch.rpm' package 2013-09-08 22:58:23,442 ERROR root: Failed to install Traceback (most recent call last): File "/usr/share/PackageKit/helpers/presolve/presolveBackend.py", line 65, in _install_packages presolve.install(backend.split_package_id(i)[0]) File "/usr/share/PackageKit/helpers/presolve/presolve.py", line 133, in install _install_bundles(_load_bundles(package)) File "/usr/share/PackageKit/helpers/presolve/presolve.py", line 291, in _load_bundles _fetcher.download(url, bundle) File "/usr/lib/python2.7/site-packages/sugar_network/toolkit/http.py", line 161, in download reply = self.request('GET', path, allow_redirects=True) File "/usr/lib/python2.7/site-packages/sugar_network/toolkit/http.py", line 206, in request headers=headers, params=params, **kwargs) File "/usr/lib/python2.7/site-packages/sugar_network/toolkit/../lib/requests/requests/sessions.py", line 335, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python2.7/site-packages/sugar_network/toolkit/../lib/requests/requests/sessions.py", line 438, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/site-packages/sugar_network/toolkit/../lib/requests/requests/adapters.py", line 327, in send raise ConnectionError(e) ConnectionError: HTTPConnectionPool(host='node-testing.sugarlabs.org', port=80): Max retries exceeded with url: //packages/OLPC/11.3.1/poppler-data-0.4.4-1.fc14.noarch.rpm (Caused by <class 'httplib.BadStatusLine'>: '') </pre> The server side was not heavy loaded and runing wget for the same urls was not capable to reproduce the issue. But in logs, I found that requests library generates bunch of entries like <pre> Resetting dropped connection.. </pre> So, the guess was that requests tries to reuse pooled http connection which is arranged to be closed on server side or so. After the applying the fix <pre> diff --git a/requests/packages/urllib3/connectionpool.py b/requests/packages/urllib3/connectionpool.py index 4e851f0..c7dfa05 100644 --- a/requests/packages/urllib3/connectionpool.py +++ b/requests/packages/urllib3/connectionpool.py @@ -331,7 +331,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods): def urlopen(self, method, url, body=None, headers=None, retries=3, redirect=True, assert_same_host=True, timeout=_Default, - pool_timeout=None, release_conn=None, **response_kw): + pool_timeout=None, release_conn=None, force_new=False, **response_kw): """ Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all @@ -420,7 +420,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods): try: # Request a connection from the queue - conn = self._get_conn(timeout=pool_timeout) + conn = self._new_conn() if force_new else self._get_conn(timeout=pool_timeout) # Make the request on the httplib connection object httplib_response = self._make_request(conn, method, url, @@ -471,7 +471,10 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods): err = e if retries == 0: - raise MaxRetryError(self, url, e) + if force_new: + raise MaxRetryError(self, url, e) + force_new = True + retries = 1 finally: if release_conn: @@ -487,7 +490,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods): return self.urlopen(method, url, body, headers, retries - 1, redirect, assert_same_host, timeout=timeout, pool_timeout=pool_timeout, - release_conn=release_conn, **response_kw) + release_conn=release_conn, force_new=force_new, **response_kw) # Handle redirect? redirect_location = redirect and response.get_redirect_location() </pre> the issue cannot be reproduced any more.
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/1593/reactions" }
https://api.github.com/repos/psf/requests/issues/1593/timeline
null
completed
null
null
false
[ "Hi @alsroot, thanks for raising this issue!\n\nThat looks like a nasty problem, and thanks so much for investigating it. However, your changes are in urllib3. This is actually a [separate module](https://github.com/shazow/urllib3) that we vendor a copy of into Requests. Any bugs in urllib3 should be fixed over the...
https://api.github.com/repos/psf/requests/issues/1592
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1592/labels{/name}
https://api.github.com/repos/psf/requests/issues/1592/comments
https://api.github.com/repos/psf/requests/issues/1592/events
https://github.com/psf/requests/pull/1592
19,364,273
MDExOlB1bGxSZXF1ZXN0ODI2ODYxNQ==
1,592
remove extra mention of dangerous `r.raw`
{ "avatar_url": "https://avatars.githubusercontent.com/u/128982?v=4", "events_url": "https://api.github.com/users/homm/events{/privacy}", "followers_url": "https://api.github.com/users/homm/followers", "following_url": "https://api.github.com/users/homm/following{/other_user}", "gists_url": "https://api.github.com/users/homm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/homm", "id": 128982, "login": "homm", "node_id": "MDQ6VXNlcjEyODk4Mg==", "organizations_url": "https://api.github.com/users/homm/orgs", "received_events_url": "https://api.github.com/users/homm/received_events", "repos_url": "https://api.github.com/users/homm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/homm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/homm/subscriptions", "type": "User", "url": "https://api.github.com/users/homm", "user_view_type": "public" }
[ { "color": "e11d21", "default": false, "description": null, "id": 44501305, "name": "Not Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTMwNQ==", "url": "https://api.github.com/repos/psf/requests/labels/Not%20Ready%20To%20Merge" } ]
closed
true
null
[]
null
8
2013-09-12T06:35:39Z
2021-09-08T21:01:11Z
2013-09-12T09:29:16Z
CONTRIBUTOR
resolved
Difference between `r.raw` and `r.iter_content` not clearly described in all places where `r.raw` mentioned. This is very dangerous, because difference not only in calling format. I purpose leave `r.raw` only when we are talking about sockets or encoded data.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1592/reactions" }
https://api.github.com/repos/psf/requests/issues/1592/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1592.diff", "html_url": "https://github.com/psf/requests/pull/1592", "merged_at": "2013-09-12T09:29:16Z", "patch_url": "https://github.com/psf/requests/pull/1592.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1592" }
true
[ "@homm Thanks for this! Unfortunately, I don't agree with most of these documentation changes. My notes, in the order the change appears in the diff:\n1. `stream` (or more accurately `prefetch`) was always required for `Response.iter_content`, but not always required for `Response.raw`. The portion of the documenta...
https://api.github.com/repos/psf/requests/issues/1591
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1591/labels{/name}
https://api.github.com/repos/psf/requests/issues/1591/comments
https://api.github.com/repos/psf/requests/issues/1591/events
https://github.com/psf/requests/pull/1591
19,324,206
MDExOlB1bGxSZXF1ZXN0ODI0NjE5MQ==
1,591
minor typo: Fix requests spelling
{ "avatar_url": "https://avatars.githubusercontent.com/u/500628?v=4", "events_url": "https://api.github.com/users/sayanchowdhury/events{/privacy}", "followers_url": "https://api.github.com/users/sayanchowdhury/followers", "following_url": "https://api.github.com/users/sayanchowdhury/following{/other_user}", "gists_url": "https://api.github.com/users/sayanchowdhury/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sayanchowdhury", "id": 500628, "login": "sayanchowdhury", "node_id": "MDQ6VXNlcjUwMDYyOA==", "organizations_url": "https://api.github.com/users/sayanchowdhury/orgs", "received_events_url": "https://api.github.com/users/sayanchowdhury/received_events", "repos_url": "https://api.github.com/users/sayanchowdhury/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sayanchowdhury/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sayanchowdhury/subscriptions", "type": "User", "url": "https://api.github.com/users/sayanchowdhury", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-11T14:53:26Z
2021-09-08T21:01:10Z
2013-09-11T15:16:29Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1591/reactions" }
https://api.github.com/repos/psf/requests/issues/1591/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1591.diff", "html_url": "https://github.com/psf/requests/pull/1591", "merged_at": "2013-09-11T15:16:29Z", "patch_url": "https://github.com/psf/requests/pull/1591.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1591" }
true
[ "This is awesome, thank you so much! :cake:\n" ]
https://api.github.com/repos/psf/requests/issues/1590
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1590/labels{/name}
https://api.github.com/repos/psf/requests/issues/1590/comments
https://api.github.com/repos/psf/requests/issues/1590/events
https://github.com/psf/requests/issues/1590
19,318,248
MDU6SXNzdWUxOTMxODI0OA==
1,590
Set https proxies and redirect with a wrong location.
{ "avatar_url": "https://avatars.githubusercontent.com/u/5434831?v=4", "events_url": "https://api.github.com/users/julianzhoucn/events{/privacy}", "followers_url": "https://api.github.com/users/julianzhoucn/followers", "following_url": "https://api.github.com/users/julianzhoucn/following{/other_user}", "gists_url": "https://api.github.com/users/julianzhoucn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/julianzhoucn", "id": 5434831, "login": "julianzhoucn", "node_id": "MDQ6VXNlcjU0MzQ4MzE=", "organizations_url": "https://api.github.com/users/julianzhoucn/orgs", "received_events_url": "https://api.github.com/users/julianzhoucn/received_events", "repos_url": "https://api.github.com/users/julianzhoucn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/julianzhoucn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/julianzhoucn/subscriptions", "type": "User", "url": "https://api.github.com/users/julianzhoucn", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2013-09-11T13:13:06Z
2021-09-09T01:22:28Z
2013-09-12T17:47:52Z
NONE
resolved
Some of my code are as follows: ``` import requests #my auth deamon proxies={'https':'http://10.204.133.76:8080'} response=requests.get('https://www.redhat.com',proxies=proxies,allow_redirects=False,verify=False) ``` And response.headers is: ``` CaseInsensitiveDict({'content-length': '0', 'set-cookie': '_zk_sc_tc1=1; HttpOnly, _zk_sc_tc2=1; expires=Wed, 18-Sep-2013 11:58:37 GMT; Path=/; Domain=.redhat.com; HttpOnly', 'connection': 'Keep-Alive', 'location': 'https://auto-scanner-133-76.tmicss.com:443/auth?forward=http%3A%2F%2Fwww.redhat.comhttps%3A%2F%2Fwww.redhat.com%2F', 'date': 'Wed, 11 Sep 2013 11:58:37 GMT', 'p3p': 'CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"', 'content-type': 'text/html; charset=UTF-8'}) ``` And the location in the headers is not same as the Browser behavior. And the right 'location' value is 'https://auto-scanner-133-76.tmicss.com:443/auth?forward=https%3A%2F%2Fwww.redhat.com%2F' Is this an issue of requests?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1590/reactions" }
https://api.github.com/repos/psf/requests/issues/1590/timeline
null
completed
null
null
false
[ "Hmm. It looks like your proxy is attaching that header. Out of interest, can you print the Host headers from both outgoing requests? (In requests, you do that by printing `r.request.headers['Host']`).\n", "Hi Lukasa. Thanks for your comments. When I get the headers of requests as follows:\nIn[5]:response.request...
https://api.github.com/repos/psf/requests/issues/1589
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1589/labels{/name}
https://api.github.com/repos/psf/requests/issues/1589/comments
https://api.github.com/repos/psf/requests/issues/1589/events
https://github.com/psf/requests/pull/1589
19,280,556
MDExOlB1bGxSZXF1ZXN0ODIyMjU0MA==
1,589
Make sure content is checked when setting encoding
{ "avatar_url": "https://avatars.githubusercontent.com/u/300306?v=4", "events_url": "https://api.github.com/users/jdennis/events{/privacy}", "followers_url": "https://api.github.com/users/jdennis/followers", "following_url": "https://api.github.com/users/jdennis/following{/other_user}", "gists_url": "https://api.github.com/users/jdennis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jdennis", "id": 300306, "login": "jdennis", "node_id": "MDQ6VXNlcjMwMDMwNg==", "organizations_url": "https://api.github.com/users/jdennis/orgs", "received_events_url": "https://api.github.com/users/jdennis/received_events", "repos_url": "https://api.github.com/users/jdennis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jdennis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jdennis/subscriptions", "type": "User", "url": "https://api.github.com/users/jdennis", "user_view_type": "public" }
[]
closed
true
null
[]
null
15
2013-09-10T19:46:09Z
2021-09-08T23:11:07Z
2013-09-10T20:52:30Z
NONE
resolved
HTML pages which declared their charset encoding only in their content had the wrong encoding applied because the content was never checked. Currently only the request headers are checked for the charset encoding, if absent the apparent_encoding heuristic is applied. But the W3.org doc says one should check the header first for a charset declaration, then if that's absent check the meta tags in the content for a charset encoding declaration. It also says if no charset encoding declaration is found one should assume UTF-8, not ISO-8859-1 (a bad recommendation from the early days of the web). This patch does the following: - Removes the default ISO-8859-1 from get_encoding_from_headers(), it's wrong for 2 reasons, 1) get_encoding_from_headers() should return None if no encoding was found in the header, otherwise how can you tell it was absent in the headers? 2) It's the wrong default for the contemporary web. Also because get_encoding_from_headers() always returned an encoding any subsequent logic failed to execute. - The Request text property now does a 4 stage check for encoding in this priority order: 1) encoding declared in the headers 2) encoding declared in the content (selects the highest priority encoding if more than one encoding is declared in the content) 3) apply apparent_encoding hueristic (includes BOM) 4) if none of the above default to UTF-8
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1589/reactions" }
https://api.github.com/repos/psf/requests/issues/1589/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1589.diff", "html_url": "https://github.com/psf/requests/pull/1589", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1589.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1589" }
true
[ "somehow I didn't get the issue and pull request linked together, the issue is 1588\n", "Thanks for this @jdennis! It's great work.\n\nUnfortunately, this pull request won't be accepted in its current form. This is for a few reasons:\n1. Requests used to check the content header of HTML pages for charsets in olde...
https://api.github.com/repos/psf/requests/issues/1588
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1588/labels{/name}
https://api.github.com/repos/psf/requests/issues/1588/comments
https://api.github.com/repos/psf/requests/issues/1588/events
https://github.com/psf/requests/issues/1588
19,280,294
MDU6SXNzdWUxOTI4MDI5NA==
1,588
Wrong encoding used if charset only specified in content
{ "avatar_url": "https://avatars.githubusercontent.com/u/300306?v=4", "events_url": "https://api.github.com/users/jdennis/events{/privacy}", "followers_url": "https://api.github.com/users/jdennis/followers", "following_url": "https://api.github.com/users/jdennis/following{/other_user}", "gists_url": "https://api.github.com/users/jdennis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jdennis", "id": 300306, "login": "jdennis", "node_id": "MDQ6VXNlcjMwMDMwNg==", "organizations_url": "https://api.github.com/users/jdennis/orgs", "received_events_url": "https://api.github.com/users/jdennis/received_events", "repos_url": "https://api.github.com/users/jdennis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jdennis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jdennis/subscriptions", "type": "User", "url": "https://api.github.com/users/jdennis", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-10T19:40:58Z
2021-09-08T23:10:44Z
2013-09-10T20:53:33Z
NONE
resolved
HTML pages which declared their charset encoding only in their content had the wrong encoding applied because the content was never checked. Currently only the request headers are checked for the charset encoding, if absent the apparent_encoding heuristic is applied. But the W3.org doc says one should check the header first for a charset declaration, then if that's absent check the meta tags in the content for a charset encoding declaration. It also says if no charset encoding declaration is found one should assume UTF-8, not ISO-8859-1 (a bad recommendation from the early days of the web). I have a patch (pull request), more details in the commit comment.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1588/reactions" }
https://api.github.com/repos/psf/requests/issues/1588/timeline
null
completed
null
null
false
[ "All relevant discussion is in #1589, so I'm closing this to centralise the discussion there. =)\n" ]
https://api.github.com/repos/psf/requests/issues/1587
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1587/labels{/name}
https://api.github.com/repos/psf/requests/issues/1587/comments
https://api.github.com/repos/psf/requests/issues/1587/events
https://github.com/psf/requests/pull/1587
19,255,461
MDExOlB1bGxSZXF1ZXN0ODIwODY1MA==
1,587
Fixed persistence spelling
{ "avatar_url": "https://avatars.githubusercontent.com/u/311929?v=4", "events_url": "https://api.github.com/users/kracekumar/events{/privacy}", "followers_url": "https://api.github.com/users/kracekumar/followers", "following_url": "https://api.github.com/users/kracekumar/following{/other_user}", "gists_url": "https://api.github.com/users/kracekumar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kracekumar", "id": 311929, "login": "kracekumar", "node_id": "MDQ6VXNlcjMxMTkyOQ==", "organizations_url": "https://api.github.com/users/kracekumar/orgs", "received_events_url": "https://api.github.com/users/kracekumar/received_events", "repos_url": "https://api.github.com/users/kracekumar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kracekumar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kracekumar/subscriptions", "type": "User", "url": "https://api.github.com/users/kracekumar", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-10T12:22:37Z
2021-09-08T21:01:10Z
2013-09-10T13:43:04Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1587/reactions" }
https://api.github.com/repos/psf/requests/issues/1587/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1587.diff", "html_url": "https://github.com/psf/requests/pull/1587", "merged_at": "2013-09-10T13:43:04Z", "patch_url": "https://github.com/psf/requests/pull/1587.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1587" }
true
[ "Thanks for this! :cake:\n" ]
https://api.github.com/repos/psf/requests/issues/1586
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1586/labels{/name}
https://api.github.com/repos/psf/requests/issues/1586/comments
https://api.github.com/repos/psf/requests/issues/1586/events
https://github.com/psf/requests/issues/1586
19,200,817
MDU6SXNzdWUxOTIwMDgxNw==
1,586
deactivate automatic gzip decompression ?
{ "avatar_url": "https://avatars.githubusercontent.com/u/898264?v=4", "events_url": "https://api.github.com/users/uweschmitt/events{/privacy}", "followers_url": "https://api.github.com/users/uweschmitt/followers", "following_url": "https://api.github.com/users/uweschmitt/following{/other_user}", "gists_url": "https://api.github.com/users/uweschmitt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/uweschmitt", "id": 898264, "login": "uweschmitt", "node_id": "MDQ6VXNlcjg5ODI2NA==", "organizations_url": "https://api.github.com/users/uweschmitt/orgs", "received_events_url": "https://api.github.com/users/uweschmitt/received_events", "repos_url": "https://api.github.com/users/uweschmitt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/uweschmitt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/uweschmitt/subscriptions", "type": "User", "url": "https://api.github.com/users/uweschmitt", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2013-09-09T14:47:07Z
2021-08-27T00:08:24Z
2013-09-11T07:34:56Z
NONE
resolved
I had some trouble to download a tar.gz file from a file server with a http interface, because I was not aware of the automatic decompression feature. Would it be possible to add an extra parameter which switches this feature off ?
{ "avatar_url": "https://avatars.githubusercontent.com/u/898264?v=4", "events_url": "https://api.github.com/users/uweschmitt/events{/privacy}", "followers_url": "https://api.github.com/users/uweschmitt/followers", "following_url": "https://api.github.com/users/uweschmitt/following{/other_user}", "gists_url": "https://api.github.com/users/uweschmitt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/uweschmitt", "id": 898264, "login": "uweschmitt", "node_id": "MDQ6VXNlcjg5ODI2NA==", "organizations_url": "https://api.github.com/users/uweschmitt/orgs", "received_events_url": "https://api.github.com/users/uweschmitt/received_events", "repos_url": "https://api.github.com/users/uweschmitt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/uweschmitt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/uweschmitt/subscriptions", "type": "User", "url": "https://api.github.com/users/uweschmitt", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1586/reactions" }
https://api.github.com/repos/psf/requests/issues/1586/timeline
null
completed
null
null
false
[ "Thanks for raising this issue!\n\nQuickly, before I dive into this: the correct solution when Requests is getting in your way like this is to use `Response.raw`. =) \n\nBefore we get into discussing this feature request further, I'm interested to know how this problem bit you. We should only decompress the file if...
https://api.github.com/repos/psf/requests/issues/1585
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1585/labels{/name}
https://api.github.com/repos/psf/requests/issues/1585/comments
https://api.github.com/repos/psf/requests/issues/1585/events
https://github.com/psf/requests/pull/1585
19,192,427
MDExOlB1bGxSZXF1ZXN0ODE3NjAwMw==
1,585
Use values() when the keys are not being used
{ "avatar_url": "https://avatars.githubusercontent.com/u/156810?v=4", "events_url": "https://api.github.com/users/rvoicilas/events{/privacy}", "followers_url": "https://api.github.com/users/rvoicilas/followers", "following_url": "https://api.github.com/users/rvoicilas/following{/other_user}", "gists_url": "https://api.github.com/users/rvoicilas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rvoicilas", "id": 156810, "login": "rvoicilas", "node_id": "MDQ6VXNlcjE1NjgxMA==", "organizations_url": "https://api.github.com/users/rvoicilas/orgs", "received_events_url": "https://api.github.com/users/rvoicilas/received_events", "repos_url": "https://api.github.com/users/rvoicilas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rvoicilas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rvoicilas/subscriptions", "type": "User", "url": "https://api.github.com/users/rvoicilas", "user_view_type": "public" }
[ { "color": "009800", "default": false, "description": null, "id": 44501218, "name": "Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTIxOA==", "url": "https://api.github.com/repos/psf/requests/labels/Ready%20To%20Merge" } ]
closed
true
null
[]
null
2
2013-09-09T12:29:57Z
2021-09-08T23:05:14Z
2013-09-24T17:45:46Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1585/reactions" }
https://api.github.com/repos/psf/requests/issues/1585/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1585.diff", "html_url": "https://github.com/psf/requests/pull/1585", "merged_at": "2013-09-24T17:45:46Z", "patch_url": "https://github.com/psf/requests/pull/1585.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1585" }
true
[ "This looks good to me! +1 :cake:\n", ":+1: :cake:\n" ]
https://api.github.com/repos/psf/requests/issues/1584
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1584/labels{/name}
https://api.github.com/repos/psf/requests/issues/1584/comments
https://api.github.com/repos/psf/requests/issues/1584/events
https://github.com/psf/requests/issues/1584
19,179,705
MDU6SXNzdWUxOTE3OTcwNQ==
1,584
POST a Multipart-Encoded File with streaming
{ "avatar_url": "https://avatars.githubusercontent.com/u/30210?v=4", "events_url": "https://api.github.com/users/robi-wan/events{/privacy}", "followers_url": "https://api.github.com/users/robi-wan/followers", "following_url": "https://api.github.com/users/robi-wan/following{/other_user}", "gists_url": "https://api.github.com/users/robi-wan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/robi-wan", "id": 30210, "login": "robi-wan", "node_id": "MDQ6VXNlcjMwMjEw", "organizations_url": "https://api.github.com/users/robi-wan/orgs", "received_events_url": "https://api.github.com/users/robi-wan/received_events", "repos_url": "https://api.github.com/users/robi-wan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/robi-wan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/robi-wan/subscriptions", "type": "User", "url": "https://api.github.com/users/robi-wan", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2013-09-09T07:11:46Z
2021-09-07T00:06:25Z
2014-02-03T10:50:13Z
NONE
resolved
We have a web application which accepts (large) files together with some meta data. We build a form for uploading these kind of files - and then we added a REST-Interface to this form. I build an upload task in our fabfile which essentialliy does this: ``` python with open(filename, 'rb') as f: response = requests.post(url, data=values, files={'file': f}) ``` It seems that that for multipart-encoded POST requests streaming does not work because I get this error (since our files exceeded 128 MB file size): ``` python Upload artifact 'artifact.tar.gz' (group, SNAPSHOT) running on http://<ip> on behalf of user 'fabric'. 2aeaa77d0ac917a28e15ec73fe92e060 *artifact.tar.gz Traceback (most recent call last): File "C:\Documents and Settings\Administrator\.virtualenvs\avatar\lib\site-packages\fabric\main.py", line 743, in main *args, **kwargs File "C:\Documents and Settings\Administrator\.virtualenvs\avatar\lib\site-packages\fabric\tasks.py", line 405, in execute results['<local-only>'] = task.run(*args, **new_kwargs) File "C:\Documents and Settings\Administrator\.virtualenvs\avatar\lib\site-packages\fabric\tasks.py", line 171, in run return self.wrapped(*args, **kwargs) File "C:\development\work\avatar_herbsting_2013\fabfile.py", line 480, in upload response = upload_artifact(**data) File "C:\development\work\avatar_herbsting_2013\scripts\fabfile\deploy.py", line 106, in upload_artifact response = requests.post(url, data=values, files={'file': f}) File "C:\Documents and Settings\Administrator\.virtualenvs\avatar\lib\site-packages\requests\api.py", line 88, in post return request('post', url, data=data, **kwargs) File "C:\Documents and Settings\Administrator\.virtualenvs\avatar\lib\site-packages\requests\api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "C:\Documents and Settings\Administrator\.virtualenvs\avatar\lib\site-packages\requests\sessions.py", line 335, in request resp = self.send(prep, **send_kwargs) File "C:\Documents and Settings\Administrator\.virtualenvs\avatar\lib\site-packages\requests\sessions.py", line 438, in send r = adapter.send(request, **kwargs) File "C:\Documents and Settings\Administrator\.virtualenvs\avatar\lib\site-packages\requests\adapters.py", line 327, in send raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPConnectionPool(host='<ip>', port=80): Max retries exceeded with url: /deliver/upload/ (Caused by <class 'socket.error'>: [Errno 10055] An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full) ``` Happens on Windows XP SP3 32bit with 2 GB RAM and Windows Server 2003 R2 SP2 with 3 GB RAM. Python 2.7.5 32bit. requests 1.2.3 Full code (filename contains the path to the large file I want to upload): ``` python def upload_artifact(address, filename, version, group, username): """Upload an artifact. """ path = 'deliver/upload/' url = urlparse.urljoin(address, path) # get id for group url_group_id = urlparse.urljoin(address, 'deliver/groupidbyname/?groupname={}'.format(group)) response = requests.get(url_group_id) group_id = response.text # upload file values = {'md5hash': md5sum(filename), 'group': group_id, 'version': version, 'username': username, } with open(filename, 'rb') as f: response = requests.post(url, data=values, files={'file': f}) return response ``` Is there a way to enable streaming of the large file for this case?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1584/reactions" }
https://api.github.com/repos/psf/requests/issues/1584/timeline
null
completed
null
null
false
[ "Hi @robi-wan, thanks for raising this issue!\n\nFirstly, I'll address the question you actually asked. Currently Requests does not support streaming multipart-encoded files. If you want to do this you'll need to provide a file-like-object wrapper for your file that does the multipart encoding itself, and then pass...
https://api.github.com/repos/psf/requests/issues/1583
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1583/labels{/name}
https://api.github.com/repos/psf/requests/issues/1583/comments
https://api.github.com/repos/psf/requests/issues/1583/events
https://github.com/psf/requests/issues/1583
19,179,016
MDU6SXNzdWUxOTE3OTAxNg==
1,583
Add decode_content as a parameter to requests()
{ "avatar_url": "https://avatars.githubusercontent.com/u/2334429?v=4", "events_url": "https://api.github.com/users/klahnakoski/events{/privacy}", "followers_url": "https://api.github.com/users/klahnakoski/followers", "following_url": "https://api.github.com/users/klahnakoski/following{/other_user}", "gists_url": "https://api.github.com/users/klahnakoski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/klahnakoski", "id": 2334429, "login": "klahnakoski", "node_id": "MDQ6VXNlcjIzMzQ0Mjk=", "organizations_url": "https://api.github.com/users/klahnakoski/orgs", "received_events_url": "https://api.github.com/users/klahnakoski/received_events", "repos_url": "https://api.github.com/users/klahnakoski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/klahnakoski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/klahnakoski/subscriptions", "type": "User", "url": "https://api.github.com/users/klahnakoski", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2013-09-09T06:44:58Z
2021-09-09T00:28:14Z
2013-09-09T12:30:51Z
NONE
resolved
I would like to use Requests with Flask to make a proxy. I must deal with some large zipped responses (and I do not care about the content). Please add decode_content as a parameter to requests() so I can return the bytes directly back to the original caller. Specifically, I want to use this with stream=True and pass the iter_content() generator back to Flask for delivery to the original caller. Thanks
{ "avatar_url": "https://avatars.githubusercontent.com/u/2334429?v=4", "events_url": "https://api.github.com/users/klahnakoski/events{/privacy}", "followers_url": "https://api.github.com/users/klahnakoski/followers", "following_url": "https://api.github.com/users/klahnakoski/following{/other_user}", "gists_url": "https://api.github.com/users/klahnakoski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/klahnakoski", "id": 2334429, "login": "klahnakoski", "node_id": "MDQ6VXNlcjIzMzQ0Mjk=", "organizations_url": "https://api.github.com/users/klahnakoski/orgs", "received_events_url": "https://api.github.com/users/klahnakoski/received_events", "repos_url": "https://api.github.com/users/klahnakoski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/klahnakoski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/klahnakoski/subscriptions", "type": "User", "url": "https://api.github.com/users/klahnakoski", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1583/reactions" }
https://api.github.com/repos/psf/requests/issues/1583/timeline
null
completed
null
null
false
[ "Thanks for raising this issue!\n\nThis is exactly what we expose the [raw response](http://docs.python-requests.org/en/latest/user/quickstart/#raw-response-content) for. In vanilla Requests this response object is a urllib3 Response object, which contains a [`stream()` method](http://urllib3.readthedocs.org/en/lat...
https://api.github.com/repos/psf/requests/issues/1582
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1582/labels{/name}
https://api.github.com/repos/psf/requests/issues/1582/comments
https://api.github.com/repos/psf/requests/issues/1582/events
https://github.com/psf/requests/issues/1582
19,150,544
MDU6SXNzdWUxOTE1MDU0NA==
1,582
Allow custom authentication (in particular NTLM) to proxies
{ "avatar_url": "https://avatars.githubusercontent.com/u/105314?v=4", "events_url": "https://api.github.com/users/hickford/events{/privacy}", "followers_url": "https://api.github.com/users/hickford/followers", "following_url": "https://api.github.com/users/hickford/following{/other_user}", "gists_url": "https://api.github.com/users/hickford/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hickford", "id": 105314, "login": "hickford", "node_id": "MDQ6VXNlcjEwNTMxNA==", "organizations_url": "https://api.github.com/users/hickford/orgs", "received_events_url": "https://api.github.com/users/hickford/received_events", "repos_url": "https://api.github.com/users/hickford/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hickford/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hickford/subscriptions", "type": "User", "url": "https://api.github.com/users/hickford", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2013-09-07T19:38:19Z
2021-09-08T19:00:28Z
2013-09-21T15:22:58Z
NONE
resolved
Requests can do many kinds of authentication—basic, digest, OAuth1. Even better, [the great API](http://docs.python-requests.org/en/latest/user/authentication/) allows users to specify a custom authentication class ``` import requests from requests_ntlm import HttpNtlmAuth requests.get("http://ntlm_protected_site.com",auth=HttpNtlmAuth('domain\\username','password')) ``` However for _proxies_, the only authentication presently supported is Basic. The API doesn't allow you to specify other or custom classes. http://docs.python-requests.org/en/latest/user/advanced/#proxies > To use HTTP Basic Auth with your proxy, use the http://user:password@host/ syntax: Please could you expand the API to allow custom authentication for proxies too? This would be mega useful. NTLM proxies are common in Windows corporate networks. Python development can't get off the ground in my office because the package manager (and everything else) falls over at the proxy. Examples - https://github.com/pypa/pip/issues/1182 - https://github.com/jkbr/httpie/issues/159
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1582/reactions" }
https://api.github.com/repos/psf/requests/issues/1582/timeline
null
completed
null
null
false
[ "It's not obvious what the syntax should look like. This is the current API (string based)\n\n```\nproxies = {\n \"http\": \"http://10.10.1.10:3128\",\n \"https\": \"http://user:pass10.10.1.10:1080\", # basic authentication\n}\nrequests.get(\"http://example.org\", proxies=proxies)\n```\n\nWill want to preserve t...
https://api.github.com/repos/psf/requests/issues/1581
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1581/labels{/name}
https://api.github.com/repos/psf/requests/issues/1581/comments
https://api.github.com/repos/psf/requests/issues/1581/events
https://github.com/psf/requests/issues/1581
19,142,108
MDU6SXNzdWUxOTE0MjEwOA==
1,581
Python 3 issue with urllib3 (local) import
{ "avatar_url": "https://avatars.githubusercontent.com/u/4925587?v=4", "events_url": "https://api.github.com/users/barseghyanartur/events{/privacy}", "followers_url": "https://api.github.com/users/barseghyanartur/followers", "following_url": "https://api.github.com/users/barseghyanartur/following{/other_user}", "gists_url": "https://api.github.com/users/barseghyanartur/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/barseghyanartur", "id": 4925587, "login": "barseghyanartur", "node_id": "MDQ6VXNlcjQ5MjU1ODc=", "organizations_url": "https://api.github.com/users/barseghyanartur/orgs", "received_events_url": "https://api.github.com/users/barseghyanartur/received_events", "repos_url": "https://api.github.com/users/barseghyanartur/repos", "site_admin": false, "starred_url": "https://api.github.com/users/barseghyanartur/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/barseghyanartur/subscriptions", "type": "User", "url": "https://api.github.com/users/barseghyanartur", "user_view_type": "public" }
[]
closed
true
null
[]
null
25
2013-09-07T10:13:46Z
2018-02-26T19:43:50Z
2013-09-08T18:43:36Z
NONE
resolved
The problem with broken import occurs when Python 3.3.0 (virtualenv, Ubuntu 12.04 LTS). In Python 2.7.4 (virtualenv, same machine) everything runs smoothly. The traceback: ``` File "/home/me/.virtualenvs/starbase3/lib/python3.3/site-packages/requests-1.2.3-py3.3.egg/requests/packages/__init__.py", line 3, in <module> from . import urllib3 ImportError: cannot import name urllib3 ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/4925587?v=4", "events_url": "https://api.github.com/users/barseghyanartur/events{/privacy}", "followers_url": "https://api.github.com/users/barseghyanartur/followers", "following_url": "https://api.github.com/users/barseghyanartur/following{/other_user}", "gists_url": "https://api.github.com/users/barseghyanartur/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/barseghyanartur", "id": 4925587, "login": "barseghyanartur", "node_id": "MDQ6VXNlcjQ5MjU1ODc=", "organizations_url": "https://api.github.com/users/barseghyanartur/orgs", "received_events_url": "https://api.github.com/users/barseghyanartur/received_events", "repos_url": "https://api.github.com/users/barseghyanartur/repos", "site_admin": false, "starred_url": "https://api.github.com/users/barseghyanartur/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/barseghyanartur/subscriptions", "type": "User", "url": "https://api.github.com/users/barseghyanartur", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1581/reactions" }
https://api.github.com/repos/psf/requests/issues/1581/timeline
null
completed
null
null
false
[ "Weird, this looks like your install is broken. Try reinstalling Requests in the same virtualenv?\n", "It seems that the following causes the problem.\n\n# Directory structure\n\n├── src\n│   └── myapp\n│   │   ├── test_requests.py\n│   │   └── utils.py\n└── test_request.py\n\n# `test_requests.py` content...
https://api.github.com/repos/psf/requests/issues/1580
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1580/labels{/name}
https://api.github.com/repos/psf/requests/issues/1580/comments
https://api.github.com/repos/psf/requests/issues/1580/events
https://github.com/psf/requests/issues/1580
19,139,552
MDU6SXNzdWUxOTEzOTU1Mg==
1,580
websocket support
{ "avatar_url": "https://avatars.githubusercontent.com/u/634283?v=4", "events_url": "https://api.github.com/users/vivekhub/events{/privacy}", "followers_url": "https://api.github.com/users/vivekhub/followers", "following_url": "https://api.github.com/users/vivekhub/following{/other_user}", "gists_url": "https://api.github.com/users/vivekhub/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vivekhub", "id": 634283, "login": "vivekhub", "node_id": "MDQ6VXNlcjYzNDI4Mw==", "organizations_url": "https://api.github.com/users/vivekhub/orgs", "received_events_url": "https://api.github.com/users/vivekhub/received_events", "repos_url": "https://api.github.com/users/vivekhub/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vivekhub/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vivekhub/subscriptions", "type": "User", "url": "https://api.github.com/users/vivekhub", "user_view_type": "public" }
[]
closed
true
null
[]
null
10
2013-09-07T07:21:47Z
2021-09-09T01:22:28Z
2013-09-07T14:05:24Z
NONE
resolved
Hello: i was trying to figure out if there is support for websockets in requests. Have been trying to find out but the documentation does not talk about it. Can someone help ?
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1580/reactions" }
https://api.github.com/repos/psf/requests/issues/1580/timeline
null
completed
null
null
false
[ "Hi Vivek \n\nI believe this has been asked several times on StackOverflow. The answer is that we do not support websockets. We explicitly support HTTP/1.1 which is RFC 2675 (or something around that). It's unlikely we will support websockets in the near future too.\n", "Websockets are not related to HTTP in any ...
https://api.github.com/repos/psf/requests/issues/1579
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1579/labels{/name}
https://api.github.com/repos/psf/requests/issues/1579/comments
https://api.github.com/repos/psf/requests/issues/1579/events
https://github.com/psf/requests/pull/1579
19,137,005
MDExOlB1bGxSZXF1ZXN0ODE1NDk1Ng==
1,579
Clarify timeout behavior in quickstart doc
{ "avatar_url": "https://avatars.githubusercontent.com/u/7129?v=4", "events_url": "https://api.github.com/users/yang/events{/privacy}", "followers_url": "https://api.github.com/users/yang/followers", "following_url": "https://api.github.com/users/yang/following{/other_user}", "gists_url": "https://api.github.com/users/yang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yang", "id": 7129, "login": "yang", "node_id": "MDQ6VXNlcjcxMjk=", "organizations_url": "https://api.github.com/users/yang/orgs", "received_events_url": "https://api.github.com/users/yang/received_events", "repos_url": "https://api.github.com/users/yang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yang/subscriptions", "type": "User", "url": "https://api.github.com/users/yang", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2013-09-07T02:28:00Z
2021-09-08T21:01:10Z
2013-09-08T15:05:00Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1579/reactions" }
https://api.github.com/repos/psf/requests/issues/1579/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1579.diff", "html_url": "https://github.com/psf/requests/pull/1579", "merged_at": "2013-09-08T15:05:00Z", "patch_url": "https://github.com/psf/requests/pull/1579.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1579" }
true
[ ":+1:\n\nPlease feel free to send more PRs like this. :cake:\n", "This is excellent @yang, thank you so much! :cake:\n" ]
https://api.github.com/repos/psf/requests/issues/1578
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1578/labels{/name}
https://api.github.com/repos/psf/requests/issues/1578/comments
https://api.github.com/repos/psf/requests/issues/1578/events
https://github.com/psf/requests/pull/1578
18,980,371
MDExOlB1bGxSZXF1ZXN0ODA3NzcwMA==
1,578
Adding myself to the list of contributors.
{ "avatar_url": "https://avatars.githubusercontent.com/u/10311?v=4", "events_url": "https://api.github.com/users/jparise/events{/privacy}", "followers_url": "https://api.github.com/users/jparise/followers", "following_url": "https://api.github.com/users/jparise/following{/other_user}", "gists_url": "https://api.github.com/users/jparise/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jparise", "id": 10311, "login": "jparise", "node_id": "MDQ6VXNlcjEwMzEx", "organizations_url": "https://api.github.com/users/jparise/orgs", "received_events_url": "https://api.github.com/users/jparise/received_events", "repos_url": "https://api.github.com/users/jparise/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jparise/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jparise/subscriptions", "type": "User", "url": "https://api.github.com/users/jparise", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-04T16:01:07Z
2021-09-08T21:01:09Z
2013-09-05T06:44:28Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1578/reactions" }
https://api.github.com/repos/psf/requests/issues/1578/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1578.diff", "html_url": "https://github.com/psf/requests/pull/1578", "merged_at": "2013-09-05T06:44:28Z", "patch_url": "https://github.com/psf/requests/pull/1578.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1578" }
true
[ "Well deserved @jparise, thanks so much for your work! :grin:\n" ]
https://api.github.com/repos/psf/requests/issues/1577
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1577/labels{/name}
https://api.github.com/repos/psf/requests/issues/1577/comments
https://api.github.com/repos/psf/requests/issues/1577/events
https://github.com/psf/requests/issues/1577
18,973,622
MDU6SXNzdWUxODk3MzYyMg==
1,577
Requests not timing out
{ "avatar_url": "https://avatars.githubusercontent.com/u/1452980?v=4", "events_url": "https://api.github.com/users/laruellef/events{/privacy}", "followers_url": "https://api.github.com/users/laruellef/followers", "following_url": "https://api.github.com/users/laruellef/following{/other_user}", "gists_url": "https://api.github.com/users/laruellef/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/laruellef", "id": 1452980, "login": "laruellef", "node_id": "MDQ6VXNlcjE0NTI5ODA=", "organizations_url": "https://api.github.com/users/laruellef/orgs", "received_events_url": "https://api.github.com/users/laruellef/received_events", "repos_url": "https://api.github.com/users/laruellef/repos", "site_admin": false, "starred_url": "https://api.github.com/users/laruellef/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/laruellef/subscriptions", "type": "User", "url": "https://api.github.com/users/laruellef", "user_view_type": "public" }
[]
closed
true
null
[]
null
14
2013-09-04T14:11:39Z
2018-11-24T13:51:16Z
2013-09-05T08:16:44Z
NONE
resolved
Got a strange case of failing timeout on a particular url, when trying in browser, seems like this page never completes loading... The expected behavior would be for requests to timeout, however it is not happening: this times out fine: requests.get("http://www.iva.net/blog/", timeout=0.1) but this doesn't: requests.get("http://www.iva.net/blog/", timeout=1) I'm on python 2.7.5 and requests 1.2.3
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1577/reactions" }
https://api.github.com/repos/psf/requests/issues/1577/timeline
null
completed
null
null
false
[ "This is expected behaviour\nhttp://docs.python-requests.org/en/latest/user/quickstart/#timeouts\n\n> Note: timeout only affects the connection process itself, not the downloading of the response body.\n\nThe connection is established successfully, but the page just keeps sending the response body indefinitely. \n"...
https://api.github.com/repos/psf/requests/issues/1576
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1576/labels{/name}
https://api.github.com/repos/psf/requests/issues/1576/comments
https://api.github.com/repos/psf/requests/issues/1576/events
https://github.com/psf/requests/issues/1576
18,953,379
MDU6SXNzdWUxODk1MzM3OQ==
1,576
Better Error Message When Server Uses an Older Version of SSL?
{ "avatar_url": "https://avatars.githubusercontent.com/u/279060?v=4", "events_url": "https://api.github.com/users/karanlyons/events{/privacy}", "followers_url": "https://api.github.com/users/karanlyons/followers", "following_url": "https://api.github.com/users/karanlyons/following{/other_user}", "gists_url": "https://api.github.com/users/karanlyons/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/karanlyons", "id": 279060, "login": "karanlyons", "node_id": "MDQ6VXNlcjI3OTA2MA==", "organizations_url": "https://api.github.com/users/karanlyons/orgs", "received_events_url": "https://api.github.com/users/karanlyons/received_events", "repos_url": "https://api.github.com/users/karanlyons/repos", "site_admin": false, "starred_url": "https://api.github.com/users/karanlyons/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/karanlyons/subscriptions", "type": "User", "url": "https://api.github.com/users/karanlyons", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-04T05:00:12Z
2021-09-09T01:22:28Z
2013-09-04T05:18:45Z
NONE
resolved
My bad, guys, this was a dupe of #1567. Is there a way we can make a suggestion about what the issue might be in the event of a reset SSL connection? Something that clues the dev into trying an older SSL version?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1576/reactions" }
https://api.github.com/repos/psf/requests/issues/1576/timeline
null
completed
null
null
false
[ "Thanks for this @karanlyons! As far as I can see, this is difficult to do in this particular case. The server's response to the TLS handshake was to close the connection, which is exactly the error we report. Unfortunately, it's not clear whether that TCP RST segment has anything to do with the TLS negotiation. Fo...
https://api.github.com/repos/psf/requests/issues/1575
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1575/labels{/name}
https://api.github.com/repos/psf/requests/issues/1575/comments
https://api.github.com/repos/psf/requests/issues/1575/events
https://github.com/psf/requests/pull/1575
18,944,968
MDExOlB1bGxSZXF1ZXN0ODA1ODczNw==
1,575
Improved content encoding detection.
{ "avatar_url": "https://avatars.githubusercontent.com/u/10311?v=4", "events_url": "https://api.github.com/users/jparise/events{/privacy}", "followers_url": "https://api.github.com/users/jparise/followers", "following_url": "https://api.github.com/users/jparise/following{/other_user}", "gists_url": "https://api.github.com/users/jparise/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jparise", "id": 10311, "login": "jparise", "node_id": "MDQ6VXNlcjEwMzEx", "organizations_url": "https://api.github.com/users/jparise/orgs", "received_events_url": "https://api.github.com/users/jparise/received_events", "repos_url": "https://api.github.com/users/jparise/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jparise/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jparise/subscriptions", "type": "User", "url": "https://api.github.com/users/jparise", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-03T23:21:51Z
2021-09-08T23:08:12Z
2013-09-04T02:42:43Z
CONTRIBUTOR
resolved
`get_encodings_from_content()` can now detect HTML in-document content encoding declarations in the following formats: - HTML5 - HTML4 - XHTML 1.x served with text/html MIME type - XHTML 1.x served as XML Ref: http://www.w3.org/International/questions/qa-html-encoding-declarations
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1575/reactions" }
https://api.github.com/repos/psf/requests/issues/1575/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1575.diff", "html_url": "https://github.com/psf/requests/pull/1575", "merged_at": "2013-09-04T02:42:43Z", "patch_url": "https://github.com/psf/requests/pull/1575.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1575" }
true
[ "Thanks so much!\n" ]
https://api.github.com/repos/psf/requests/issues/1574
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1574/labels{/name}
https://api.github.com/repos/psf/requests/issues/1574/comments
https://api.github.com/repos/psf/requests/issues/1574/events
https://github.com/psf/requests/issues/1574
18,912,211
MDU6SXNzdWUxODkxMjIxMQ==
1,574
Authentication with large POSTs not working (with aggressive servers)
{ "avatar_url": "https://avatars.githubusercontent.com/u/669080?v=4", "events_url": "https://api.github.com/users/ntx-/events{/privacy}", "followers_url": "https://api.github.com/users/ntx-/followers", "following_url": "https://api.github.com/users/ntx-/following{/other_user}", "gists_url": "https://api.github.com/users/ntx-/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ntx-", "id": 669080, "login": "ntx-", "node_id": "MDQ6VXNlcjY2OTA4MA==", "organizations_url": "https://api.github.com/users/ntx-/orgs", "received_events_url": "https://api.github.com/users/ntx-/received_events", "repos_url": "https://api.github.com/users/ntx-/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ntx-/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ntx-/subscriptions", "type": "User", "url": "https://api.github.com/users/ntx-", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-03T14:44:02Z
2021-09-09T01:22:22Z
2013-09-24T17:51:19Z
NONE
resolved
When sending a large (multipart) POST request to a server requiring digest access authentication the "401 Unauthorized" response might be received and the connection terminated before the HTTPConnection.request() in HTTPConnectionPool._make_request() has returned causing the underlying socket routines to fail with EPIPE. The resulting exception is not caught and the subsequent handling of the 401 response is not triggered causing the whole POST to fail with the following exception: ``` Traceback (most recent call last): <my code> File "<requests>/api.py", line 88, in post return request('post', url, data=data, **kwargs) File "<requests>/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "<requests>/sessions.py", line 344, in request resp = self.send(prep, **send_kwargs) File "<requests>/sessions.py", line 447, in send r = adapter.send(request, **kwargs) File "<requests>/adapters.py", line 318, in send raise ConnectionError(e) ConnectionError: HTTPConnectionPool(host=<host>, port=80): Max retries exceeded with url: <url> (Caused by <class 'socket.error'>: [Errno 32] Broken pipe) ``` The same issue is also present when implementing essentially the same thing with urllib2. I'm not sure if this is standard behavior for servers requiring digest authentication (have only tested the affected server so far) or if this is due to a special safe-guard against DoS attacks. For testing I used Requests 1.2.0 and Python 2.7.4 with Ubuntu 13.04 inside VirtualBox, and I was unable to reproduce the issue on the host Windows 8. PS. I temporarily worked around the issue by suppressing the specific exception (socket.error with EPIPE) inside Requests and letting _make_request() attempt to read the response. This worked as expected and allowed the 401 handling to kick in. But I'm sure there are some cases where this leads to undesired behavior.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1574/reactions" }
https://api.github.com/repos/psf/requests/issues/1574/timeline
null
completed
null
null
false
[ "@ntx Thanks for raising this issue! I agree, this is a fairly graceless way to fail. I think the correct place for this fix is in [urllib3](https://github.com/shazow/urllib3), which implements our connection-layer logic. A simple exception handler should suffice over there. Can I recommend you open an issue on tha...
https://api.github.com/repos/psf/requests/issues/1573
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1573/labels{/name}
https://api.github.com/repos/psf/requests/issues/1573/comments
https://api.github.com/repos/psf/requests/issues/1573/events
https://github.com/psf/requests/issues/1573
18,907,279
MDU6SXNzdWUxODkwNzI3OQ==
1,573
Specify password for SSL client side certificate
{ "avatar_url": "https://avatars.githubusercontent.com/u/109361?v=4", "events_url": "https://api.github.com/users/botondus/events{/privacy}", "followers_url": "https://api.github.com/users/botondus/followers", "following_url": "https://api.github.com/users/botondus/following{/other_user}", "gists_url": "https://api.github.com/users/botondus/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/botondus", "id": 109361, "login": "botondus", "node_id": "MDQ6VXNlcjEwOTM2MQ==", "organizations_url": "https://api.github.com/users/botondus/orgs", "received_events_url": "https://api.github.com/users/botondus/received_events", "repos_url": "https://api.github.com/users/botondus/repos", "site_admin": false, "starred_url": "https://api.github.com/users/botondus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/botondus/subscriptions", "type": "User", "url": "https://api.github.com/users/botondus", "user_view_type": "public" }
[ { "color": "e102d8", "default": false, "description": null, "id": 117745, "name": "Planned", "node_id": "MDU6TGFiZWwxMTc3NDU=", "url": "https://api.github.com/repos/psf/requests/labels/Planned" }, { "color": "fad8c7", "default": false, "description": null, "id": 13661...
closed
true
null
[]
null
122
2013-09-03T13:14:44Z
2021-11-28T05:40:38Z
2021-11-28T05:40:24Z
NONE
resolved
As far as I know currently it's not possible to specify the password for the client side certificate you're using for authentication. This is a bit of a problem because you typically always want to password protect your .pem file which contains the private key. `openssl` won't even let you create one without a password.
{ "avatar_url": "https://avatars.githubusercontent.com/u/18519037?v=4", "events_url": "https://api.github.com/users/sethmlarson/events{/privacy}", "followers_url": "https://api.github.com/users/sethmlarson/followers", "following_url": "https://api.github.com/users/sethmlarson/following{/other_user}", "gists_url": "https://api.github.com/users/sethmlarson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sethmlarson", "id": 18519037, "login": "sethmlarson", "node_id": "MDQ6VXNlcjE4NTE5MDM3", "organizations_url": "https://api.github.com/users/sethmlarson/orgs", "received_events_url": "https://api.github.com/users/sethmlarson/received_events", "repos_url": "https://api.github.com/users/sethmlarson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sethmlarson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sethmlarson/subscriptions", "type": "User", "url": "https://api.github.com/users/sethmlarson", "user_view_type": "public" }
{ "+1": 8, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 8, "url": "https://api.github.com/repos/psf/requests/issues/1573/reactions" }
https://api.github.com/repos/psf/requests/issues/1573/timeline
null
completed
null
null
false
[ "Something like:\n\n`requests.get('https://kennethreitz.com', cert='server.pem', cert_pw='my_password')`\n", "Pretty sure you're supposed to use the `cert` param for that: `cert=('server.pem', 'my_password')`\n", "@sigmavirus24 \nThe tuple is for `(certificate, key)`. Currently there is no support for encrypted...
https://api.github.com/repos/psf/requests/issues/1572
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1572/labels{/name}
https://api.github.com/repos/psf/requests/issues/1572/comments
https://api.github.com/repos/psf/requests/issues/1572/events
https://github.com/psf/requests/issues/1572
18,898,078
MDU6SXNzdWUxODg5ODA3OA==
1,572
urllib3 exceptions passing through requests API
{ "avatar_url": "https://avatars.githubusercontent.com/u/410452?v=4", "events_url": "https://api.github.com/users/sylvinus/events{/privacy}", "followers_url": "https://api.github.com/users/sylvinus/followers", "following_url": "https://api.github.com/users/sylvinus/following{/other_user}", "gists_url": "https://api.github.com/users/sylvinus/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sylvinus", "id": 410452, "login": "sylvinus", "node_id": "MDQ6VXNlcjQxMDQ1Mg==", "organizations_url": "https://api.github.com/users/sylvinus/orgs", "received_events_url": "https://api.github.com/users/sylvinus/received_events", "repos_url": "https://api.github.com/users/sylvinus/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sylvinus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sylvinus/subscriptions", "type": "User", "url": "https://api.github.com/users/sylvinus", "user_view_type": "public" }
[ { "color": "e10c02", "default": false, "description": null, "id": 117744, "name": "Bug", "node_id": "MDU6TGFiZWwxMTc3NDQ=", "url": "https://api.github.com/repos/psf/requests/labels/Bug" }, { "color": "e102d8", "default": false, "description": null, "id": 117745, "...
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url...
{ "closed_at": null, "closed_issues": 29, "created_at": "2013-11-17T11:29:34Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }, "description": null, "due_on": null, "html_url": "https://github.com/psf/requests/milestone/20", "id": 487518, "labels_url": "https://api.github.com/repos/psf/requests/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lNDg3NTE4", "number": 20, "open_issues": 12, "state": "open", "title": "3.0.0", "updated_at": "2024-05-19T18:43:00Z", "url": "https://api.github.com/repos/psf/requests/milestones/20" }
13
2013-09-03T09:36:19Z
2021-09-08T22:00:45Z
2015-10-05T14:09:46Z
NONE
resolved
I don't know if it's a design goal of requests to hide urllib3's exceptions and wrap them around requests.exceptions types. (If it's not IMHO it should be, but that's another discussion) If it is, I have at least two of them passing through that I have to catch in addition to requests' exceptions. They are requests.packages.urllib3.exceptions.DecodeError and requests.packages.urllib3.exceptions.TimeoutError (this one I get when a proxy timeouts) Thanks!
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1572/reactions" }
https://api.github.com/repos/psf/requests/issues/1572/timeline
null
completed
null
null
false
[ "I definitely agree with you and would agree that these should be wrapped.\n\nCould you give us stack-traces so we can find where they're bleeding through?\n", "Sorry I don't have stack traces readily available :/\n", "No worries. I have ideas as to where the DecodeError might be coming from but I'm not certain...
https://api.github.com/repos/psf/requests/issues/1571
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1571/labels{/name}
https://api.github.com/repos/psf/requests/issues/1571/comments
https://api.github.com/repos/psf/requests/issues/1571/events
https://github.com/psf/requests/issues/1571
18,890,272
MDU6SXNzdWUxODg5MDI3Mg==
1,571
Support for HTTPS "CONNECT" method
{ "avatar_url": "https://avatars.githubusercontent.com/u/3726484?v=4", "events_url": "https://api.github.com/users/czardoz/events{/privacy}", "followers_url": "https://api.github.com/users/czardoz/followers", "following_url": "https://api.github.com/users/czardoz/following{/other_user}", "gists_url": "https://api.github.com/users/czardoz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/czardoz", "id": 3726484, "login": "czardoz", "node_id": "MDQ6VXNlcjM3MjY0ODQ=", "organizations_url": "https://api.github.com/users/czardoz/orgs", "received_events_url": "https://api.github.com/users/czardoz/received_events", "repos_url": "https://api.github.com/users/czardoz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/czardoz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/czardoz/subscriptions", "type": "User", "url": "https://api.github.com/users/czardoz", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2013-09-03T05:17:10Z
2021-09-09T00:28:31Z
2013-09-03T05:23:22Z
NONE
resolved
This is a Wireshark capture of Firefox using an HTTPS proxy: ``` CONNECT ssl.gstatic.com:443 HTTP/1.1 User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 Proxy-Connection: keep-alive Connection: keep-alive Host: ssl.gstatic.com HTTP/1.1 200 Connection Established Content-Length: 0 <cert exchange, and other stuff> ``` Same URL, using requests: ``` GET https://sni.velox.ch/ HTTP/1.1 Host: sni.velox.ch Accept-Encoding: gzip, deflate, compress Accept: */* User-Agent: Mozilla/5.0 ``` Here the proxy closed the connection, because the `https://` scheme isn't recognized by the proxy. The expected behavior is that a "CONNECT" request is sent to the proxy. Python code used: ``` import requests proxies = {'https': 'http://127.0.0.1:8000/'} user_agent = {'User-Agent': 'Mozilla/5.0'} resp = requests.get("https://sni.velox.ch/", proxies=proxies, headers=user_agent) print resp.status_code print resp.content ``` Traceback: ``` Traceback (most recent call last): File "test_client.py", line 25, in <module> resp = requests.get("https://sni.velox.ch/", proxies=proxies, headers=user_agent) File "/home/aniket/venv/py2sni/local/lib/python2.7/site-packages/requests/api.py", line 55, in get return request('get', url, **kwargs) File "/home/aniket/venv/py2sni/local/lib/python2.7/site-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "/home/aniket/venv/py2sni/local/lib/python2.7/site-packages/requests/sessions.py", line 360, in request resp = self.send(prep, **send_kwargs) File "/home/aniket/venv/py2sni/local/lib/python2.7/site-packages/requests/sessions.py", line 463, in send r = adapter.send(request, **kwargs) File "/home/aniket/venv/py2sni/local/lib/python2.7/site-packages/requests/adapters.py", line 327, in send raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: https://sni.velox.ch/ (Caused by <class 'httplib.BadStatusLine'>: '') ``` Requests version: 1.2.3 Python version: 2.7.3
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1571/reactions" }
https://api.github.com/repos/psf/requests/issues/1571/timeline
null
completed
null
null
false
[ "Thanks for raising this issue, @czardoz!\n\nThis is a longstanding issue that we've known about for a very long time. A quick GitHub search for \"proxy https\" reveals 118 issues that have been raised at one point or another about this problem. Hell, I even [wrote a blog post about it](https://lukasa.co.uk/2013/07...
https://api.github.com/repos/psf/requests/issues/1570
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1570/labels{/name}
https://api.github.com/repos/psf/requests/issues/1570/comments
https://api.github.com/repos/psf/requests/issues/1570/events
https://github.com/psf/requests/issues/1570
18,875,346
MDU6SXNzdWUxODg3NTM0Ng==
1,570
Handle multiple TLS versions out of the box
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
[ { "color": "02e10c", "default": false, "description": null, "id": 76800, "name": "Feature Request", "node_id": "MDU6TGFiZWw3NjgwMA==", "url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request" }, { "color": "fbca04", "default": false, "description": null...
closed
true
null
[]
null
8
2013-09-02T18:03:45Z
2021-09-08T23:06:11Z
2015-01-18T20:29:44Z
CONTRIBUTOR
resolved
There are occasional cases where we could tell a server that we also support a lesser version of TLS when connecting to them and negotiate to a lower version if necessary. This might reduce the noise we get on the issue tracker about making requests that result in SSLErrors. A great deal of the discussion around this has already taken place over on https://github.com/kennethreitz/requests/issues/1567 I'm still trying to discern how much work would be necessary to support this but I can not image it being too much.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1570/reactions" }
https://api.github.com/repos/psf/requests/issues/1570/timeline
null
completed
null
null
false
[ "My understanding is that this is not how TLS works. From [Technet](http://technet.microsoft.com/en-us/library/cc785811.aspx):\n\n> **Client Hello**. The client initiates a session by sending a Client Hello message to the server. The Client Hello message contains:\n> \n> > **Version Number**. The client sends the v...
https://api.github.com/repos/psf/requests/issues/1569
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1569/labels{/name}
https://api.github.com/repos/psf/requests/issues/1569/comments
https://api.github.com/repos/psf/requests/issues/1569/events
https://github.com/psf/requests/pull/1569
18,868,502
MDExOlB1bGxSZXF1ZXN0ODAyMzA2OA==
1,569
remove ipv6 brackets from hostname for httplib
{ "avatar_url": "https://avatars.githubusercontent.com/u/420144?v=4", "events_url": "https://api.github.com/users/alekibango/events{/privacy}", "followers_url": "https://api.github.com/users/alekibango/followers", "following_url": "https://api.github.com/users/alekibango/following{/other_user}", "gists_url": "https://api.github.com/users/alekibango/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alekibango", "id": 420144, "login": "alekibango", "node_id": "MDQ6VXNlcjQyMDE0NA==", "organizations_url": "https://api.github.com/users/alekibango/orgs", "received_events_url": "https://api.github.com/users/alekibango/received_events", "repos_url": "https://api.github.com/users/alekibango/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alekibango/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alekibango/subscriptions", "type": "User", "url": "https://api.github.com/users/alekibango", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-02T14:48:38Z
2021-09-08T21:01:09Z
2013-09-02T15:02:28Z
NONE
resolved
fixes #1568, makes ipv6 actually work like this: a = requests.get('http://[2001:718:1:4::2]/') It might be good idea to use urrlib3 newer than https://github.com/shazow/urllib3/commit/208ba74c796116bafc95d46dfcf4325449643ab6 as it fixes the problem too.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1569/reactions" }
https://api.github.com/repos/psf/requests/issues/1569/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1569.diff", "html_url": "https://github.com/psf/requests/pull/1569", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1569.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1569" }
true
[ "Thanks for this! We'll take the updated version of urllib3 though. =) Look out for the next release of Requests, which should have that updated version.\n" ]
https://api.github.com/repos/psf/requests/issues/1568
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1568/labels{/name}
https://api.github.com/repos/psf/requests/issues/1568/comments
https://api.github.com/repos/psf/requests/issues/1568/events
https://github.com/psf/requests/issues/1568
18,868,224
MDU6SXNzdWUxODg2ODIyNA==
1,568
using numeric ipv6 address needs updated urllib3
{ "avatar_url": "https://avatars.githubusercontent.com/u/420144?v=4", "events_url": "https://api.github.com/users/alekibango/events{/privacy}", "followers_url": "https://api.github.com/users/alekibango/followers", "following_url": "https://api.github.com/users/alekibango/following{/other_user}", "gists_url": "https://api.github.com/users/alekibango/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alekibango", "id": 420144, "login": "alekibango", "node_id": "MDQ6VXNlcjQyMDE0NA==", "organizations_url": "https://api.github.com/users/alekibango/orgs", "received_events_url": "https://api.github.com/users/alekibango/received_events", "repos_url": "https://api.github.com/users/alekibango/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alekibango/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alekibango/subscriptions", "type": "User", "url": "https://api.github.com/users/alekibango", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-02T14:42:17Z
2021-09-09T01:22:29Z
2013-09-02T15:06:27Z
NONE
resolved
using numeric ipv6 fails, as the host contains [] in name, which makes lower calls using httplib raise exception (talking about max. retries and socket.gaierror). we need to fix local urllib copy to use self.host.strip('[]') in ConnectionPool.**init** in connectionpool.py, or rather use urllib3 version newer than this: https://github.com/shazow/urllib3/commit/208ba74c796116bafc95d46dfcf4325449643ab6 i will provide the small patch soon, but updating urllib3 might be better idea
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1568/reactions" }
https://api.github.com/repos/psf/requests/issues/1568/timeline
null
completed
null
null
false
[ "Thanks for this @alekibango, and thanks for providing a PR!\n\nIt's worth noting that this was an issue we already knew about: see #1426. We work very closely with @shazow on his urllib3 project because we build Requests on top of it, and we regularly take newer versions of urllib3 with releases of Requests. I'm r...
https://api.github.com/repos/psf/requests/issues/1567
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1567/labels{/name}
https://api.github.com/repos/psf/requests/issues/1567/comments
https://api.github.com/repos/psf/requests/issues/1567/events
https://github.com/psf/requests/issues/1567
18,843,099
MDU6SXNzdWUxODg0MzA5OQ==
1,567
GET request to "https://sso.queensu.ca" Connection reset by peer
{ "avatar_url": "https://avatars.githubusercontent.com/u/1538657?v=4", "events_url": "https://api.github.com/users/sidequestboy/events{/privacy}", "followers_url": "https://api.github.com/users/sidequestboy/followers", "following_url": "https://api.github.com/users/sidequestboy/following{/other_user}", "gists_url": "https://api.github.com/users/sidequestboy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sidequestboy", "id": 1538657, "login": "sidequestboy", "node_id": "MDQ6VXNlcjE1Mzg2NTc=", "organizations_url": "https://api.github.com/users/sidequestboy/orgs", "received_events_url": "https://api.github.com/users/sidequestboy/received_events", "repos_url": "https://api.github.com/users/sidequestboy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sidequestboy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sidequestboy/subscriptions", "type": "User", "url": "https://api.github.com/users/sidequestboy", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2013-09-01T21:39:39Z
2021-09-09T00:28:25Z
2013-09-02T17:32:09Z
NONE
resolved
with python 2.7.5 ``` python import requests requests.__version__ '1.2.3' requests.get("https://sso.queensu.ca") ``` fails with: ``` python Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/requests/api.py", line 55, in get return request('get', url, **kwargs) File "/usr/lib/python2.7/site-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 335, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 438, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 327, in send raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='sso.queensu.ca', port=443): Max retries exceeded with url: / (Caused by <class 'socket.error'>: [Errno 104] Connection reset by peer) ``` The get request is successful (200) with Firefox, so I tried passing in kwarg `headers` with the headers of my browser to the same error (I thought it might have been a User-Agent issue). I can't find out how to get any more information than that Traceback.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1567/reactions" }
https://api.github.com/repos/psf/requests/issues/1567/timeline
null
completed
null
null
false
[ "So I think this is an SSL problem, because I have no problems running this query on my Windows box. What OS are you using?\n\nAlso, let's ping @t-8ch for his expertise here. =)\n", "@jameh can you inspect the headers that Firefox receives when you visit that site? I have an idea that this might be unrelated to S...
https://api.github.com/repos/psf/requests/issues/1566
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1566/labels{/name}
https://api.github.com/repos/psf/requests/issues/1566/comments
https://api.github.com/repos/psf/requests/issues/1566/events
https://github.com/psf/requests/pull/1566
18,840,438
MDExOlB1bGxSZXF1ZXN0ODAwOTc0NA==
1,566
Add link to Contributor Friendly tag in README
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-09-01T18:23:06Z
2021-09-08T23:07:12Z
2013-09-01T18:25:04Z
CONTRIBUTOR
resolved
Also add note that I'm willing to help anyone who is looking to submit a pull request
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1566/reactions" }
https://api.github.com/repos/psf/requests/issues/1566/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1566.diff", "html_url": "https://github.com/psf/requests/pull/1566", "merged_at": "2013-09-01T18:25:04Z", "patch_url": "https://github.com/psf/requests/pull/1566.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1566" }
true
[ ":chart_with_upwards_trend: \n" ]
https://api.github.com/repos/psf/requests/issues/1565
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1565/labels{/name}
https://api.github.com/repos/psf/requests/issues/1565/comments
https://api.github.com/repos/psf/requests/issues/1565/events
https://github.com/psf/requests/pull/1565
18,839,445
MDExOlB1bGxSZXF1ZXN0ODAwOTM4NA==
1,565
Don't absolute import things we've vendored.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "color": "009800", "default": false, "description": null, "id": 44501218, "name": "Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTIxOA==", "url": "https://api.github.com/repos/psf/requests/labels/Ready%20To%20Merge" } ]
closed
true
null
[]
null
5
2013-09-01T17:12:19Z
2021-09-08T23:07:35Z
2013-09-24T17:39:09Z
MEMBER
resolved
Pointed out by @dstufft in #1560.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1565/reactions" }
https://api.github.com/repos/psf/requests/issues/1565/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1565.diff", "html_url": "https://github.com/psf/requests/pull/1565", "merged_at": "2013-09-24T17:39:09Z", "patch_url": "https://github.com/psf/requests/pull/1565.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1565" }
true
[ ":+1:\n", "Unrelated (noob) question to the pull request: Does this really make a difference? Is is better to use relative imports?\n", "It makes it possible to use SNI when requests is vendored.\n", "@aesptux That's an excellent question. =)\n\nAn absolute import here will search `sys.path` for a module call...
https://api.github.com/repos/psf/requests/issues/1564
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1564/labels{/name}
https://api.github.com/repos/psf/requests/issues/1564/comments
https://api.github.com/repos/psf/requests/issues/1564/events
https://github.com/psf/requests/issues/1564
18,816,629
MDU6SXNzdWUxODgxNjYyOQ==
1,564
Support of "Transfer-Encoding: gzip"
{ "avatar_url": "https://avatars.githubusercontent.com/u/1447160?v=4", "events_url": "https://api.github.com/users/jcea/events{/privacy}", "followers_url": "https://api.github.com/users/jcea/followers", "following_url": "https://api.github.com/users/jcea/following{/other_user}", "gists_url": "https://api.github.com/users/jcea/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jcea", "id": 1447160, "login": "jcea", "node_id": "MDQ6VXNlcjE0NDcxNjA=", "organizations_url": "https://api.github.com/users/jcea/orgs", "received_events_url": "https://api.github.com/users/jcea/received_events", "repos_url": "https://api.github.com/users/jcea/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jcea/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jcea/subscriptions", "type": "User", "url": "https://api.github.com/users/jcea", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2013-08-31T01:34:03Z
2021-09-09T01:22:30Z
2013-08-31T05:59:56Z
NONE
resolved
Currently, if REQUESTS get a "Transfer-Encoding: gzip" answer, it will provide the GZIPPED content instead of the uncompressed data (like "content-encoding: gzip"). I would suggest that REQUESTS should decompress those replies, and it should add "TE: gzip" header in the requests, by default, too.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1564/reactions" }
https://api.github.com/repos/psf/requests/issues/1564/timeline
null
completed
null
null
false
[ "Some details: https://issues.apache.org/bugzilla/show_bug.cgi?id=52860#c5\n", "Part of the rational for my argument against this is in the issue you provided. To quote \"Tim B\":\n\n> Few mainstream browsers support gzip transfer-encoding.\n\nrequests never attempts to mimic anything that isn't in a browser and ...
https://api.github.com/repos/psf/requests/issues/1563
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1563/labels{/name}
https://api.github.com/repos/psf/requests/issues/1563/comments
https://api.github.com/repos/psf/requests/issues/1563/events
https://github.com/psf/requests/issues/1563
18,816,531
MDU6SXNzdWUxODgxNjUzMQ==
1,563
"requests.Session" should allow "timeout" attribute
{ "avatar_url": "https://avatars.githubusercontent.com/u/1447160?v=4", "events_url": "https://api.github.com/users/jcea/events{/privacy}", "followers_url": "https://api.github.com/users/jcea/followers", "following_url": "https://api.github.com/users/jcea/following{/other_user}", "gists_url": "https://api.github.com/users/jcea/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jcea", "id": 1447160, "login": "jcea", "node_id": "MDQ6VXNlcjE0NDcxNjA=", "organizations_url": "https://api.github.com/users/jcea/orgs", "received_events_url": "https://api.github.com/users/jcea/received_events", "repos_url": "https://api.github.com/users/jcea/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jcea/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jcea/subscriptions", "type": "User", "url": "https://api.github.com/users/jcea", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2013-08-31T01:25:22Z
2021-09-09T00:01:07Z
2013-08-31T01:51:39Z
NONE
resolved
Currently, you can set stuff like headers, authentication, etc in a "requests.Session" instance, to be used as default values for requests under that session. I would like to set a default timeout for the session too, to be used as the default timeout for requests under that session.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/psf/requests/issues/1563/reactions" }
https://api.github.com/repos/psf/requests/issues/1563/timeline
null
completed
null
null
false
[ "A timeout attribute on a Session is not a logical thing. Consider that the Session can have cookies which are represented (when sent and received from the server) as headers as well as authentication which can happen on a Session. A timeout on a Session, however, would mean that after the value assigned to that at...
https://api.github.com/repos/psf/requests/issues/1562
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1562/labels{/name}
https://api.github.com/repos/psf/requests/issues/1562/comments
https://api.github.com/repos/psf/requests/issues/1562/events
https://github.com/psf/requests/pull/1562
18,807,666
MDExOlB1bGxSZXF1ZXN0Nzk5NTU0Nw==
1,562
Include docs in source package
{ "avatar_url": "https://avatars.githubusercontent.com/u/355646?v=4", "events_url": "https://api.github.com/users/llonchj/events{/privacy}", "followers_url": "https://api.github.com/users/llonchj/followers", "following_url": "https://api.github.com/users/llonchj/following{/other_user}", "gists_url": "https://api.github.com/users/llonchj/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/llonchj", "id": 355646, "login": "llonchj", "node_id": "MDQ6VXNlcjM1NTY0Ng==", "organizations_url": "https://api.github.com/users/llonchj/orgs", "received_events_url": "https://api.github.com/users/llonchj/received_events", "repos_url": "https://api.github.com/users/llonchj/repos", "site_admin": false, "starred_url": "https://api.github.com/users/llonchj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/llonchj/subscriptions", "type": "User", "url": "https://api.github.com/users/llonchj", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2013-08-30T20:17:16Z
2021-09-08T21:01:08Z
2013-08-31T01:30:19Z
NONE
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1562/reactions" }
https://api.github.com/repos/psf/requests/issues/1562/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1562.diff", "html_url": "https://github.com/psf/requests/pull/1562", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1562.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1562" }
true
[ "HI @llonchj, thanks for opening this PR! What's the rationale for doing this? I'm not 100% sold on this being a good idea.\n", "I agree with you, that has several points of view. There's no PEP about. To\nme makes sense than a source distribution includes documentation.\n\nKindly close the PR if not 100% sure.\n...
https://api.github.com/repos/psf/requests/issues/1561
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1561/labels{/name}
https://api.github.com/repos/psf/requests/issues/1561/comments
https://api.github.com/repos/psf/requests/issues/1561/events
https://github.com/psf/requests/issues/1561
18,791,485
MDU6SXNzdWUxODc5MTQ4NQ==
1,561
Header keys lose their case
{ "avatar_url": "https://avatars.githubusercontent.com/u/12653?v=4", "events_url": "https://api.github.com/users/magicjin/events{/privacy}", "followers_url": "https://api.github.com/users/magicjin/followers", "following_url": "https://api.github.com/users/magicjin/following{/other_user}", "gists_url": "https://api.github.com/users/magicjin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/magicjin", "id": 12653, "login": "magicjin", "node_id": "MDQ6VXNlcjEyNjUz", "organizations_url": "https://api.github.com/users/magicjin/orgs", "received_events_url": "https://api.github.com/users/magicjin/received_events", "repos_url": "https://api.github.com/users/magicjin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/magicjin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/magicjin/subscriptions", "type": "User", "url": "https://api.github.com/users/magicjin", "user_view_type": "public" }
[ { "color": "e10c02", "default": false, "description": null, "id": 117744, "name": "Bug", "node_id": "MDU6TGFiZWwxMTc3NDQ=", "url": "https://api.github.com/repos/psf/requests/labels/Bug" }, { "color": "e102d8", "default": false, "description": null, "id": 117745, "...
closed
true
null
[]
{ "closed_at": null, "closed_issues": 29, "created_at": "2013-11-17T11:29:34Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }, "description": null, "due_on": null, "html_url": "https://github.com/psf/requests/milestone/20", "id": 487518, "labels_url": "https://api.github.com/repos/psf/requests/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lNDg3NTE4", "number": 20, "open_issues": 12, "state": "open", "title": "3.0.0", "updated_at": "2024-05-19T18:43:00Z", "url": "https://api.github.com/repos/psf/requests/milestones/20" }
11
2013-08-30T14:43:45Z
2021-09-08T13:05:32Z
2017-01-09T16:17:38Z
NONE
resolved
it seems that there is a bug in response.headers. for example, code below: ``` python import requests r = requests.get('http://docs.python-requests.org/en/latest/') print r.headers._store ``` it will display as: ``` {'connection': ('connection', 'keep-alive'), 'content-encoding': ('content-encoding', 'gzip'), 'content-type': ('content-type', 'text/html'), 'date': ('date', 'Fri, 30 Aug 2013 14:29:28 GMT'), 'last-modified': ('last-modified', 'Tue, 27 Aug 2013 15:01:13 GMT'), 'server': ('server', 'nginx/1.1.19'), 'transfer-encoding': ('transfer-encoding', 'chunked'), 'x-cname': ('x-cname', 'docs.python-requests.org'), 'x-deity': ('x-deity', 'Chimera'), 'x-loaded-deity': ('x-loaded-deity', 'Asgard'), 'x-served': ('x-served', 'Nginx')} ``` but actually the headers should be: ``` {'connection': ('Connection', 'keep-alive'), 'content-encoding': ('Content-Encoding', 'gzip'), 'content-type': ('Content-Type', 'text/html'), 'date': ('Date', 'Fri, 30 Aug 2013 14:29:28 GMT'), 'last-modified': ('Last-Modified', 'Tue, 27 Aug 2013 15:01:13 GMT'), 'server': ('Server', 'nginx/1.1.19'), 'transfer-encoding': ('Transfer-Encoding', 'chunked'), 'x-cname': ('X-Cname', 'docs.python-requests.org'), 'x-deity': ('X-Deity', 'Chimera'), 'x-loaded-deity': ('X-Loaded-Deity', 'Asgard'), 'x-served': ('X-Served', 'Nginx')} ``` because the code comments said: ``` Use the lowercased key for lookups, but store the actual key alongside the value. ``` at file structures.py line 72.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/psf/requests/issues/1561/reactions" }
https://api.github.com/repos/psf/requests/issues/1561/timeline
null
completed
null
null
false
[ "Hmm, this is a puzzling one. I see the same behaviour as you, plus this oddity:\n\n``` python\n>>> r.raw.headers\n{'x-served': 'Nginx',\n 'content-encoding': 'gzip',\n 'transfer-encoding': 'chunked',\n 'connection': 'keep-alive',\n 'server': 'nginx/1.1.19',\n 'last-modified': 'Tue, 27 Aug 2013 15:01:13 GMT',\n 'x-...
https://api.github.com/repos/psf/requests/issues/1560
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1560/labels{/name}
https://api.github.com/repos/psf/requests/issues/1560/comments
https://api.github.com/repos/psf/requests/issues/1560/events
https://github.com/psf/requests/issues/1560
18,784,039
MDU6SXNzdWUxODc4NDAzOQ==
1,560
SNI support doesn't support vendoring
{ "avatar_url": "https://avatars.githubusercontent.com/u/145979?v=4", "events_url": "https://api.github.com/users/dstufft/events{/privacy}", "followers_url": "https://api.github.com/users/dstufft/followers", "following_url": "https://api.github.com/users/dstufft/following{/other_user}", "gists_url": "https://api.github.com/users/dstufft/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dstufft", "id": 145979, "login": "dstufft", "node_id": "MDQ6VXNlcjE0NTk3OQ==", "organizations_url": "https://api.github.com/users/dstufft/orgs", "received_events_url": "https://api.github.com/users/dstufft/received_events", "repos_url": "https://api.github.com/users/dstufft/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dstufft/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dstufft/subscriptions", "type": "User", "url": "https://api.github.com/users/dstufft", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2013-08-30T11:59:52Z
2021-09-09T01:22:21Z
2013-09-25T09:24:45Z
CONTRIBUTOR
resolved
The import in requests/**init**.py does `from requests.packages.urllib3.contrib import pyopenssl` which means it doesn't work when requests is vendored.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1560/reactions" }
https://api.github.com/repos/psf/requests/issues/1560/timeline
null
completed
null
null
false
[ "Thanks for raising this issue @dstufft! It's not at all clear to me why that import wouldn't work when requests is vendored, though. Can you elaborate on what the problem is?\n", "I know what the problem is, no worries.\n", "Just needs to be an absolute relative import.\n", "When requests is vendored it's to...
https://api.github.com/repos/psf/requests/issues/1559
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1559/labels{/name}
https://api.github.com/repos/psf/requests/issues/1559/comments
https://api.github.com/repos/psf/requests/issues/1559/events
https://github.com/psf/requests/issues/1559
18,769,938
MDU6SXNzdWUxODc2OTkzOA==
1,559
HTTP transport is case sensitive, it won't handle slightly malformed http URLs.
{ "avatar_url": "https://avatars.githubusercontent.com/u/181693?v=4", "events_url": "https://api.github.com/users/offbyone/events{/privacy}", "followers_url": "https://api.github.com/users/offbyone/followers", "following_url": "https://api.github.com/users/offbyone/following{/other_user}", "gists_url": "https://api.github.com/users/offbyone/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/offbyone", "id": 181693, "login": "offbyone", "node_id": "MDQ6VXNlcjE4MTY5Mw==", "organizations_url": "https://api.github.com/users/offbyone/orgs", "received_events_url": "https://api.github.com/users/offbyone/received_events", "repos_url": "https://api.github.com/users/offbyone/repos", "site_admin": true, "starred_url": "https://api.github.com/users/offbyone/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/offbyone/subscriptions", "type": "User", "url": "https://api.github.com/users/offbyone", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-08-30T03:55:55Z
2021-09-09T01:22:30Z
2013-08-30T04:09:13Z
NONE
resolved
When downloading a URL whose schema is not lowercased, the connection adapter can't be found (say, for example): _Http_ URLs. ``` Traceback (most recent call last): File "/Users/offby1/projects/rscp/rscp/downloader.py", line 175, in download_images self.download_image_url(image_url, target_file) File "/Users/offby1/projects/rscp/rscp/utils.py", line 45, in f_retry return f(*args, **kwargs) File "/Users/offby1/projects/rscp/rscp/downloader.py", line 200, in download_image_url return self._do_download_image_url(url, target) File "/Users/offby1/projects/rscp/rscp/downloader.py", line 208, in _do_download_image_url response = self.session.get(url) File "/Users/offby1/virtualenv/rscp/lib/python2.7/site-packages/requests/sessions.py", line 347, in get return self.request('GET', url, **kwargs) File "/Users/offby1/virtualenv/rscp/lib/python2.7/site-packages/requests/sessions.py", line 335, in request resp = self.send(prep, **send_kwargs) File "/Users/offby1/virtualenv/rscp/lib/python2.7/site-packages/requests/sessions.py", line 433, in send adapter = self.get_adapter(url=request.url) File "/Users/offby1/virtualenv/rscp/lib/python2.7/site-packages/requests/sessions.py", line 474, in get_adapter raise InvalidSchema("No connection adapters were found for '%s'" % url) InvalidSchema: No connection adapters were found for 'Http://a-host.com/some-file' ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/181693?v=4", "events_url": "https://api.github.com/users/offbyone/events{/privacy}", "followers_url": "https://api.github.com/users/offbyone/followers", "following_url": "https://api.github.com/users/offbyone/following{/other_user}", "gists_url": "https://api.github.com/users/offbyone/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/offbyone", "id": 181693, "login": "offbyone", "node_id": "MDQ6VXNlcjE4MTY5Mw==", "organizations_url": "https://api.github.com/users/offbyone/orgs", "received_events_url": "https://api.github.com/users/offbyone/received_events", "repos_url": "https://api.github.com/users/offbyone/repos", "site_admin": true, "starred_url": "https://api.github.com/users/offbyone/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/offbyone/subscriptions", "type": "User", "url": "https://api.github.com/users/offbyone", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1559/reactions" }
https://api.github.com/repos/psf/requests/issues/1559/timeline
null
completed
null
null
false
[ "Oh, FFS, it's fixed in devo. Never mind, obviously I've got a crufty version lying around.\n" ]
https://api.github.com/repos/psf/requests/issues/1558
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1558/labels{/name}
https://api.github.com/repos/psf/requests/issues/1558/comments
https://api.github.com/repos/psf/requests/issues/1558/events
https://github.com/psf/requests/issues/1558
18,638,777
MDU6SXNzdWUxODYzODc3Nw==
1,558
Make instances of PreparedRequest class pickable
{ "avatar_url": "https://avatars.githubusercontent.com/u/92239?v=4", "events_url": "https://api.github.com/users/piotr-dobrogost/events{/privacy}", "followers_url": "https://api.github.com/users/piotr-dobrogost/followers", "following_url": "https://api.github.com/users/piotr-dobrogost/following{/other_user}", "gists_url": "https://api.github.com/users/piotr-dobrogost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/piotr-dobrogost", "id": 92239, "login": "piotr-dobrogost", "node_id": "MDQ6VXNlcjkyMjM5", "organizations_url": "https://api.github.com/users/piotr-dobrogost/orgs", "received_events_url": "https://api.github.com/users/piotr-dobrogost/received_events", "repos_url": "https://api.github.com/users/piotr-dobrogost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/piotr-dobrogost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/piotr-dobrogost/subscriptions", "type": "User", "url": "https://api.github.com/users/piotr-dobrogost", "user_view_type": "public" }
[ { "color": "02e10c", "default": false, "description": null, "id": 76800, "name": "Feature Request", "node_id": "MDU6TGFiZWw3NjgwMA==", "url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request" }, { "color": "e102d8", "default": false, "description": null...
closed
true
null
[]
null
18
2013-08-27T22:38:40Z
2021-09-08T14:00:39Z
2016-11-11T08:11:33Z
NONE
resolved
See [How can I save a python HTTP requests from python-requets so I can execute it later?](http://stackoverflow.com/q/18462749/95735) question on Stack Overflow.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1558/reactions" }
https://api.github.com/repos/psf/requests/issues/1558/timeline
null
completed
null
null
false
[ "Is that the only remaining class that isn't Pickleable? If so, I'll work on it for 2.0.\n", "Looks like it might be. I'd love this in 2.0. =)\n", ":+1: If we make a patch for the current version, would you accept it? -- I want to improve the python-jira library without having to use a non-released version of r...
https://api.github.com/repos/psf/requests/issues/1557
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1557/labels{/name}
https://api.github.com/repos/psf/requests/issues/1557/comments
https://api.github.com/repos/psf/requests/issues/1557/events
https://github.com/psf/requests/issues/1557
18,629,938
MDU6SXNzdWUxODYyOTkzOA==
1,557
[FROM SESSION-FUTURES] Multiple Redirects
{ "avatar_url": "https://avatars.githubusercontent.com/u/1316773?v=4", "events_url": "https://api.github.com/users/akavi1015/events{/privacy}", "followers_url": "https://api.github.com/users/akavi1015/followers", "following_url": "https://api.github.com/users/akavi1015/following{/other_user}", "gists_url": "https://api.github.com/users/akavi1015/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/akavi1015", "id": 1316773, "login": "akavi1015", "node_id": "MDQ6VXNlcjEzMTY3NzM=", "organizations_url": "https://api.github.com/users/akavi1015/orgs", "received_events_url": "https://api.github.com/users/akavi1015/received_events", "repos_url": "https://api.github.com/users/akavi1015/repos", "site_admin": false, "starred_url": "https://api.github.com/users/akavi1015/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akavi1015/subscriptions", "type": "User", "url": "https://api.github.com/users/akavi1015", "user_view_type": "public" }
[]
closed
true
null
[]
null
13
2013-08-27T19:51:38Z
2021-09-09T01:22:31Z
2013-08-29T13:11:22Z
NONE
resolved
https://github.com/ross/requests-futures/issues/6 The above link has the issue in it.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1557/reactions" }
https://api.github.com/repos/psf/requests/issues/1557/timeline
null
completed
null
null
false
[ "I see no issue in requests proper described there. It looks like you're using requests-futures incorrectly unless there are details you didn't update after trying to get the response from the futures object.\n", "I do not think I am doing anything incorrectly with requests-futures. I really just can't conceptual...
https://api.github.com/repos/psf/requests/issues/1556
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1556/labels{/name}
https://api.github.com/repos/psf/requests/issues/1556/comments
https://api.github.com/repos/psf/requests/issues/1556/events
https://github.com/psf/requests/pull/1556
18,611,901
MDExOlB1bGxSZXF1ZXN0Nzg4OTY5Nw==
1,556
Added link to StackOverflow questions related to python-requests. This s...
{ "avatar_url": "https://avatars.githubusercontent.com/u/102495?v=4", "events_url": "https://api.github.com/users/ssbarnea/events{/privacy}", "followers_url": "https://api.github.com/users/ssbarnea/followers", "following_url": "https://api.github.com/users/ssbarnea/following{/other_user}", "gists_url": "https://api.github.com/users/ssbarnea/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ssbarnea", "id": 102495, "login": "ssbarnea", "node_id": "MDQ6VXNlcjEwMjQ5NQ==", "organizations_url": "https://api.github.com/users/ssbarnea/orgs", "received_events_url": "https://api.github.com/users/ssbarnea/received_events", "repos_url": "https://api.github.com/users/ssbarnea/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ssbarnea/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ssbarnea/subscriptions", "type": "User", "url": "https://api.github.com/users/ssbarnea", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2013-08-27T14:43:51Z
2021-09-08T21:01:08Z
2013-08-27T15:03:33Z
CONTRIBUTOR
resolved
...hould be the default support way for the library, as clearly most questions are supposed to be programming related. Signed-off-by: Sorin Sbarnea sorin.sbarnea@citrix.com
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1556/reactions" }
https://api.github.com/repos/psf/requests/issues/1556/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1556.diff", "html_url": "https://github.com/psf/requests/pull/1556", "merged_at": "2013-08-27T15:03:33Z", "patch_url": "https://github.com/psf/requests/pull/1556.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1556" }
true
[ "Looks good to me!\n", ":cake:\n" ]
https://api.github.com/repos/psf/requests/issues/1555
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1555/labels{/name}
https://api.github.com/repos/psf/requests/issues/1555/comments
https://api.github.com/repos/psf/requests/issues/1555/events
https://github.com/psf/requests/issues/1555
18,598,630
MDU6SXNzdWUxODU5ODYzMA==
1,555
Provide a quick link to http://stackoverflow.com/questions/tagged/python-requests
{ "avatar_url": "https://avatars.githubusercontent.com/u/102495?v=4", "events_url": "https://api.github.com/users/ssbarnea/events{/privacy}", "followers_url": "https://api.github.com/users/ssbarnea/followers", "following_url": "https://api.github.com/users/ssbarnea/following{/other_user}", "gists_url": "https://api.github.com/users/ssbarnea/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ssbarnea", "id": 102495, "login": "ssbarnea", "node_id": "MDQ6VXNlcjEwMjQ5NQ==", "organizations_url": "https://api.github.com/users/ssbarnea/orgs", "received_events_url": "https://api.github.com/users/ssbarnea/received_events", "repos_url": "https://api.github.com/users/ssbarnea/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ssbarnea/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ssbarnea/subscriptions", "type": "User", "url": "https://api.github.com/users/ssbarnea", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2013-08-27T10:19:34Z
2021-09-09T01:22:32Z
2013-08-27T15:04:06Z
CONTRIBUTOR
resolved
It would be extremely useful to provide a quick link from inside to the requests homepage to http://stackoverflow.com/questions/tagged/python-requests homepage: http://docs.python-requests.org/en/latest/ - see Useful Links Currently the homepage contains 3 quick links but none of them is linking to a place where people can ask questions and get answers. Using the bug tracker for this would be clearly against its purpose :)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1555/reactions" }
https://api.github.com/repos/psf/requests/issues/1555/timeline
null
completed
null
null
false
[ "Feel free to send a pull request because you're 100% correct. :)\n", ":+1:\n", "https://github.com/kennethreitz/requests/pull/1556\n", "Job's a good'un! Thanks so much! :star:\n" ]
https://api.github.com/repos/psf/requests/issues/1554
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1554/labels{/name}
https://api.github.com/repos/psf/requests/issues/1554/comments
https://api.github.com/repos/psf/requests/issues/1554/events
https://github.com/psf/requests/issues/1554
18,569,398
MDU6SXNzdWUxODU2OTM5OA==
1,554
reading multipart/x-mixed-replace stream
{ "avatar_url": "https://avatars.githubusercontent.com/u/933231?v=4", "events_url": "https://api.github.com/users/wiesson/events{/privacy}", "followers_url": "https://api.github.com/users/wiesson/followers", "following_url": "https://api.github.com/users/wiesson/following{/other_user}", "gists_url": "https://api.github.com/users/wiesson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wiesson", "id": 933231, "login": "wiesson", "node_id": "MDQ6VXNlcjkzMzIzMQ==", "organizations_url": "https://api.github.com/users/wiesson/orgs", "received_events_url": "https://api.github.com/users/wiesson/received_events", "repos_url": "https://api.github.com/users/wiesson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wiesson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wiesson/subscriptions", "type": "User", "url": "https://api.github.com/users/wiesson", "user_view_type": "public" }
[]
closed
true
null
[]
null
17
2013-08-26T19:48:19Z
2018-10-18T14:33:23Z
2013-08-26T22:42:06Z
NONE
resolved
Hi, I'm trying to fetch multipart/x-mixed-replace data with the [Streaming Requests](http://docs.python-requests.org/en/latest/user/advanced/#streaming-requests) example. As I read [here](http://en.wikipedia.org/wiki/Push_technology#HTTP_server_push): > The content type multipart/x-mixed-replace was developed as part of a technology to emulate server push and streaming over HTTP. So how to fetch this correctly? ``` python import requests settings = { 'interval': '1000', 'count':'20' } url = 'http://agent.mtconnect.org/sample' r = requests.get(url, params=settings, stream=True) for line in r.iter_lines(): if line: print line ``` the content: ``` xml --0910dc57f12aa1452fb67c74b7b2ddce Content-type: text/xml Content-length: 6299 ... long xml ... --e8f953249be4753b6f93d61bde0c970a Content-type: text/xml Content-length: 531 <?xml version="1.0" encoding="UTF-8"?> <MTConnectStreams xmlns:m="urn:mtconnect.org:MTConnectStreams:1.2" xmlns="urn:mtconnect.org:MTConnectStreams:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mtconnect.org:MTConnectStreams:1.2 /schemas/MTConnectStreams_1.2.xsd"> <Header creationTime="2013-08-26T19:29:34Z" sender="wiesson.local" instanceId="1377530136" version="1.2.0.21" bufferSize="131072" nextSequence="18234" firstSequence="1" lastSequence="18233"/> <Streams/> </MTConnectStreams> ``` So, I'm not able to separate header and content easily. And suggestions? (Normally I don't use github to post my _problem_ but here I can't help myself ;)) A simple curl in the terminal: ``` bash curl http://http://agent.mtconnect.org/sample\?interval\=0\&count\=50 ``` grabs the data.
{ "avatar_url": "https://avatars.githubusercontent.com/u/933231?v=4", "events_url": "https://api.github.com/users/wiesson/events{/privacy}", "followers_url": "https://api.github.com/users/wiesson/followers", "following_url": "https://api.github.com/users/wiesson/following{/other_user}", "gists_url": "https://api.github.com/users/wiesson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wiesson", "id": 933231, "login": "wiesson", "node_id": "MDQ6VXNlcjkzMzIzMQ==", "organizations_url": "https://api.github.com/users/wiesson/orgs", "received_events_url": "https://api.github.com/users/wiesson/received_events", "repos_url": "https://api.github.com/users/wiesson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wiesson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wiesson/subscriptions", "type": "User", "url": "https://api.github.com/users/wiesson", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1554/reactions" }
https://api.github.com/repos/psf/requests/issues/1554/timeline
null
completed
null
null
false
[ "The response is broken into parts, delimited by strings of the form `--<stuff>`. So, read data until you find one of those, then join all the previous lines up with `\\r\\n` characters. You now have a single part, which contains the headers and then the body. Split on the string `\\r\\n\\r\\n`. The first part is t...
https://api.github.com/repos/psf/requests/issues/1553
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1553/labels{/name}
https://api.github.com/repos/psf/requests/issues/1553/comments
https://api.github.com/repos/psf/requests/issues/1553/events
https://github.com/psf/requests/issues/1553
18,517,161
MDU6SXNzdWUxODUxNzE2MQ==
1,553
Autodetect proxy on Windows
{ "avatar_url": "https://avatars.githubusercontent.com/u/2280140?v=4", "events_url": "https://api.github.com/users/oliverjanik/events{/privacy}", "followers_url": "https://api.github.com/users/oliverjanik/followers", "following_url": "https://api.github.com/users/oliverjanik/following{/other_user}", "gists_url": "https://api.github.com/users/oliverjanik/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/oliverjanik", "id": 2280140, "login": "oliverjanik", "node_id": "MDQ6VXNlcjIyODAxNDA=", "organizations_url": "https://api.github.com/users/oliverjanik/orgs", "received_events_url": "https://api.github.com/users/oliverjanik/received_events", "repos_url": "https://api.github.com/users/oliverjanik/repos", "site_admin": false, "starred_url": "https://api.github.com/users/oliverjanik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oliverjanik/subscriptions", "type": "User", "url": "https://api.github.com/users/oliverjanik", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2013-08-25T06:16:06Z
2021-09-09T01:22:29Z
2013-08-25T08:54:08Z
NONE
resolved
It would be nice if requests could support automatic proxy detection on Windows. Both urllib2 and urllib accomplish this by reading windows registry via urllib.getproxies() on Windows and using _scproxy on Mac. I opened an issue in [urllib3](https://github.com/shazow/urllib3/issues/232) but @shazow doesn't think it belongs there.
{ "avatar_url": "https://avatars.githubusercontent.com/u/2280140?v=4", "events_url": "https://api.github.com/users/oliverjanik/events{/privacy}", "followers_url": "https://api.github.com/users/oliverjanik/followers", "following_url": "https://api.github.com/users/oliverjanik/following{/other_user}", "gists_url": "https://api.github.com/users/oliverjanik/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/oliverjanik", "id": 2280140, "login": "oliverjanik", "node_id": "MDQ6VXNlcjIyODAxNDA=", "organizations_url": "https://api.github.com/users/oliverjanik/orgs", "received_events_url": "https://api.github.com/users/oliverjanik/received_events", "repos_url": "https://api.github.com/users/oliverjanik/repos", "site_admin": false, "starred_url": "https://api.github.com/users/oliverjanik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oliverjanik/subscriptions", "type": "User", "url": "https://api.github.com/users/oliverjanik", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1553/reactions" }
https://api.github.com/repos/psf/requests/issues/1553/timeline
null
completed
null
null
false
[ "Looks looks `urllib.getproxies() is already being used (and executed).\nhttps://github.com/kennethreitz/requests/blob/90837359632b43aba7900b65b42744715f0b739a/requests/utils.py#L416\n", "Here's my dumb test:\n1. Launch Fiddler on windows\n\n``` python\n>>> import urllib\n>>> urllib.getproxies()\n{'http': 'http:/...
https://api.github.com/repos/psf/requests/issues/1552
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1552/labels{/name}
https://api.github.com/repos/psf/requests/issues/1552/comments
https://api.github.com/repos/psf/requests/issues/1552/events
https://github.com/psf/requests/pull/1552
18,465,936
MDExOlB1bGxSZXF1ZXN0NzgxNzgwNA==
1,552
Allow spaces in the no_proxy environ variable
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "color": "009800", "default": false, "description": null, "id": 44501218, "name": "Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTIxOA==", "url": "https://api.github.com/repos/psf/requests/labels/Ready%20To%20Merge" }, { "color": "eb6420", "default": false, "description...
closed
true
null
[]
null
1
2013-08-23T11:38:57Z
2021-09-08T23:06:14Z
2013-08-24T00:23:58Z
MEMBER
resolved
As mentioned in #1551, we could do with being a little more lenient here. A space isn't a valid URL character anyway, so just yank them all out and everything should be fine.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1552/reactions" }
https://api.github.com/repos/psf/requests/issues/1552/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1552.diff", "html_url": "https://github.com/psf/requests/pull/1552", "merged_at": "2013-08-24T00:23:57Z", "patch_url": "https://github.com/psf/requests/pull/1552.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1552" }
true
[ ":+1:\n" ]
https://api.github.com/repos/psf/requests/issues/1551
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1551/labels{/name}
https://api.github.com/repos/psf/requests/issues/1551/comments
https://api.github.com/repos/psf/requests/issues/1551/events
https://github.com/psf/requests/issues/1551
18,462,607
MDU6SXNzdWUxODQ2MjYwNw==
1,551
Problems with spaces in no_proxy environ variable
{ "avatar_url": "https://avatars.githubusercontent.com/u/2345069?v=4", "events_url": "https://api.github.com/users/javitgarcia/events{/privacy}", "followers_url": "https://api.github.com/users/javitgarcia/followers", "following_url": "https://api.github.com/users/javitgarcia/following{/other_user}", "gists_url": "https://api.github.com/users/javitgarcia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/javitgarcia", "id": 2345069, "login": "javitgarcia", "node_id": "MDQ6VXNlcjIzNDUwNjk=", "organizations_url": "https://api.github.com/users/javitgarcia/orgs", "received_events_url": "https://api.github.com/users/javitgarcia/received_events", "repos_url": "https://api.github.com/users/javitgarcia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/javitgarcia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/javitgarcia/subscriptions", "type": "User", "url": "https://api.github.com/users/javitgarcia", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2013-08-23T10:02:31Z
2021-09-09T02:11:35Z
2013-08-23T11:39:30Z
NONE
resolved
In utils.py, in the get_environ_proxies function: ``` python ... if no_proxy: # We need to check whether we match here. We need to see if we match # the end of the netloc, both with and without the port. no_proxy = no_proxy.split(',') netloc = urlparse(url).netloc for host in no_proxy: if netloc.endswith(host) or netloc.split(':')[0].endswith(host): # The URL does match something in no_proxy, so we don't want # to apply the proxies on this URL. return {} ... ``` It must be replaced: ``` python no_proxy = no_proxy.split(',') ``` With: ``` python no_proxy = no_proxy.replace(' ', '').split(',') ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1551/reactions" }
https://api.github.com/repos/psf/requests/issues/1551/timeline
null
completed
null
null
false
[ "Strictly speaking `no_proxy` shouldn't have spaces in it (it's defined as _comma separated_), but I think we can be more lenient here. =)\n", "This should be resolved by #1552. Thanks for reporting it!\n" ]
https://api.github.com/repos/psf/requests/issues/1550
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1550/labels{/name}
https://api.github.com/repos/psf/requests/issues/1550/comments
https://api.github.com/repos/psf/requests/issues/1550/events
https://github.com/psf/requests/issues/1550
18,452,861
MDU6SXNzdWUxODQ1Mjg2MQ==
1,550
No "Host" header entry in response.request.headers
{ "avatar_url": "https://avatars.githubusercontent.com/u/1407472?v=4", "events_url": "https://api.github.com/users/Cosmius/events{/privacy}", "followers_url": "https://api.github.com/users/Cosmius/followers", "following_url": "https://api.github.com/users/Cosmius/following{/other_user}", "gists_url": "https://api.github.com/users/Cosmius/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Cosmius", "id": 1407472, "login": "Cosmius", "node_id": "MDQ6VXNlcjE0MDc0NzI=", "organizations_url": "https://api.github.com/users/Cosmius/orgs", "received_events_url": "https://api.github.com/users/Cosmius/received_events", "repos_url": "https://api.github.com/users/Cosmius/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Cosmius/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Cosmius/subscriptions", "type": "User", "url": "https://api.github.com/users/Cosmius", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2013-08-23T03:55:12Z
2021-09-09T01:22:31Z
2013-08-27T07:57:37Z
NONE
resolved
Many web servers use the Host header to match different sites, probably the most important HTTP header. There is no Host entry in the response.request.headers, unless set explicitly when issuing the request.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1550/reactions" }
https://api.github.com/repos/psf/requests/issues/1550/timeline
null
completed
null
null
false
[ "@Cosmius That's a good point! I think we should fix this up for 2.0.\n", "The \"Accept-Encoding\" and \"Host\" fields get set automatically in httplib's HTTPConnection.putrequest() if they are not set explicitly.\n", "That's true, it does. Still, I think it'd be better to set it higher up if possible, to make ...
https://api.github.com/repos/psf/requests/issues/1549
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1549/labels{/name}
https://api.github.com/repos/psf/requests/issues/1549/comments
https://api.github.com/repos/psf/requests/issues/1549/events
https://github.com/psf/requests/issues/1549
18,402,573
MDU6SXNzdWUxODQwMjU3Mw==
1,549
'PoolManager' object has no attribute 'proxy_from_url'
{ "avatar_url": "https://avatars.githubusercontent.com/u/5285404?v=4", "events_url": "https://api.github.com/users/diplav/events{/privacy}", "followers_url": "https://api.github.com/users/diplav/followers", "following_url": "https://api.github.com/users/diplav/following{/other_user}", "gists_url": "https://api.github.com/users/diplav/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/diplav", "id": 5285404, "login": "diplav", "node_id": "MDQ6VXNlcjUyODU0MDQ=", "organizations_url": "https://api.github.com/users/diplav/orgs", "received_events_url": "https://api.github.com/users/diplav/received_events", "repos_url": "https://api.github.com/users/diplav/repos", "site_admin": false, "starred_url": "https://api.github.com/users/diplav/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/diplav/subscriptions", "type": "User", "url": "https://api.github.com/users/diplav", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-08-22T09:29:40Z
2021-09-09T01:22:32Z
2013-08-27T08:14:46Z
NONE
resolved
There is something wrong with the requests/adapter.py file ![screenshot from 2013-08-22 14 58 21](https://f.cloud.github.com/assets/5285404/1007641/49f7eb30-0b0d-11e3-8ffc-9faebd93244a.png) while using glance it shows the error: 'PoolManager' object has no attribute 'proxy_from_url'
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1549/reactions" }
https://api.github.com/repos/psf/requests/issues/1549/timeline
null
completed
null
null
false
[ "I disagree. =) It looks like a glance problem to me. The current version of Requests does not use `proxy_from_url`. We do use `proxy_from_url` in the unreleased 2.0 branch, but it's not a class method it's a standalone function.\n" ]
https://api.github.com/repos/psf/requests/issues/1548
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1548/labels{/name}
https://api.github.com/repos/psf/requests/issues/1548/comments
https://api.github.com/repos/psf/requests/issues/1548/events
https://github.com/psf/requests/issues/1548
18,401,610
MDU6SXNzdWUxODQwMTYxMA==
1,548
Release 1.2.4 to fix urrlib3
{ "avatar_url": "https://avatars.githubusercontent.com/u/117916?v=4", "events_url": "https://api.github.com/users/yetty/events{/privacy}", "followers_url": "https://api.github.com/users/yetty/followers", "following_url": "https://api.github.com/users/yetty/following{/other_user}", "gists_url": "https://api.github.com/users/yetty/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yetty", "id": 117916, "login": "yetty", "node_id": "MDQ6VXNlcjExNzkxNg==", "organizations_url": "https://api.github.com/users/yetty/orgs", "received_events_url": "https://api.github.com/users/yetty/received_events", "repos_url": "https://api.github.com/users/yetty/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yetty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yetty/subscriptions", "type": "User", "url": "https://api.github.com/users/yetty", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2013-08-22T09:07:48Z
2021-09-09T02:11:36Z
2013-08-22T09:33:54Z
NONE
resolved
Please release new version to fix urrlib3 p3k bug: https://github.com/shazow/urllib3/issues/177 Now installation through pip is broken and I can't use dev version from Github.
{ "avatar_url": "https://avatars.githubusercontent.com/u/117916?v=4", "events_url": "https://api.github.com/users/yetty/events{/privacy}", "followers_url": "https://api.github.com/users/yetty/followers", "following_url": "https://api.github.com/users/yetty/following{/other_user}", "gists_url": "https://api.github.com/users/yetty/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yetty", "id": 117916, "login": "yetty", "node_id": "MDQ6VXNlcjExNzkxNg==", "organizations_url": "https://api.github.com/users/yetty/orgs", "received_events_url": "https://api.github.com/users/yetty/received_events", "repos_url": "https://api.github.com/users/yetty/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yetty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yetty/subscriptions", "type": "User", "url": "https://api.github.com/users/yetty", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1548/reactions" }
https://api.github.com/repos/psf/requests/issues/1548/timeline
null
completed
null
null
false
[ "My understanding of this bug is that it doesn't impede installation at all. pip moans, but then everything goes on and is fine. The only problem is with actually using the ntlmpool functionality, which I'm not sure we expose. Are you experiencing something different?\n", "I was just scaried from installation err...
https://api.github.com/repos/psf/requests/issues/1547
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1547/labels{/name}
https://api.github.com/repos/psf/requests/issues/1547/comments
https://api.github.com/repos/psf/requests/issues/1547/events
https://github.com/psf/requests/issues/1547
18,383,240
MDU6SXNzdWUxODM4MzI0MA==
1,547
Installation fails in Cygwin 64 bit
{ "avatar_url": "https://avatars.githubusercontent.com/u/1364443?v=4", "events_url": "https://api.github.com/users/gregersn/events{/privacy}", "followers_url": "https://api.github.com/users/gregersn/followers", "following_url": "https://api.github.com/users/gregersn/following{/other_user}", "gists_url": "https://api.github.com/users/gregersn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gregersn", "id": 1364443, "login": "gregersn", "node_id": "MDQ6VXNlcjEzNjQ0NDM=", "organizations_url": "https://api.github.com/users/gregersn/orgs", "received_events_url": "https://api.github.com/users/gregersn/received_events", "repos_url": "https://api.github.com/users/gregersn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gregersn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gregersn/subscriptions", "type": "User", "url": "https://api.github.com/users/gregersn", "user_view_type": "public" }
[]
closed
true
null
[]
null
54
2013-08-21T22:00:09Z
2021-09-09T00:00:57Z
2014-02-03T10:54:21Z
NONE
resolved
When I try a pip install requests in Cygwin 64 bit the installation fails. Here's the end of the log file: ``` Downloading from URL https://pypi.python.org/packages/source/r/requests/requests-1.2.3.tar.gz#md5=adbd3f18445f7fe5e77f65c502e264fb (from https://pypi.python.org/simple/requests/) Running setup.py egg_info for package requests Cleaning up... Removing temporary dir /cygdrive/d/home/greger/cygwin/projects/myproject/build... No files/directories in /cygdrive/d/home/greger/cygwin/projects/myproject/build/requests/pip-egg-info (from PKG-INFO) Exception information: Traceback (most recent call last): File "/cygdrive/d/home/greger/cygwin/projects/myproject/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/cygdrive/d/home/greger/cygwin/projects/myproject/lib/python2.7/site-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/cygdrive/d/home/greger/cygwin/projects/myproject/lib/python2.7/site-packages/pip/req.py", line 1139, in prepare_files req_to_install.assert_source_matches_version() File "/cygdrive/d/home/greger/cygwin/projects/myproject/lib/python2.7/site-packages/pip/req.py", line 394, in assert_source_matches_version version = self.installed_version File "/cygdrive/d/home/greger/cygwin/projects/myproject/lib/python2.7/site-packages/pip/req.py", line 390, in installed_version return self.pkg_info()['version'] File "/cygdrive/d/home/greger/cygwin/projects/myproject/lib/python2.7/site-packages/pip/req.py", line 357, in pkg_info data = self.egg_info_data('PKG-INFO') File "/cygdrive/d/home/greger/cygwin/projects/myproject/lib/python2.7/site-packages/pip/req.py", line 293, in egg_info_data filename = self.egg_info_path(filename) File "/cygdrive/d/home/greger/cygwin/projects/myproject/lib/python2.7/site-packages/pip/req.py", line 330, in egg_info_path raise InstallationError('No files/directories in %s (from %s)' % (base, filename)) InstallationError: No files/directories in /cygdrive/d/home/greger/cygwin/projects/myproject/build/requests/pip-egg-info (from PKG-INFO) ``` Don't know if that is a problem with the installation package, or cygwin itself. But thought I'd try here first. If I try to use easy_install it just leaves all the files in the tmp-dir. And if I from there try to do a python setup.py install, and then try to import requests from the python shell, it just exits without and output.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1547/reactions" }
https://api.github.com/repos/psf/requests/issues/1547/timeline
null
completed
null
null
false
[ "Hmm, I can't reproduce this. =( But I wonder if you're using a Windows virtualenv with a Windows interpreter in Cygwin. It's not clear (to me) how well that would work.\n", "You are right, I did try through VirtualEnv and with VirtualenvWrapper. Tried again now from just regular cygwin prompt, and here's the log...
https://api.github.com/repos/psf/requests/issues/1546
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1546/labels{/name}
https://api.github.com/repos/psf/requests/issues/1546/comments
https://api.github.com/repos/psf/requests/issues/1546/events
https://github.com/psf/requests/issues/1546
18,339,864
MDU6SXNzdWUxODMzOTg2NA==
1,546
use a default encoding in Response's text property
{ "avatar_url": "https://avatars.githubusercontent.com/u/990113?v=4", "events_url": "https://api.github.com/users/JerryKwan/events{/privacy}", "followers_url": "https://api.github.com/users/JerryKwan/followers", "following_url": "https://api.github.com/users/JerryKwan/following{/other_user}", "gists_url": "https://api.github.com/users/JerryKwan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JerryKwan", "id": 990113, "login": "JerryKwan", "node_id": "MDQ6VXNlcjk5MDExMw==", "organizations_url": "https://api.github.com/users/JerryKwan/orgs", "received_events_url": "https://api.github.com/users/JerryKwan/received_events", "repos_url": "https://api.github.com/users/JerryKwan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JerryKwan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JerryKwan/subscriptions", "type": "User", "url": "https://api.github.com/users/JerryKwan", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2013-08-21T07:35:04Z
2021-09-08T23:10:44Z
2013-08-21T07:52:59Z
NONE
resolved
why not use a default encoding in Response's text property?if the server does not set content-type explicitly, why not use a default encoding such as utf-8? the chardet.detect() function is time consuming. if some one just use response.text and does aware the inner mechanism, he may think the Requests library is too slow and change to other libraries.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1546/reactions" }
https://api.github.com/repos/psf/requests/issues/1546/timeline
null
completed
null
null
false
[ "Thanks for asking this question @JerryKwan! The short and pithy answer is: because it's better to be slow and correct than fast and wrong. =)\n\nIf we were concerned about speed we'd simply not have the `Response.text` property at all, and only ever use `Response.content` (with a silly hack for `Response.json()`)....
https://api.github.com/repos/psf/requests/issues/1545
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1545/labels{/name}
https://api.github.com/repos/psf/requests/issues/1545/comments
https://api.github.com/repos/psf/requests/issues/1545/events
https://github.com/psf/requests/issues/1545
18,313,909
MDU6SXNzdWUxODMxMzkwOQ==
1,545
Setup code coverage
{ "avatar_url": "https://avatars.githubusercontent.com/u/1408859?v=4", "events_url": "https://api.github.com/users/Aaron1011/events{/privacy}", "followers_url": "https://api.github.com/users/Aaron1011/followers", "following_url": "https://api.github.com/users/Aaron1011/following{/other_user}", "gists_url": "https://api.github.com/users/Aaron1011/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Aaron1011", "id": 1408859, "login": "Aaron1011", "node_id": "MDQ6VXNlcjE0MDg4NTk=", "organizations_url": "https://api.github.com/users/Aaron1011/orgs", "received_events_url": "https://api.github.com/users/Aaron1011/received_events", "repos_url": "https://api.github.com/users/Aaron1011/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Aaron1011/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aaron1011/subscriptions", "type": "User", "url": "https://api.github.com/users/Aaron1011", "user_view_type": "public" }
[ { "color": "02e10c", "default": false, "description": null, "id": 76800, "name": "Feature Request", "node_id": "MDU6TGFiZWw3NjgwMA==", "url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request" }, { "color": "e102d8", "default": false, "description": null...
closed
true
null
[]
null
11
2013-08-20T18:51:30Z
2021-09-09T00:28:33Z
2013-12-05T23:07:55Z
NONE
resolved
I think that it would be useful to set up test coverage with [coverage.py](https://pypi.python.org/pypi/coverage), or a similar tool. I can submit a PR if this sounds like a good idea.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1545/reactions" }
https://api.github.com/repos/psf/requests/issues/1545/timeline
null
completed
null
null
false
[ "Hi @Aaron1011! That's a perfectly good idea. However, 100% code coverage has never been an explicit goal of this project. In the absence of a particular code coverage target, I'm not convinced that adding coverage by default is a good plan. I'll defer to @kennethreitz's judgement in this case.\n\n(Side note: You c...
https://api.github.com/repos/psf/requests/issues/1544
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1544/labels{/name}
https://api.github.com/repos/psf/requests/issues/1544/comments
https://api.github.com/repos/psf/requests/issues/1544/events
https://github.com/psf/requests/pull/1544
18,293,261
MDExOlB1bGxSZXF1ZXN0NzcyNDY1OA==
1,544
Fixed a bug that caused infinite redirections if the response contains a...
{ "avatar_url": "https://avatars.githubusercontent.com/u/227923?v=4", "events_url": "https://api.github.com/users/MarioVilas/events{/privacy}", "followers_url": "https://api.github.com/users/MarioVilas/followers", "following_url": "https://api.github.com/users/MarioVilas/following{/other_user}", "gists_url": "https://api.github.com/users/MarioVilas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarioVilas", "id": 227923, "login": "MarioVilas", "node_id": "MDQ6VXNlcjIyNzkyMw==", "organizations_url": "https://api.github.com/users/MarioVilas/orgs", "received_events_url": "https://api.github.com/users/MarioVilas/received_events", "repos_url": "https://api.github.com/users/MarioVilas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarioVilas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarioVilas/subscriptions", "type": "User", "url": "https://api.github.com/users/MarioVilas", "user_view_type": "public" }
[]
closed
true
null
[]
null
11
2013-08-20T12:36:15Z
2021-09-08T23:07:33Z
2013-08-20T15:07:04Z
NONE
resolved
... Location header pointing to itself (try it against http://google.com/robots.txt to test it)
{ "avatar_url": "https://avatars.githubusercontent.com/u/227923?v=4", "events_url": "https://api.github.com/users/MarioVilas/events{/privacy}", "followers_url": "https://api.github.com/users/MarioVilas/followers", "following_url": "https://api.github.com/users/MarioVilas/following{/other_user}", "gists_url": "https://api.github.com/users/MarioVilas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarioVilas", "id": 227923, "login": "MarioVilas", "node_id": "MDQ6VXNlcjIyNzkyMw==", "organizations_url": "https://api.github.com/users/MarioVilas/orgs", "received_events_url": "https://api.github.com/users/MarioVilas/received_events", "repos_url": "https://api.github.com/users/MarioVilas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarioVilas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarioVilas/subscriptions", "type": "User", "url": "https://api.github.com/users/MarioVilas", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1544/reactions" }
https://api.github.com/repos/psf/requests/issues/1544/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1544.diff", "html_url": "https://github.com/psf/requests/pull/1544", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1544.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1544" }
true
[ "Thanks for this @MarioVilas! I agree that this would fix a bug if this happens, though I can't reproduce this with Google's robots.txt. I have to admit that this is an unlikely bug though: surely the associated page would just never work for any browser?\n", "I've only seen it with Google's robots.txt, but only ...
https://api.github.com/repos/psf/requests/issues/1543
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1543/labels{/name}
https://api.github.com/repos/psf/requests/issues/1543/comments
https://api.github.com/repos/psf/requests/issues/1543/events
https://github.com/psf/requests/pull/1543
18,264,228
MDExOlB1bGxSZXF1ZXN0NzcwOTQ5OQ==
1,543
PEP8ified
{ "avatar_url": "https://avatars.githubusercontent.com/u/1298565?v=4", "events_url": "https://api.github.com/users/jtwaleson/events{/privacy}", "followers_url": "https://api.github.com/users/jtwaleson/followers", "following_url": "https://api.github.com/users/jtwaleson/following{/other_user}", "gists_url": "https://api.github.com/users/jtwaleson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jtwaleson", "id": 1298565, "login": "jtwaleson", "node_id": "MDQ6VXNlcjEyOTg1NjU=", "organizations_url": "https://api.github.com/users/jtwaleson/orgs", "received_events_url": "https://api.github.com/users/jtwaleson/received_events", "repos_url": "https://api.github.com/users/jtwaleson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jtwaleson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jtwaleson/subscriptions", "type": "User", "url": "https://api.github.com/users/jtwaleson", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2013-08-19T21:15:46Z
2021-09-08T21:01:08Z
2013-08-19T21:59:45Z
NONE
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1543/reactions" }
https://api.github.com/repos/psf/requests/issues/1543/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1543.diff", "html_url": "https://github.com/psf/requests/pull/1543", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1543.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1543" }
true
[ "the parts of pep8 you are using here are parts that i have intentionally chosen to ignore.\n\nThanks, though :)\n", "Righto. Does that include the docstrings? I have to say that I think they are much more readable. Is there some external documentation system that needs to be taken into account?\n\nMind if I retr...
https://api.github.com/repos/psf/requests/issues/1542
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1542/labels{/name}
https://api.github.com/repos/psf/requests/issues/1542/comments
https://api.github.com/repos/psf/requests/issues/1542/events
https://github.com/psf/requests/issues/1542
18,262,475
MDU6SXNzdWUxODI2MjQ3NQ==
1,542
POST Request in Heroku - 403 Forbidden
{ "avatar_url": "https://avatars.githubusercontent.com/u/2239263?v=4", "events_url": "https://api.github.com/users/kqdtran/events{/privacy}", "followers_url": "https://api.github.com/users/kqdtran/followers", "following_url": "https://api.github.com/users/kqdtran/following{/other_user}", "gists_url": "https://api.github.com/users/kqdtran/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kqdtran", "id": 2239263, "login": "kqdtran", "node_id": "MDQ6VXNlcjIyMzkyNjM=", "organizations_url": "https://api.github.com/users/kqdtran/orgs", "received_events_url": "https://api.github.com/users/kqdtran/received_events", "repos_url": "https://api.github.com/users/kqdtran/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kqdtran/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kqdtran/subscriptions", "type": "User", "url": "https://api.github.com/users/kqdtran", "user_view_type": "public" }
[]
closed
true
null
[]
null
29
2013-08-19T20:44:10Z
2017-09-24T16:39:23Z
2013-09-24T03:07:54Z
NONE
null
I'm new to using Requests, and I'm trying to scrape a schedule of classes. My POST request has resulted in "403 Forbidden" on Heroku, but works fine on my local machine. Here's a code snippet I'm having trouble with in my application, using Python 2.7.4, Bottle, BeautifulSoup4, and of course, Requests. ``` python import requests from bs4 import BeautifulSoup as Soup url = "https://telebears.berkeley.edu/enrollment-osoc/osc" code = "26187" values = dict(_InField1 = "RESTRIC", _InField2 = code, _InField3 = "13D2") html = requests.post(url, params=values) soup = Soup(html.content, from_encoding="utf-8") sp = soup.find_all("div", {"class" : "layout-div"})[2] print sp.text ``` It gives me back the string "Computer Science 61A P 001 LEC:" in development. However, when I tried to run it on Heroku (using `heroku run bash` and then run `python`), I got back "403 Forbidden". My attempts so far include manually setting User Agent headers, changing to `verify=False`, but neither worked. At first I thought it's the school settings, but then I was wondering why it works locally without any problem... Any explanation/suggestion would be really appreciated! Thanks in advance.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1542/reactions" }
https://api.github.com/repos/psf/requests/issues/1542/timeline
null
completed
null
null
false
[ "Are you aware that `params` here refers to query string parameters? (I wouldn't ask if it wasn't something that seems to frequently confuse new users.) In other words, your request looks a post without a body to the following url:\n\n```\nhttps://telebears.berkeley.edu/enrollment-osoc/osc?_InField1=RESTRIC&_InFiel...
https://api.github.com/repos/psf/requests/issues/1541
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1541/labels{/name}
https://api.github.com/repos/psf/requests/issues/1541/comments
https://api.github.com/repos/psf/requests/issues/1541/events
https://github.com/psf/requests/pull/1541
18,236,795
MDExOlB1bGxSZXF1ZXN0NzY5NDQzNA==
1,541
[2.0] Tracking PR for the 2.0 changelog
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "color": "e11d21", "default": false, "description": null, "id": 44501305, "name": "Not Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTMwNQ==", "url": "https://api.github.com/repos/psf/requests/labels/Not%20Ready%20To%20Merge" } ]
closed
true
null
[]
null
2
2013-08-19T12:29:57Z
2021-09-09T00:01:18Z
2013-09-24T17:45:11Z
MEMBER
resolved
This contains all of the current fixes merged into the 2.0 branch in changelog form. I'll keep updating this as new changes get merged. _Note_: This uses [this link](https://github.com/kennethreitz/requests/compare/v1.2.3...2.0) as the source of changes. I'll keep consulting it as we work on 2.0.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1541/reactions" }
https://api.github.com/repos/psf/requests/issues/1541/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1541.diff", "html_url": "https://github.com/psf/requests/pull/1541", "merged_at": "2013-09-24T17:45:11Z", "patch_url": "https://github.com/psf/requests/pull/1541.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1541" }
true
[ ":sparkles: :gem: :sparkles:\n", ":beer: :beers: :beers: :beer:\n" ]
https://api.github.com/repos/psf/requests/issues/1540
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1540/labels{/name}
https://api.github.com/repos/psf/requests/issues/1540/comments
https://api.github.com/repos/psf/requests/issues/1540/events
https://github.com/psf/requests/pull/1540
18,212,624
MDExOlB1bGxSZXF1ZXN0NzY4NDE4MQ==
1,540
Event hooks update
{ "avatar_url": "https://avatars.githubusercontent.com/u/1144960?v=4", "events_url": "https://api.github.com/users/libbkmz/events{/privacy}", "followers_url": "https://api.github.com/users/libbkmz/followers", "following_url": "https://api.github.com/users/libbkmz/following{/other_user}", "gists_url": "https://api.github.com/users/libbkmz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/libbkmz", "id": 1144960, "login": "libbkmz", "node_id": "MDQ6VXNlcjExNDQ5NjA=", "organizations_url": "https://api.github.com/users/libbkmz/orgs", "received_events_url": "https://api.github.com/users/libbkmz/received_events", "repos_url": "https://api.github.com/users/libbkmz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/libbkmz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/libbkmz/subscriptions", "type": "User", "url": "https://api.github.com/users/libbkmz", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-08-18T20:02:09Z
2021-09-08T21:01:07Z
2013-08-18T20:03:03Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1540/reactions" }
https://api.github.com/repos/psf/requests/issues/1540/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1540.diff", "html_url": "https://github.com/psf/requests/pull/1540", "merged_at": "2013-08-18T20:03:03Z", "patch_url": "https://github.com/psf/requests/pull/1540.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1540" }
true
[ "Awesome, thanks so much for this! :cake:\n" ]
https://api.github.com/repos/psf/requests/issues/1539
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1539/labels{/name}
https://api.github.com/repos/psf/requests/issues/1539/comments
https://api.github.com/repos/psf/requests/issues/1539/events
https://github.com/psf/requests/pull/1539
18,211,718
MDExOlB1bGxSZXF1ZXN0NzY4Mzg3NQ==
1,539
Add response callback arguments
{ "avatar_url": "https://avatars.githubusercontent.com/u/1144960?v=4", "events_url": "https://api.github.com/users/libbkmz/events{/privacy}", "followers_url": "https://api.github.com/users/libbkmz/followers", "following_url": "https://api.github.com/users/libbkmz/following{/other_user}", "gists_url": "https://api.github.com/users/libbkmz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/libbkmz", "id": 1144960, "login": "libbkmz", "node_id": "MDQ6VXNlcjExNDQ5NjA=", "organizations_url": "https://api.github.com/users/libbkmz/orgs", "received_events_url": "https://api.github.com/users/libbkmz/received_events", "repos_url": "https://api.github.com/users/libbkmz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/libbkmz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/libbkmz/subscriptions", "type": "User", "url": "https://api.github.com/users/libbkmz", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2013-08-18T18:59:09Z
2021-09-08T21:01:07Z
2013-08-18T20:03:17Z
CONTRIBUTOR
resolved
Or u can use **kwargs
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1539/reactions" }
https://api.github.com/repos/psf/requests/issues/1539/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1539.diff", "html_url": "https://github.com/psf/requests/pull/1539", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1539.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1539" }
true
[ "Can you update this to use **kwargs? If you do I'll happily merge. =) Thanks!\n", "Use (r, request, **kwargs) ?\n" ]
https://api.github.com/repos/psf/requests/issues/1538
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1538/labels{/name}
https://api.github.com/repos/psf/requests/issues/1538/comments
https://api.github.com/repos/psf/requests/issues/1538/events
https://github.com/psf/requests/pull/1538
18,201,680
MDExOlB1bGxSZXF1ZXN0NzY4MDMxNQ==
1,538
Remove superfluous double dot
{ "avatar_url": "https://avatars.githubusercontent.com/u/1330164?v=4", "events_url": "https://api.github.com/users/enkore/events{/privacy}", "followers_url": "https://api.github.com/users/enkore/followers", "following_url": "https://api.github.com/users/enkore/following{/other_user}", "gists_url": "https://api.github.com/users/enkore/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/enkore", "id": 1330164, "login": "enkore", "node_id": "MDQ6VXNlcjEzMzAxNjQ=", "organizations_url": "https://api.github.com/users/enkore/orgs", "received_events_url": "https://api.github.com/users/enkore/received_events", "repos_url": "https://api.github.com/users/enkore/repos", "site_admin": false, "starred_url": "https://api.github.com/users/enkore/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/enkore/subscriptions", "type": "User", "url": "https://api.github.com/users/enkore", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2013-08-18T01:06:39Z
2021-09-08T21:01:07Z
2013-08-18T06:26:59Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1538/reactions" }
https://api.github.com/repos/psf/requests/issues/1538/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1538.diff", "html_url": "https://github.com/psf/requests/pull/1538", "merged_at": "2013-08-18T06:26:59Z", "patch_url": "https://github.com/psf/requests/pull/1538.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1538" }
true
[ "It's not superfluous. :-1:\n", "It is, look at the generated docs: http://docs.python-requests.org/en/latest/user/quickstart/#timeouts\n", "That's just plain bizarre. Perhaps it's a bug in Sphinx but I wasn't expecting that. Regardless, in the meantime I'm changing my vote to :+1:. Sorry I didn't check prior t...
https://api.github.com/repos/psf/requests/issues/1537
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1537/labels{/name}
https://api.github.com/repos/psf/requests/issues/1537/comments
https://api.github.com/repos/psf/requests/issues/1537/events
https://github.com/psf/requests/pull/1537
18,190,224
MDExOlB1bGxSZXF1ZXN0NzY3NjE5MA==
1,537
Allow non-string objects to be posted as data alongside files.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "color": "009800", "default": false, "description": null, "id": 44501218, "name": "Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTIxOA==", "url": "https://api.github.com/repos/psf/requests/labels/Ready%20To%20Merge" } ]
closed
true
null
[]
null
6
2013-08-17T06:29:06Z
2021-09-08T23:06:20Z
2013-08-21T18:46:28Z
MEMBER
resolved
This should resolve #1462.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1537/reactions" }
https://api.github.com/repos/psf/requests/issues/1537/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1537.diff", "html_url": "https://github.com/psf/requests/pull/1537", "merged_at": "2013-08-21T18:46:28Z", "patch_url": "https://github.com/psf/requests/pull/1537.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1537" }
true
[ "These test failures are the current cookie test failures in 2.0, nothing to do with this PR.\n", "@Lukasa will this interfere with the undocumented streaming upload functionality?\n", "Nope, we decide if we're doing streaming well before this point. This will only affect values in the data dict. =)\n", "I re...
https://api.github.com/repos/psf/requests/issues/1536
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1536/labels{/name}
https://api.github.com/repos/psf/requests/issues/1536/comments
https://api.github.com/repos/psf/requests/issues/1536/events
https://github.com/psf/requests/pull/1536
18,190,158
MDExOlB1bGxSZXF1ZXN0NzY3NjE2Nw==
1,536
RequestsException subclasses IOError
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "color": "009800", "default": false, "description": null, "id": 44501218, "name": "Ready To Merge", "node_id": "MDU6TGFiZWw0NDUwMTIxOA==", "url": "https://api.github.com/repos/psf/requests/labels/Ready%20To%20Merge" }, { "color": "eb6420", "default": false, "description...
closed
true
null
[]
null
1
2013-08-17T06:18:11Z
2021-09-08T23:06:14Z
2013-08-21T18:25:20Z
MEMBER
resolved
This should resolve #1532. Let me know if you'd rather we multiply-inherit from `IOError` and `RuntimeError`.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1536/reactions" }
https://api.github.com/repos/psf/requests/issues/1536/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1536.diff", "html_url": "https://github.com/psf/requests/pull/1536", "merged_at": "2013-08-21T18:25:20Z", "patch_url": "https://github.com/psf/requests/pull/1536.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1536" }
true
[ "These test failures are the current cookie test failures in 2.0, nothing to do with this PR.\n" ]
https://api.github.com/repos/psf/requests/issues/1535
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1535/labels{/name}
https://api.github.com/repos/psf/requests/issues/1535/comments
https://api.github.com/repos/psf/requests/issues/1535/events
https://github.com/psf/requests/pull/1535
18,186,985
MDExOlB1bGxSZXF1ZXN0NzY3NTQ3Mg==
1,535
Skip cookie extraction if necessary
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-08-17T02:44:53Z
2021-09-08T21:01:06Z
2013-08-17T03:15:18Z
CONTRIBUTOR
resolved
If `_original_response` is never set/is `None`, then don't try to extract cookies from the response. Fixes #1534
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1535/reactions" }
https://api.github.com/repos/psf/requests/issues/1535/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1535.diff", "html_url": "https://github.com/psf/requests/pull/1535", "merged_at": "2013-08-17T03:15:18Z", "patch_url": "https://github.com/psf/requests/pull/1535.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1535" }
true
[ ":cake: :sparkles:\n" ]
https://api.github.com/repos/psf/requests/issues/1534
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1534/labels{/name}
https://api.github.com/repos/psf/requests/issues/1534/comments
https://api.github.com/repos/psf/requests/issues/1534/events
https://github.com/psf/requests/issues/1534
18,182,972
MDU6SXNzdWUxODE4Mjk3Mg==
1,534
extract_cookies_to_jar requires a response with _original_response
{ "avatar_url": "https://avatars.githubusercontent.com/u/145979?v=4", "events_url": "https://api.github.com/users/dstufft/events{/privacy}", "followers_url": "https://api.github.com/users/dstufft/followers", "following_url": "https://api.github.com/users/dstufft/following{/other_user}", "gists_url": "https://api.github.com/users/dstufft/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dstufft", "id": 145979, "login": "dstufft", "node_id": "MDQ6VXNlcjE0NTk3OQ==", "organizations_url": "https://api.github.com/users/dstufft/orgs", "received_events_url": "https://api.github.com/users/dstufft/received_events", "repos_url": "https://api.github.com/users/dstufft/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dstufft/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dstufft/subscriptions", "type": "User", "url": "https://api.github.com/users/dstufft", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2013-08-16T22:55:07Z
2021-09-09T02:11:37Z
2013-08-17T03:15:18Z
CONTRIBUTOR
resolved
While attempting to make a `LocalFSAdapter()` which handles `file://` urls I discovered that the response objects need to have an `_original_response` attribute or it bombs out at https://github.com/kennethreitz/requests/blob/master/requests/cookies.py#L113.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1534/reactions" }
https://api.github.com/repos/psf/requests/issues/1534/timeline
null
completed
null
null
false
[ "This probably doesn't help but a few things:\n- Requests is ill-suited for the `file://` scheme.\n- The `_original_response` object can be faked in a couple ways but only one way if you're interested in python 2 and 3 support. If the latter is your purpose then checkout sigmavirus24/betamax. I'm using the latter m...
https://api.github.com/repos/psf/requests/issues/1533
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1533/labels{/name}
https://api.github.com/repos/psf/requests/issues/1533/comments
https://api.github.com/repos/psf/requests/issues/1533/events
https://github.com/psf/requests/issues/1533
18,120,658
MDU6SXNzdWUxODEyMDY1OA==
1,533
Post not respecting explicit Content-Type in Python 3
{ "avatar_url": "https://avatars.githubusercontent.com/u/108889?v=4", "events_url": "https://api.github.com/users/jamur2/events{/privacy}", "followers_url": "https://api.github.com/users/jamur2/followers", "following_url": "https://api.github.com/users/jamur2/following{/other_user}", "gists_url": "https://api.github.com/users/jamur2/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jamur2", "id": 108889, "login": "jamur2", "node_id": "MDQ6VXNlcjEwODg4OQ==", "organizations_url": "https://api.github.com/users/jamur2/orgs", "received_events_url": "https://api.github.com/users/jamur2/received_events", "repos_url": "https://api.github.com/users/jamur2/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jamur2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamur2/subscriptions", "type": "User", "url": "https://api.github.com/users/jamur2", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2013-08-15T18:51:26Z
2021-09-09T02:11:36Z
2013-08-15T19:10:15Z
NONE
resolved
In Python 3 (specifically, I'm on 3.3.2) if you set an explicit Content-Type header in post and have a byte string as your data, 2 Content-Type headers will get set. Example: ``` python >>> _ = requests.post("http://httpbin.org/post", data=b"123", headers={"Content-Type": "application/octet-stream"}) >>> _.json()['headers']['Content-Type'] 'application/octet-stream, application/x-www-form-urlencoded' ``` It looks like it's because the test to see if a `Content-Type` is already set is broken. It tests (`requests/models.py`): ``` python # Add content-type if it wasn't explicitly provided. if (content_type) and (not 'content-type' in self.headers): self.headers['Content-Type'] = content_type ``` But keys in self.headers are bytestrings in Python 3, not strings: ``` python (pdb) 'content-type' in self.headers False (pdb) b'content-type' in self.headers True ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1533/reactions" }
https://api.github.com/repos/psf/requests/issues/1533/timeline
null
completed
null
null
false
[ "Thanks for reporting this! We've actually already got a fix for this, from PR #1338, which is in the 2.0 branch. =) Should be in the 2.0 release. =)\n", "Ah, cool. In my defense, GitHub issue search is down :)\n", "You absolutely don't need a defense. =) I'm glad you opened the issue: it's certainly way bette...
https://api.github.com/repos/psf/requests/issues/1532
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1532/labels{/name}
https://api.github.com/repos/psf/requests/issues/1532/comments
https://api.github.com/repos/psf/requests/issues/1532/events
https://github.com/psf/requests/issues/1532
18,081,270
MDU6SXNzdWUxODA4MTI3MA==
1,532
RequestException should subclass IOError
{ "avatar_url": "https://avatars.githubusercontent.com/u/154988?v=4", "events_url": "https://api.github.com/users/beck/events{/privacy}", "followers_url": "https://api.github.com/users/beck/followers", "following_url": "https://api.github.com/users/beck/following{/other_user}", "gists_url": "https://api.github.com/users/beck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/beck", "id": 154988, "login": "beck", "node_id": "MDQ6VXNlcjE1NDk4OA==", "organizations_url": "https://api.github.com/users/beck/orgs", "received_events_url": "https://api.github.com/users/beck/received_events", "repos_url": "https://api.github.com/users/beck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/beck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/beck/subscriptions", "type": "User", "url": "https://api.github.com/users/beck", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2013-08-14T22:34:45Z
2021-09-09T01:22:33Z
2013-08-27T07:58:09Z
NONE
resolved
`RuntimeError` [should only be raised if does not fall in any other categories](http://docs.python.org/2/library/exceptions.html#exceptions.RuntimeError). Using [urllib](http://docs.python.org/2/library/urllib.html#url-opener-objects) as reference, I believe `IOError` is appropriate. Related: https://github.com/kennethreitz/requests/issues/419
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1532/reactions" }
https://api.github.com/repos/psf/requests/issues/1532/timeline
null
completed
null
null
false
[ "Yeah, I think you're right. @kennethreitz, are you open to me doing this for 2.0?\n", "yes, especially if IOError subclasses RuntimeError\n", "IOError is a subclass of EnvironmentError, sadly, not RuntimeError. It'll definitely be backwards incompatible, but I think that's probably acceptable.\n", "could use...
https://api.github.com/repos/psf/requests/issues/1531
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1531/labels{/name}
https://api.github.com/repos/psf/requests/issues/1531/comments
https://api.github.com/repos/psf/requests/issues/1531/events
https://github.com/psf/requests/issues/1531
18,077,104
MDU6SXNzdWUxODA3NzEwNA==
1,531
Request exception return encoded (windows 1255) string. how to sel locale
{ "avatar_url": "https://avatars.githubusercontent.com/u/1434992?v=4", "events_url": "https://api.github.com/users/alonisser/events{/privacy}", "followers_url": "https://api.github.com/users/alonisser/followers", "following_url": "https://api.github.com/users/alonisser/following{/other_user}", "gists_url": "https://api.github.com/users/alonisser/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alonisser", "id": 1434992, "login": "alonisser", "node_id": "MDQ6VXNlcjE0MzQ5OTI=", "organizations_url": "https://api.github.com/users/alonisser/orgs", "received_events_url": "https://api.github.com/users/alonisser/received_events", "repos_url": "https://api.github.com/users/alonisser/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alonisser/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alonisser/subscriptions", "type": "User", "url": "https://api.github.com/users/alonisser", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-08-14T21:09:33Z
2021-09-09T01:22:24Z
2013-09-21T15:25:59Z
NONE
resolved
I'm trying to figure out how to get proper english/ascii error message from a failes `requests.get`. for some reason (probably being working with a hebrew locale), I get a jibrish unicode error message. I can deocde the message and display it correctly in hebrew, but I really prefer (for various reasons) that the Exception error text would be in english. checking [Requests Exception source code](https://github.com/kennethreitz/requests/blob/master/requests/exceptions.py) doesn't even lead me in the right direction, Since I seem to be I'm getting a different exception: `(10060, some encoded error text,')` and the class is: `<class 'socket.error'>`. So I guess we are probably looking at a `socket.error` from [socket lib](http://docs.python.org/2/library/socket.html#socket.error). At least as far as I can tell from parsing the Exception args (I can't raise the exception directly, only while running the app, where I do a smelly `except Exception as e` and parse `e.args` and `e.message`). So: how do I set the locale so that requests (or the underlying socket lib if my guess is correct) would return an english/ascii error message? Thanks for the help!
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1531/reactions" }
https://api.github.com/repos/psf/requests/issues/1531/timeline
null
completed
null
null
false
[ "Thanks for raising this!\n\nUnfortunately, this is not a property of Requests. I have no idea what's causing this, but you'll have to look into the socket library. If I recall correctly you also opened a Stack Overflow question on this topic, which is probably the right place to look.\n" ]
https://api.github.com/repos/psf/requests/issues/1530
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/1530/labels{/name}
https://api.github.com/repos/psf/requests/issues/1530/comments
https://api.github.com/repos/psf/requests/issues/1530/events
https://github.com/psf/requests/pull/1530
17,977,066
MDExOlB1bGxSZXF1ZXN0NzU1OTc5OA==
1,530
Added Logbook as a requirement.
{ "avatar_url": "https://avatars.githubusercontent.com/u/423715?v=4", "events_url": "https://api.github.com/users/daniloassis/events{/privacy}", "followers_url": "https://api.github.com/users/daniloassis/followers", "following_url": "https://api.github.com/users/daniloassis/following{/other_user}", "gists_url": "https://api.github.com/users/daniloassis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/daniloassis", "id": 423715, "login": "daniloassis", "node_id": "MDQ6VXNlcjQyMzcxNQ==", "organizations_url": "https://api.github.com/users/daniloassis/orgs", "received_events_url": "https://api.github.com/users/daniloassis/received_events", "repos_url": "https://api.github.com/users/daniloassis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/daniloassis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/daniloassis/subscriptions", "type": "User", "url": "https://api.github.com/users/daniloassis", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2013-08-13T02:51:55Z
2021-09-08T21:01:06Z
2013-08-13T02:52:11Z
NONE
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/423715?v=4", "events_url": "https://api.github.com/users/daniloassis/events{/privacy}", "followers_url": "https://api.github.com/users/daniloassis/followers", "following_url": "https://api.github.com/users/daniloassis/following{/other_user}", "gists_url": "https://api.github.com/users/daniloassis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/daniloassis", "id": 423715, "login": "daniloassis", "node_id": "MDQ6VXNlcjQyMzcxNQ==", "organizations_url": "https://api.github.com/users/daniloassis/orgs", "received_events_url": "https://api.github.com/users/daniloassis/received_events", "repos_url": "https://api.github.com/users/daniloassis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/daniloassis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/daniloassis/subscriptions", "type": "User", "url": "https://api.github.com/users/daniloassis", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/1530/reactions" }
https://api.github.com/repos/psf/requests/issues/1530/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/1530.diff", "html_url": "https://github.com/psf/requests/pull/1530", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/1530.patch", "url": "https://api.github.com/repos/psf/requests/pulls/1530" }
true
[ "my bad, sorry.\n" ]