Kenneth Reitz
c93419f512
TimeoutSauce!
2013-09-24 14:31:00 -04:00
Kenneth Reitz
94da24e387
v2.0.0
2013-09-24 14:19:07 -04:00
Kenneth Reitz
54ad646067
merge 2.0 insto master
2013-09-24 14:13:28 -04:00
Kenneth Reitz
c64c0ab121
prototype for new urllib3 timeouts
2013-09-24 14:06:24 -04:00
Kenneth Reitz
2f39e0e2aa
new urllib3
2013-09-24 13:59:38 -04:00
Kenneth Reitz
23ced527f7
Merge pull request #1503 from skastel/master
...
Fixing error return to be consistent with tuple return at the end of the method
2013-09-24 10:48:07 -07:00
Kenneth Reitz
2affd6385e
Merge pull request #1602 from sigmavirus24/handle_multiple_qop_types
...
Handle multiple qop types
2013-09-24 10:46:16 -07:00
Kenneth Reitz
58376489af
Merge pull request #1585 from rvoicilas/master
...
Use values() when the keys are not being used
2013-09-24 10:45:46 -07:00
Kenneth Reitz
03d844f926
Merge pull request #1565 from Lukasa/relative
...
Don't absolute import things we've vendored.
2013-09-24 10:39:09 -07:00
Ian Cordasco
22e31b4b73
Handle case when WWW-Authenticate returns multiple qops
...
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.
2013-09-13 22:29:42 -05:00
Cory Benfield
61421843bc
Python defaults arguments are hard.
2013-09-13 14:10:09 +01:00
Sayan Chowdhury
0a52d9405e
minor typo: Fix requests spelling
2013-09-11 20:21:57 +05:30
kracekumar
a829ef9b46
Fixed persistence spelling
2013-09-10 17:52:29 +05:30
Radu Voicilas
056da86f6d
Use values() when the keys are not being used
2013-09-09 15:21:36 +03:00
Jon Parise
b9b5be7c4c
Improved content encoding detection.
...
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
2013-09-03 16:16:46 -07:00
Cory Benfield
1aa7658256
Don't absolute import vendored things.
2013-09-01 18:10:09 +01:00
Cory Benfield
f040b2aa5d
Allow spaces in the no_proxy environ variable.
2013-08-23 12:37:03 +01:00
Kenneth Reitz
09c52e7282
Merge pull request #1537 from Lukasa/datetime
...
Allow non-string objects to be posted as data alongside files.
2013-08-21 11:46:27 -07:00
Kenneth Reitz
4b6649e37b
Merge pull request #1527 from paul-matthews/restrict-hooks-access
...
Raise an error for unsupported hook event
2013-08-21 11:28:23 -07:00
Cory Benfield
f44b86e039
Allow non-string objects to be data with files
2013-08-17 07:27:58 +01:00
Cory Benfield
3bc01eed6f
RequestException subclasses IOError.
2013-08-17 07:17:03 +01:00
Ian Cordasco
98680b64f4
Skip cookie extraction if necessary
...
If _original_response is never set/is None, then don't try to extract cookies
from the response.
2013-08-16 21:38:20 -05:00
Kenneth Reitz
d8268fb7b4
Merge pull request #1515 from schlamar/https-proxy-2.0
...
[2.0] Https proxy support
2013-08-14 13:41:08 -07:00
Cory Benfield
2e5a674601
Add proxy_headers functionality.
...
This brings us in line with urllib3's fancy new magic for sending
headers to HTTP(S) proxies.
2013-08-14 09:47:44 +01:00
Paul Matthews
61617e74ed
Raise an error for unsupported hook event
...
* Raises a ValueError for an unsupported hook event
2013-08-12 15:27:17 +01:00
Stephen Huenneke
9dd823c289
Raising ValueError's when we're passed inconsistent POST data and files dict.
2013-08-06 11:04:03 -07:00
Cory Benfield
a5e5a51fb4
Catch UnsupportedOperation.
2013-08-03 19:24:23 +01:00
ms4py
c951f0543c
Cache manager for proxy connection.
2013-08-03 13:59:28 +02:00
ms4py
134699faf9
Fix for new proxy API.
2013-08-03 13:57:15 +02:00
ms4py
d06dabab59
Update urllib3 to 14b8945
2013-08-03 13:55:19 +02:00
Cory Benfield
5a26241287
Better percent-escape exception.
2013-08-02 12:29:23 +01:00
Kenneth Reitz
abfb38bd57
Merge pull request #1508 from dieterv/master
...
remove duplicate comment
2013-07-31 18:36:07 -07:00
Kenneth Reitz
bd1f1404a0
Merge branch 'fix_401_cookies' of git://github.com/sigmavirus24/requests into 2.0
2013-07-31 21:33:24 -04:00
Kenneth Reitz
f865d61713
Merge branch 'proxyscheme' of git://github.com/Lukasa/requests into 2.0
2013-07-31 21:27:01 -04:00
Kenneth Reitz
1a6637c285
Merge branch 'keytype' of git://github.com/Lukasa/requests into 2.0
2013-07-31 21:25:57 -04:00
Kenneth Reitz
22701d149a
Merge pull request #1500 from gavrie/master
...
Update urllib3 to d89d508
2013-07-31 18:23:43 -07:00
Kenneth Reitz
d5a8816926
Merge pull request #1498 from Lukasa/incompleteread
...
Wrap IncompleteRead in ChunkedEncodingError.
2013-07-31 18:23:14 -07:00
Kenneth Reitz
6b13ecdc85
Merge pull request #1501 from sigmavirus24/remove_setting_of_hooks
...
Fix duplication of efforts caught by @dofelw
2013-07-31 18:22:58 -07:00
Kenneth Reitz
7eb9a9298e
Merge pull request #1506 from Lukasa/mockrequest
...
Provide 'host' parameter to MockRequest.
2013-07-31 18:22:02 -07:00
Robert Estelle
0ab7a52f7c
Merge settings when creating PreparedRequest, don't copy Request.
2013-07-31 13:42:02 -07:00
Dieter Verfaillie
852de116dd
remove duplicate comment
...
This is already mentioned at line 357...
2013-07-31 09:29:24 +02:00
Robert Estelle
ee90f0af60
Shallow copy of Request fields in Request.copy()
...
This prevents e.g. modifying the headers of a copied request from
affecting the headers of its source and vice versa. Copying is used with
the intent to mutuate, so allowing this kind of mutation of fields makes
sense.
Is a deep copy better?
2013-07-30 22:59:53 -07:00
Robert Estelle
9edba838b3
Skip unneccessary Request.copy in Session.request
2013-07-30 22:59:11 -07:00
Robert Estelle
b5c136152f
Prepare requests with session settings separately from sending.
2013-07-30 21:39:36 -07:00
Cory Benfield
6ef3710970
Provide 'host' parameter to MockRequest.
2013-07-30 18:21:37 +01:00
Stephen Huenneke
f75ee9fb6e
Making sure we check for str/unicode.
2013-07-29 14:42:47 -07:00
Stephen Huenneke
8d9d9fb064
Fixing error return to be consistent with tuple return at the end of the method.
2013-07-29 13:31:06 -07:00
Cory Benfield
7de6b1e162
Instantiate the CID directly.
...
No need to do this the slow way now. Thanks to Colin (@cdunklau) for the
idea.
2013-07-29 14:52:44 +01:00
Cory Benfield
f5775594cc
Header keys should be native strings.
...
This commit follows a discussion on IRC. For more information, see the
Pull Request associated with it.
2013-07-29 14:52:44 +01:00
Ian Cordasco
37786613e0
Fix duplication of efforts caught by @dofelw
2013-07-29 08:09:07 -05:00