Matt Spitz
13a6e02ccd
Increasing super_len compatibilty to include BytesIO and cStringIO objects.
...
Added a check for 'getvalue' attr, calling it to retrieve the length if we can.
We also try/except the fileno() call, which can throw
io.UnsupportedOperation for BytesIO because, well, they're not files.
2013-10-10 14:54:47 -04:00
kennethreitz
43477edc91
Merge pull request #1636 from Lukasa/httpsprox
...
Don't send the full URL on CONNECT messages.
2013-10-07 16:23:18 -07:00
kennethreitz
318ca102cd
Merge pull request #1635 from daftshady/dev
...
Fixed #1630 and added test case.
2013-10-07 16:22:49 -07:00
kennethreitz
14c12fb151
Merge pull request #1637 from Lukasa/redir
...
Correctly lowercase a redirect scheme.
2013-10-07 16:21:29 -07:00
kennethreitz
3246fc088a
Merge pull request #1640 from abarnert/master
...
Accept per-file headers in multipart file POST messages.
2013-10-07 16:21:16 -07:00
Riyad Parvez
48f59aa1f7
back to BaseException
2013-10-05 22:49:54 +06:00
Riyad Parvez
56c82c52b0
fixed print statement
2013-10-05 20:12:18 +06:00
Riyad Parvez
5c92c72e2c
removed deprecated while 1:
2013-10-05 09:59:47 +06:00
Riyad Parvez
8370e66464
fixed print statement
2013-10-05 09:56:11 +06:00
Riyad Parvez
c8a68334a7
replaced deprecated BaseException
2013-10-05 09:53:34 +06:00
Graham Dumpleton
4291f76c99
Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError.
2013-10-04 16:07:11 +10:00
Andrew Barnert
af4fb8cedc
Accept per-file headers in multipart file POST messages.
...
- Each file in the `files` argument can now be a 4-tuple, instead of
just a file, 2-tuple, or 3-tuple. If it is, the last value in the
tuple is a dictionary of extra headers.
2013-09-30 17:07:13 -07:00
daftshady
012f0334ce
added param to cookiejar_from_dict instead of creating new method.
2013-09-29 01:08:58 +09:00
Cory Benfield
0051837af4
Correctly lowercase a redirect scheme.
2013-09-28 17:01:32 +01:00
Cory Benfield
8b7fcfb49a
Don't send the full URL on CONNECT messages.
2013-09-28 15:46:43 +01:00
daftshady
d22eaf96e2
Fixed #1630
2013-09-28 23:44:27 +09:00
daftshady
373166d833
checkout auth
2013-09-28 16:41:08 +09:00
daftshady
39fe0068aa
Fixed #1630 , added test case for cookie persistence.
2013-09-28 16:33:05 +09:00
daftshady
1d1831ba40
fixed extra bonus bug
2013-09-27 22:17:40 +09:00
daftshady
3501ea4634
Fixed #1623 . Added 'MD5-sess' algorithm to HTTPDigestAuth
2013-09-26 15:40:12 +09:00
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