Kenneth Reitz [Thu, 1 Aug 2013 01:23:43 +0000 (18:23 -0700)]
Merge pull request #1500 from gavrie/master
Update urllib3 to d89d508
Kenneth Reitz [Thu, 1 Aug 2013 01:23:34 +0000 (18:23 -0700)]
Merge pull request #1487 from dpursehouse/rewrite-test_mixed_case_scheme_acceptable
Rewrite test cases to remove dependency on httpbin.org and example.com
Kenneth Reitz [Thu, 1 Aug 2013 01:23:14 +0000 (18:23 -0700)]
Merge pull request #1498 from Lukasa/incompleteread
Wrap IncompleteRead in ChunkedEncodingError.
Kenneth Reitz [Thu, 1 Aug 2013 01:22:58 +0000 (18:22 -0700)]
Merge pull request #1501 from sigmavirus24/remove_setting_of_hooks
Fix duplication of efforts caught by @dofelw
Kenneth Reitz [Thu, 1 Aug 2013 01:22:02 +0000 (18:22 -0700)]
Merge pull request #1506 from Lukasa/mockrequest
Provide 'host' parameter to MockRequest.
Kenneth Reitz [Thu, 1 Aug 2013 01:21:28 +0000 (18:21 -0700)]
Merge pull request #1507 from buzztabapp/prepared-session-requests
Allow preparing of Requests from Session settings without sending.
Robert Estelle [Wed, 31 Jul 2013 20:42:02 +0000 (13:42 -0700)]
Merge settings when creating PreparedRequest, don't copy Request.
Robert Estelle [Wed, 31 Jul 2013 06:02:13 +0000 (23:02 -0700)]
Add Session.prepare_request test case.
Robert Estelle [Wed, 31 Jul 2013 06:01:56 +0000 (23:01 -0700)]
Add Request.copy() test case.
Robert Estelle [Wed, 31 Jul 2013 05:59:51 +0000 (22:59 -0700)]
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?
Robert Estelle [Wed, 31 Jul 2013 05:59:11 +0000 (22:59 -0700)]
Skip unneccessary Request.copy in Session.request
Robert Estelle [Wed, 31 Jul 2013 04:39:36 +0000 (21:39 -0700)]
Prepare requests with session settings separately from sending.
Cory Benfield [Tue, 30 Jul 2013 17:21:37 +0000 (18:21 +0100)]
Provide 'host' parameter to MockRequest.
Ian Cordasco [Mon, 29 Jul 2013 13:09:07 +0000 (08:09 -0500)]
Fix duplication of efforts caught by @dofelw
Gavrie Philipson [Mon, 29 Jul 2013 08:28:46 +0000 (11:28 +0300)]
Update urllib3 to d89d508
Cory Benfield [Sun, 28 Jul 2013 06:42:17 +0000 (07:42 +0100)]
Wrap IncompleteRead in ChunkedEncodingError.
Cory Benfield [Sun, 28 Jul 2013 06:04:34 +0000 (23:04 -0700)]
Merge pull request #1494 from Lukasa/close
Document the Response.close() method.
Kenneth Reitz [Sat, 27 Jul 2013 01:16:00 +0000 (18:16 -0700)]
Merge pull request #1476 from sigmavirus24/add_copy_to_prepared_requests
[2.0] Add copy method to PreparedRequest objects
Cory Benfield [Thu, 25 Jul 2013 18:10:42 +0000 (19:10 +0100)]
Document the Response.close() method.
Cory Benfield [Wed, 24 Jul 2013 15:03:24 +0000 (16:03 +0100)]
Comment markups, courtesy of @sigmavirus24
Kenneth Reitz [Wed, 24 Jul 2013 13:12:10 +0000 (06:12 -0700)]
Merge pull request #1490 from Lukasa/cookiedocs
Better cookie docs on sessions.
Cory Benfield [Wed, 24 Jul 2013 12:25:59 +0000 (13:25 +0100)]
Better cookie docs on sessions.
David Pursehouse [Wed, 24 Jul 2013 08:37:35 +0000 (17:37 +0900)]
Check the response URL in `test_uppercase_scheme_redirect`
Update the test to check that the URL in the response is the
one that we expect, i.e. the one it was supposed to redirect to.
David Pursehouse [Wed, 24 Jul 2013 08:18:16 +0000 (17:18 +0900)]
Rewrite `test_uppercase_scheme_redirect` to use local httpbin
Instead of redirecting to hard-coded 'example.com', use the URL
defined in `HTTPBIN_URL` with the path set to the 'html' endpoint.
David Pursehouse [Wed, 24 Jul 2013 07:57:54 +0000 (16:57 +0900)]
Remove redundant test case `test_uppercase_scheme`
This test verifies that an upper case scheme ('HTTP') works correctly,
but this is already tested in `test_mixed_case_scheme_acceptable`.
David Pursehouse [Wed, 24 Jul 2013 02:58:43 +0000 (11:58 +0900)]
Rewrite `test_mixed_case_scheme_acceptable` to work with local httpbin
Instead of using hard-coded urls to httpbin.org, use the url defined
in `HTTPBIN_URL` replacing the scheme as necessary to test the mixed
cases.
Refs #1485
David Pursehouse [Wed, 24 Jul 2013 02:39:03 +0000 (11:39 +0900)]
Remove redundant session in `test_mixed_case_scheme_acceptable`
Kenneth Reitz [Tue, 23 Jul 2013 16:03:05 +0000 (09:03 -0700)]
Merge pull request #1486 from sigmavirus24/use_urljoin
Use urlparse.urljointo construct httpbin url
Ian Cordasco [Tue, 23 Jul 2013 15:48:45 +0000 (10:48 -0500)]
Derp. Use compat
Ian Cordasco [Tue, 23 Jul 2013 15:23:31 +0000 (10:23 -0500)]
Use urlparse.urljointo construct httpbin url
Kenneth Reitz [Tue, 23 Jul 2013 12:23:35 +0000 (05:23 -0700)]
Merge pull request #1482 from dpursehouse/fix-testcases-with-proxy
Fix test cases that fail when running behind a proxy
Kenneth Reitz [Tue, 23 Jul 2013 12:23:11 +0000 (05:23 -0700)]
Merge pull request #1483 from dpursehouse/httpbin-url-without-trailing-slash
Test cases fail when `HTTPBIN_URL` does not have trailing slash
David Pursehouse [Tue, 23 Jul 2013 01:51:15 +0000 (10:51 +0900)]
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.
David Pursehouse [Tue, 23 Jul 2013 06:13:00 +0000 (15:13 +0900)]
Test cases fail when `HTTPBIN_URL` does not have trailing slash
Test cases can be run against a local httpbin server defined by
the `HTTPBIN_URL` environment variable, but it causes tests to
fail if the given URL does not end with a slash.
Ensure that the URL always ends with a slash.
Kenneth Reitz [Mon, 22 Jul 2013 08:31:16 +0000 (01:31 -0700)]
Merge pull request #1479 from dpursehouse/fix-warnings
Fix a few warnings flagged by PyDev
David Pursehouse [Mon, 22 Jul 2013 08:14:37 +0000 (17:14 +0900)]
Fix a few warnings flagged by PyDev
- Unused import of urlparse
- Unnecessary definition of variable
- Incorrect indentation
Kenneth Reitz [Mon, 22 Jul 2013 07:09:35 +0000 (00:09 -0700)]
Merge pull request #1478 from dpursehouse/add-me-to-authors
Add myself to the authors list
David Pursehouse [Mon, 22 Jul 2013 06:19:10 +0000 (15:19 +0900)]
Add myself to the authors list
Cory Benfield [Mon, 22 Jul 2013 06:04:31 +0000 (23:04 -0700)]
Merge pull request #1477 from dpursehouse/other-auth-basic-example
Add a simple example of custom authentication in the documentation
David Pursehouse [Mon, 22 Jul 2013 00:09:26 +0000 (09:09 +0900)]
Add a simple example of custom authentication in the documentation
Refs #1471
David Pursehouse [Mon, 22 Jul 2013 00:08:47 +0000 (09:08 +0900)]
Wrap long lines in the authentication documentation
Ian Cordasco [Sat, 20 Jul 2013 21:08:35 +0000 (17:08 -0400)]
Add copy method to PreparedRequest objects
Kenneth Reitz [Sat, 20 Jul 2013 12:15:06 +0000 (05:15 -0700)]
Merge pull request #1474 from Kwpolska/docfix
Some tiny fixes to the documentation
Kwpolska [Sat, 20 Jul 2013 11:54:33 +0000 (13:54 +0200)]
further treatment
Signed-off-by: Kwpolska <kwpolska@gmail.com>
Kwpolska [Sat, 20 Jul 2013 11:39:50 +0000 (13:39 +0200)]
session object should be uppercase
Signed-off-by: Kwpolska <kwpolska@gmail.com>
Kwpolska [Sat, 20 Jul 2013 11:31:37 +0000 (13:31 +0200)]
fixed underline
Signed-off-by: Kwpolska <kwpolska@gmail.com>
Kwpolska [Sat, 20 Jul 2013 10:56:25 +0000 (12:56 +0200)]
Grammar fixes and such
Signed-off-by: Kwpolska <kwpolska@gmail.com>
Kwpolska [Sat, 20 Jul 2013 10:12:57 +0000 (12:12 +0200)]
Some cosmetic updates to the docs
Signed-off-by: Kwpolska <kwpolska@gmail.com>
Cory Benfield [Fri, 19 Jul 2013 13:45:56 +0000 (06:45 -0700)]
Merge pull request #1470 from Lukasa/carset
Remove charset from JSON types: not valid.
Cory Benfield [Fri, 19 Jul 2013 13:45:17 +0000 (06:45 -0700)]
Merge pull request #1465 from dpursehouse/doc-netrc-authentication
Improve documentation of netrc authentication
David Pursehouse [Fri, 19 Jul 2013 13:37:53 +0000 (22:37 +0900)]
Move netrc authentication documentation under the Basic Auth section
Cory Benfield [Fri, 19 Jul 2013 13:03:20 +0000 (14:03 +0100)]
Remove charset from JSON types: not valid.
Cory Benfield [Fri, 19 Jul 2013 11:12:29 +0000 (04:12 -0700)]
Merge pull request #1466 from s7v7nislands/fix_doc
Fix doc
s7v7nislands [Fri, 19 Jul 2013 09:12:01 +0000 (17:12 +0800)]
merge
s7v7nislands [Fri, 19 Jul 2013 09:04:53 +0000 (17:04 +0800)]
fix doc
David Pursehouse [Fri, 19 Jul 2013 08:22:11 +0000 (17:22 +0900)]
Improve documentation of netrc authentication
The documentation does not make it clear that when the credentials
from netrc are used, Requests authenticates with HTTP Basic Auth.
I just spent ages trying to figure out why it wasn't working, and
it was because although the credentials in the netrc were correct,
the server actually required HTTP Digest Auth.
Add a section in the authentication documentation to make it clear
that HTTP Basic Auth is used.
Cory Benfield [Fri, 19 Jul 2013 08:19:55 +0000 (01:19 -0700)]
Merge pull request #1464 from dpursehouse/document-none-not-sent
Fix #1322: Add note in docs about None not being sent as data
David Pursehouse [Fri, 19 Jul 2013 08:00:46 +0000 (17:00 +0900)]
Fix #1322: Add note in docs about None not being sent as data
In the case:
payload = {'key1': 'value1', 'key2': 'value2', 'key3': None}
r = requests.get("http://httpbin.org", params=payload)
the parameter `key3` will not be sent as a parameter in the URL.
Mention this in the documentation.
Kenneth Reitz [Thu, 18 Jul 2013 22:00:28 +0000 (15:00 -0700)]
Merge pull request #1463 from AudriusButkevicius/master
Update urllib3 to a43319f
Audrius Butkevicius [Thu, 18 Jul 2013 21:06:19 +0000 (21:06 +0000)]
Update urllib3 to a43319f
Kenneth Reitz [Tue, 16 Jul 2013 06:20:28 +0000 (02:20 -0400)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 16 Jul 2013 06:20:23 +0000 (02:20 -0400)]
badge.fury.io
Kenneth Reitz [Mon, 15 Jul 2013 13:54:00 +0000 (06:54 -0700)]
Merge pull request #1440 from fcurella/patch-0
unquote double-quotes cookie values
Kenneth Reitz [Mon, 15 Jul 2013 13:22:53 +0000 (06:22 -0700)]
Merge pull request #1439 from voberoi/master
Make sure netrc doesn't override any authentication settings explicitly set by the client
Kenneth Reitz [Mon, 15 Jul 2013 13:22:41 +0000 (06:22 -0700)]
Merge pull request #1441 from Lukasa/1395
Remove urllib3-specific kwargs from non-urllib3 branch.
Kenneth Reitz [Mon, 15 Jul 2013 13:21:31 +0000 (06:21 -0700)]
Merge pull request #1456 from phndiaye/master
Changed the "im_used" informational status code for the value given by IANA (226)
Philippe Ndiaye [Sat, 13 Jul 2013 09:08:01 +0000 (11:08 +0200)]
Set 208 status_code to "already_reported"
Philippe Ndiaye [Sat, 13 Jul 2013 07:55:50 +0000 (09:55 +0200)]
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
Kenneth Reitz [Sat, 6 Jul 2013 04:04:50 +0000 (14:04 +1000)]
Delete invokefile.py
Cory Benfield [Thu, 4 Jul 2013 09:34:43 +0000 (10:34 +0100)]
Remove urllib3-specific kwargs from general code
Flavio Curella [Mon, 1 Jul 2013 20:54:59 +0000 (15:54 -0500)]
Added myself to AUTHORS
Flavio Curella [Mon, 1 Jul 2013 20:48:48 +0000 (15:48 -0500)]
keep the double quotes, but don't escape them
Flavio Curella [Mon, 1 Jul 2013 18:49:43 +0000 (13:49 -0500)]
unquote double-quotes cookie values
Vikram Oberoi [Thu, 27 Jun 2013 21:16:42 +0000 (17:16 -0400)]
Add test to verify .netrc authentication behavior.
Here's what should happen:
- If no credentials are given, use netrc if there's a netrc entry.
- If credentials are given, they should override netrc.
Vikram Oberoi [Thu, 27 Jun 2013 20:43:40 +0000 (16:43 -0400)]
.netrc settings shouldn't blow away explicit auth settings on a session
Cory Benfield [Thu, 27 Jun 2013 18:18:56 +0000 (11:18 -0700)]
Merge pull request #1437 from lukaszb/patch-1
Fixed wrong method call at streaming example
Lukasz Balcerzak [Thu, 27 Jun 2013 11:37:39 +0000 (13:37 +0200)]
Fixed wrong method call at streaming example
405 is returned if POST request is performed to http://httpbin.org/stream/20
Kenneth Reitz [Tue, 25 Jun 2013 22:49:04 +0000 (15:49 -0700)]
Merge pull request #1435 from chinux23/master
@1434 https://github.com/kennethreitz/requests/issues/1434
Chen Huang [Tue, 25 Jun 2013 22:38:59 +0000 (18:38 -0400)]
@1434 Fix https://github.com/kennethreitz/requests/issues/1434
Cory Benfield [Mon, 24 Jun 2013 07:48:48 +0000 (00:48 -0700)]
Merge pull request #1429 from Lukasa/docs
Packaging warning, in via @andrewgross.
Cory Benfield [Sat, 22 Jun 2013 14:02:18 +0000 (15:02 +0100)]
Packaging warning, in via @andrewgross.
Kenneth Reitz [Fri, 21 Jun 2013 09:23:10 +0000 (02:23 -0700)]
Merge pull request #1425 from Lukasa/stream
Use new urllib3 'stream' parameter.
Cory Benfield [Tue, 18 Jun 2013 16:53:28 +0000 (17:53 +0100)]
Use the new urllib3 stream generator.
Cory Benfield [Tue, 18 Jun 2013 16:47:23 +0000 (17:47 +0100)]
Update urllib3 to
cffbd6b317
Kenneth Reitz [Sat, 15 Jun 2013 05:50:44 +0000 (22:50 -0700)]
Merge pull request #1419 from kevinburke/exception-links
Exception links
Kevin Burke [Wed, 12 Jun 2013 22:56:10 +0000 (15:56 -0700)]
Add self to AUTHORS
Kevin Burke [Wed, 12 Jun 2013 22:53:09 +0000 (15:53 -0700)]
Link to the actual exception references
Sphinx has a neat cross-referencing feature where if you include the tilde
character in front of a :py: class, it'll link to the full object but provide
only the last part of class name in the text. For more info see
http://sphinx-doc.org/domains.html#cross-referencing-syntax
Kenneth Reitz [Wed, 12 Jun 2013 18:12:17 +0000 (11:12 -0700)]
Merge pull request #1414 from jschneier/master
fixed typo in docs
Josh Schneier [Sun, 9 Jun 2013 15:14:05 +0000 (11:14 -0400)]
fix doc typo
Kenneth Reitz [Sat, 8 Jun 2013 10:53:16 +0000 (03:53 -0700)]
Merge pull request #1315 from reclosedev/fix-redirects
Don't reuse the same prepared request for all redirects
Roman Haritonov [Fri, 19 Apr 2013 06:13:36 +0000 (10:13 +0400)]
Don't reuse PreparedRequest on redirects
Roman Haritonov [Fri, 19 Apr 2013 06:12:34 +0000 (10:12 +0400)]
new failing test_requests_in_history_are_not_overridden()
Kenneth Reitz [Sat, 8 Jun 2013 10:20:18 +0000 (03:20 -0700)]
Merge pull request #1400 from jam/master
Retrieve environment proxies using standard library functions
Kenneth Reitz [Sat, 8 Jun 2013 10:18:25 +0000 (03:18 -0700)]
Merge pull request #1334 from rcarz/master
resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase
Kenneth Reitz [Sat, 8 Jun 2013 10:17:38 +0000 (03:17 -0700)]
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
Kenneth Reitz [Sat, 8 Jun 2013 10:16:32 +0000 (03:16 -0700)]
Merge pull request #1381 from expandrive/master
Don't force chunked transfer on 0-length file-like object.
Kenneth Reitz [Sat, 8 Jun 2013 10:16:21 +0000 (03:16 -0700)]
Merge pull request #1392 from revolunet/patch-2
Update quickstart.rst
Kenneth Reitz [Sat, 8 Jun 2013 10:14:32 +0000 (03:14 -0700)]
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
Kenneth Reitz [Sat, 8 Jun 2013 10:13:34 +0000 (03:13 -0700)]
Merge pull request #1412 from t-8ch/update_urllib3
update urllib3 to
60ba176f5d
Kenneth Reitz [Sat, 8 Jun 2013 10:13:14 +0000 (03:13 -0700)]
Merge pull request #1413 from Lukasa/docs
Assorted docs updates