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
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
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
abfb38bd57
Merge pull request #1508 from dieterv/master
...
remove duplicate comment
2013-07-31 18:36:07 -07: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
Ian Cordasco
37786613e0
Fix duplication of efforts caught by @dofelw
2013-07-29 08:09:07 -05:00
Gavrie Philipson
ea2b639d31
Update urllib3 to d89d508
2013-07-29 11:29:41 +03:00
Cory Benfield
79f3e69f5e
Wrap IncompleteRead in ChunkedEncodingError.
2013-07-28 07:42:17 +01:00
Cory Benfield
9473f15909
Merge pull request #1494 from Lukasa/close
...
Document the Response.close() method.
2013-07-27 23:04:34 -07:00
Kenneth Reitz
77bd9c4a9d
Merge pull request #1476 from sigmavirus24/add_copy_to_prepared_requests
...
[2.0] Add copy method to PreparedRequest objects
2013-07-26 18:16:00 -07:00
Cory Benfield
f401287afb
Document the Response.close() method.
2013-07-25 19:10:42 +01:00
Cory Benfield
3becc47366
Comment markups, courtesy of @sigmavirus24
2013-07-24 16:03:24 +01:00
Cory Benfield
f40a1d6a8a
Better cookie docs on sessions.
2013-07-24 13:25:59 +01:00
David Pursehouse
9e771aa79c
Fix test cases that fail when running behind a proxy
...
When sending a request via `Session.send()` the proxies must be
explicitly given with the `proxies` argument. This is not done
in the test cases, which means that they fail when run on a system
that is behind a proxy.
Update test cases to make sure the proxies are set in the sessions.
2013-07-23 16:55:27 +09:00
David Pursehouse
4f64938ff0
Fix a few warnings flagged by PyDev
...
- Unused import of urlparse
- Unnecessary definition of variable
- Incorrect indentation
2013-07-22 17:14:45 +09:00
Ian Cordasco
b84547d786
Add copy method to PreparedRequest objects
2013-07-20 17:08:35 -04:00
Audrius Butkevicius
9f119ee420
Update urllib3 to a43319f
2013-07-18 21:06:19 +00:00
Kenneth Reitz
65a0fd88a9
Merge pull request #1440 from fcurella/patch-0
...
unquote double-quotes cookie values
2013-07-15 06:54:00 -07:00
Kenneth Reitz
4b7cf389e4
Merge pull request #1439 from voberoi/master
...
Make sure netrc doesn't override any authentication settings explicitly set by the client
2013-07-15 06:22:53 -07:00
Kenneth Reitz
86d466c745
Merge pull request #1441 from Lukasa/1395
...
Remove urllib3-specific kwargs from non-urllib3 branch.
2013-07-15 06:22:41 -07:00
Philippe Ndiaye
18a736fbe6
Set 208 status_code to "already_reported"
2013-07-13 11:08:01 +02:00
Philippe Ndiaye
7bdf37bc27
Changed the "im_used" informational status code for the value given by IANA (226)
...
See RFC 3229 at http://tools.ietf.org/html/rfc3229#section-10.4.1 and HTTP status codes at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
2013-07-13 09:55:50 +02:00
Cory Benfield
555472bf1e
Remove urllib3-specific kwargs from general code
2013-07-04 10:34:43 +01:00
Flavio Curella
a8cf5b8502
keep the double quotes, but don't escape them
2013-07-01 15:48:48 -05:00
Flavio Curella
cdab4fabf4
unquote double-quotes cookie values
2013-07-01 13:51:40 -05:00
Vikram Oberoi
188e7609b3
.netrc settings shouldn't blow away explicit auth settings on a session
2013-06-27 16:43:40 -04:00
Chen Huang
9083735963
@1434 Fix https://github.com/kennethreitz/requests/issues/1434
2013-06-25 18:38:59 -04:00
Cory Benfield
1faa76a86f
Use the new urllib3 stream generator.
2013-06-18 17:56:35 +01:00
Cory Benfield
ecf57cac5c
Update urllib3 to cffbd6b317
2013-06-18 17:47:23 +01:00
Roman Haritonov
716b627c1e
Don't reuse PreparedRequest on redirects
2013-06-08 14:41:34 +04:00
Kenneth Reitz
8028103b71
Merge pull request #1400 from jam/master
...
Retrieve environment proxies using standard library functions
2013-06-08 03:20:18 -07:00
Kenneth Reitz
8430e6ccbb
Merge pull request #1334 from rcarz/master
...
resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase
2013-06-08 03:18:25 -07:00
Kenneth Reitz
d4c461042b
Merge pull request #1385 from ViktorHaag/master
...
Cope with mixed-case URL schemes (like 'HTTP') by lower-ifying 'url' string before calling startswith() on it
2013-06-08 03:17:38 -07:00
Kenneth Reitz
60b1a0ba13
Merge pull request #1381 from expandrive/master
...
Don't force chunked transfer on 0-length file-like object.
2013-06-08 03:16:32 -07:00
Kenneth Reitz
eec9bdd434
Merge pull request #1408 from wasw100/master
...
cookies.morsel_to_cookie morsel['expires'] can't be strtime, and morsel['max-age'] convert to expires problem repair
2013-06-08 03:14:32 -07:00
Thomas Weißschuh
2ed976ea71
update urllib3 to 60ba176f5d
2013-06-08 08:22:15 +00:00
wasw100
767f758aac
cookies.morsel_to_cookie morsel['expires'] can't be strtime, and max-age convert to expires problem repair
2013-06-07 00:02:45 +08:00
wasw100
961790f95c
cookies.morsel_to_cookie(morsel) raise TypeError repaired.
...
morsel_to_cookie(mosel) method raise TypeError: create_cookie() got unexpected keyword arguments: ['path_specified', 'domain_specified', 'port_specified', 'domain_initial_dot'].
so we should remove these param from create_cookie(...)
2013-06-06 19:15:09 +08:00
James Clarke
93be6916f9
Use urllib to retrieve environment proxies.
...
This has the added benefit of including proxies defined by the OS X System Configuration framework and in the Windows registry, rather than only checking os.environ.
2013-05-31 18:19:34 -07:00
Bob Carroll
72e155e529
resolve_redirects now checks for a scheme before converting the scheme to lowercase, added tests or the scheme casing
2013-05-26 14:44:22 -07:00