Shivaram Lingamneni
3c0b94047c
address connection leak issue from #520
...
* prefetch now defaults to True, ensuring that by default, sockets
are returned to the urllib3 connection pool on request end
* sessions now have a close() method, notifying urllib3 to close pooled
connections
* the module-level API, e.g., `requests.get('http://www.google.com ')`,
explicitly closes its session when finished
When prefetch is False, the open socket becomes part of the state of the
Response object, and it's the client's responsibility to read the whole
body, at which point the socket will be returned to the pool.
2012-08-05 21:09:13 -07:00
Kenneth Reitz
9abc9ad1b3
v0.13.5
2012-07-27 03:23:33 -04:00
Kenneth Reitz
767751599e
v0.13.4
2012-07-27 02:21:56 -04:00
Kenneth Reitz
e0fed46561
Solves #722
2012-07-27 01:48:25 -04:00
Kenneth Reitz
81207783a2
Merge remote-tracking branch 'origin/develop' into develop
2012-07-27 01:39:21 -04:00
Kenneth Reitz
c65065177f
ordered dict
2012-07-27 01:39:17 -04:00
Kenneth Reitz
bc63617da2
Merge pull request #647 from mkomitee/kerberos
...
Implement GSSAPI/Kerberos authentication for requests
2012-07-26 22:36:41 -07:00
Kenneth Reitz
31e768f134
Merge pull request #729 from vickimo/issue_661
...
Added needed cast for when POSTing data and files (Issue #661 )
2012-07-26 22:33:51 -07:00
Kenneth Reitz
e02fb2eb6c
urllib update and junks
2012-07-27 01:32:01 -04:00
Kenneth Reitz
0d9ab27b02
Merge pull request #736 from Lukasa/develop
...
Make OAuth path hack platform independent.
2012-07-26 22:29:58 -07:00
Sævar Öfjörð Magnússon
350be4a549
Appengine workaround
2012-07-25 16:06:26 +00:00
Cory Benfield
55237ad67d
Comment typo fix and move newline.
2012-07-25 13:24:38 +01:00
Cory Benfield
79aa9edde1
Make OAuth path hack platform independent.
2012-07-21 18:11:00 +01:00
Kristian Glass
c485928a9f
Include reason rather than content in raised HTTPErrors
...
See https://github.com/kennethreitz/requests/pull/733 for details, TL;DR
content is too free-form for this to generally be a good idea.
2012-07-20 19:26:08 +01:00
Kristian Glass
6eb1ac4452
Include response.content in raised HTTPErrors
2012-07-20 18:50:04 +01:00
jorjun
2c241d2801
breaks under python 2.7, without the from __future__ import
2012-07-18 12:58:55 +02:00
Victoria Mo
f9c0ddf46d
Added needed cast for when POSTing data and files (Issue #661 )
...
Co-Authored By: Timnit Gebru <tgebru@gmail.com >
Co-Authored By: Sarah Gonzalez <smar.gonz@gmail.com >
Co-Authored By: Leila Muhtasib <muhtasib@gmail.com >
2012-07-14 18:28:34 -04:00
Victoria Mo
5296b8be90
Fix infinite loop on wrong Digest Authentication (Issue #547 )
...
Modified code to use the current fix versus the old fix, which was broken.
Co-Authored By: Timnit Gebru <tgebru@gmail.com >
Co-Authored By: Sarah Gonzalez <smar.gonz@gmail.com >
Co-Authored By: Leila Muhtasib <muhtasib@gmail.com >
2012-07-14 16:09:13 -04:00
Leila Muhtasib
318f2460ee
Differentiate between two types of timeout errors from urllib3
...
Bubble up error message from urllib3 to indicate to user
whether error was a socket timeout vs a no connections
available in connection pool error.
Co-Authored By: Sarah Gonzalez
2012-07-13 15:20:05 -04:00
karl
9fe4a99365
adding clarification to the history API. It was not clear how the history list was sorted.
2012-07-12 16:34:28 -04:00
Kenneth Reitz
b222ff9477
Merge branch 'develop' of git://github.com/siebenschlaefer/requests into develop
...
Conflicts:
AUTHORS.rst
2012-07-12 12:06:43 -07:00
Cory Benfield
523906c54f
Do not hide SSLErrors behind Timeouts.
2012-07-11 17:31:59 +01:00
Matthias Rahlf
08cebb3c2f
fixed param handling in Request.full_url
2012-07-10 01:06:02 +02:00
Kenneth Reitz
b7fd0e81fd
Merge pull request #709 from dstufft/develop
...
Have User Agent include more details
2012-07-08 00:42:17 -07:00
Donald Stufft
21f60fe8df
Move the user agent generation into it's own utility function
2012-07-08 00:47:24 -04:00
Donald Stufft
523433f26c
Readd default that was accidently removed
2012-07-08 00:37:23 -04:00
Kenneth Reitz
f8c98715c3
simplify #710
2012-07-08 00:24:24 -04:00
Zach Williams
25299400fa
Add try/catch for simplejson vs json
2012-07-07 21:14:29 -07:00
Donald Stufft
11433d942d
Include the system name and version in the default user agent
2012-07-07 16:13:39 -04:00
Donald Stufft
982268a201
Include the implementation and implementation version number in the default User-Agent
2012-07-07 16:08:22 -04:00
Kenneth Reitz
ef5e5a1a21
Merge remote-tracking branch 'origin/develop' into develop
2012-06-28 17:29:30 -07:00
Kenneth Reitz
fb2ce4f0dc
v0.13.2
2012-06-28 17:29:22 -07:00
Kenneth Reitz
065caa30f4
Merge pull request #629 from saschpe/develop
...
Add openSUSE certificate support
2012-06-28 17:26:30 -07:00
Kenneth Reitz
a1fd038d2c
vendored oauthlib
2012-06-28 17:20:26 -07:00
Kenneth Reitz
9576518d69
oauthlib
2012-06-28 16:23:25 -07:00
Kenneth Reitz
6541ceb5f5
Merge remote-tracking branch 'origin/develop' into develop
2012-06-28 16:00:40 -07:00
Kenneth Reitz
a17fdf6224
chardet2
2012-06-28 16:00:00 -07:00
Kenneth Reitz
abf33ba11c
chardet2
2012-06-28 15:58:12 -07:00
Kenneth Reitz
c3ad7af06c
include certifi
2012-06-28 15:58:00 -07:00
Kenneth Reitz
1253c78011
embed chardet
2012-06-28 12:53:39 -07:00
Craig de Stigter
74a4d06d58
fix a bug where client certificates never get set unless verify=True (which verifies server certs, so should be unrelated)
2012-06-26 12:42:14 +12:00
Kenneth Reitz
8f0ac668da
update urllib3
2012-06-25 12:35:39 -04:00
Kenneth Reitz
64da351ed9
Merge pull request #684 from gulopine/develop
...
Sign querystring parameters in OAuth 1.0
2012-06-20 16:52:38 -07:00
Marty Alchin
4e568c1899
Sign querystring parameters in OAuth 1.0
...
Existing usage doesn't pass GET querystring parameters along to oauthlib,
so it wasn't signing those properly, which causes problems with APIs that
rely heavily on GET parameters. By passing in r.full_url instead of r.url,
oauthlib can parse out the correct parameters and sign them properly.
2012-06-18 21:02:51 -07:00
Kenneth Reitz
c7514faf4a
add response.reason
...
#588
2012-06-15 14:37:33 -04:00
Kenneth Reitz
f5d1d0d27a
Merge remote-tracking branch 'origin/develop' into develop
2012-06-15 14:31:24 -04:00
Kenneth Reitz
d3acb783b9
urllib3 update
...
fixes #664
2012-06-15 14:31:19 -04:00
Sascha Peilicke
66ef8886c6
Add openSUSE certificate support
2012-06-15 14:16:16 +02:00
Kenneth Reitz
08ac9897bb
Merge pull request #675 from gulopine/develop
...
Make sure OAuth doesn't fall off
2012-06-14 10:18:23 -07:00
Marty Alchin
9a30e02962
Make sure OAuth doesn't fall off, which happens in particular when encountering redirects
2012-06-13 20:54:54 -07:00