Kenneth Reitz [Fri, 13 Sep 2013 13:17:41 +0000 (06:17 -0700)]
Merge pull request #1598 from Lukasa/defaults
[2.0] Python default arguments are hard
Cory Benfield [Fri, 13 Sep 2013 13:10:09 +0000 (14:10 +0100)]
Python defaults arguments are hard.
Kenneth Reitz [Sat, 24 Aug 2013 00:23:57 +0000 (17:23 -0700)]
Merge pull request #1552 from Lukasa/noproxy
Allow spaces in the no_proxy environ variable
Cory Benfield [Fri, 23 Aug 2013 11:37:03 +0000 (12:37 +0100)]
Allow spaces in the no_proxy environ variable.
Kenneth Reitz [Wed, 21 Aug 2013 18:46:27 +0000 (11:46 -0700)]
Merge pull request #1537 from Lukasa/datetime
Allow non-string objects to be posted as data alongside files.
Kenneth Reitz [Wed, 21 Aug 2013 18:28:23 +0000 (11:28 -0700)]
Merge pull request #1527 from paul-matthews/restrict-hooks-access
Raise an error for unsupported hook event
Kenneth Reitz [Wed, 21 Aug 2013 18:25:20 +0000 (11:25 -0700)]
Merge pull request #1536 from Lukasa/IOError
RequestsException subclasses IOError
Cory Benfield [Sat, 17 Aug 2013 06:27:58 +0000 (07:27 +0100)]
Allow non-string objects to be data with files
Cory Benfield [Sat, 17 Aug 2013 06:17:03 +0000 (07:17 +0100)]
RequestException subclasses IOError.
Kenneth Reitz [Wed, 14 Aug 2013 20:41:08 +0000 (13:41 -0700)]
Merge pull request #1515 from schlamar/https-proxy-2.0
[2.0] Https proxy support
Cory Benfield [Wed, 14 Aug 2013 08:47:44 +0000 (09:47 +0100)]
Add proxy_headers functionality.
This brings us in line with urllib3's fancy new magic for sending
headers to HTTP(S) proxies.
Paul Matthews [Mon, 12 Aug 2013 13:20:25 +0000 (14:20 +0100)]
Raise an error for unsupported hook event
* Raises a ValueError for an unsupported hook event
Kenneth Reitz [Tue, 6 Aug 2013 15:43:44 +0000 (08:43 -0700)]
Merge pull request #1516 from Lukasa/io
UnsupportedOperation errors
Cory Benfield [Sat, 3 Aug 2013 18:24:23 +0000 (19:24 +0100)]
Catch UnsupportedOperation.
schlamar [Thu, 1 Aug 2013 20:09:06 +0000 (22:09 +0200)]
Added entry to AUTHORS.
schlamar [Thu, 1 Aug 2013 20:08:22 +0000 (22:08 +0200)]
Added proxy support to feature list.
ms4py [Mon, 4 Mar 2013 08:39:16 +0000 (09:39 +0100)]
Cache manager for proxy connection.
ms4py [Mon, 4 Mar 2013 08:20:47 +0000 (09:20 +0100)]
Fix for new proxy API.
ms4py [Mon, 4 Mar 2013 08:20:24 +0000 (09:20 +0100)]
Update urllib3 to 14b8945
Kenneth Reitz [Fri, 2 Aug 2013 16:48:33 +0000 (09:48 -0700)]
Merge pull request #1514 from Lukasa/verror
Better percent-escape exception.
Cory Benfield [Fri, 2 Aug 2013 11:29:23 +0000 (12:29 +0100)]
Better percent-escape exception.
Kenneth Reitz [Thu, 1 Aug 2013 01:33:24 +0000 (21:33 -0400)]
Merge branch 'fix_401_cookies' of git://github.com/sigmavirus24/requests into 2.0
Kenneth Reitz [Thu, 1 Aug 2013 01:27:01 +0000 (21:27 -0400)]
Merge branch 'proxyscheme' of git://github.com/Lukasa/requests into 2.0
Kenneth Reitz [Thu, 1 Aug 2013 01:25:57 +0000 (21:25 -0400)]
Merge branch 'keytype' of git://github.com/Lukasa/requests into 2.0
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.
Cory Benfield [Wed, 1 May 2013 20:49:46 +0000 (21:49 +0100)]
Instantiate the CID directly.
No need to do this the slow way now. Thanks to Colin (@cdunklau) for the
idea.
Cory Benfield [Wed, 1 May 2013 19:15:37 +0000 (20:15 +0100)]
Modify new CID tests to use native string keys.
Cory Benfield [Tue, 30 Apr 2013 19:45:37 +0000 (20:45 +0100)]
Header keys should be native strings.
This commit follows a discussion on IRC. For more information, see the
Pull Request associated with it.
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:16:06 +0000 (07:16 +0100)]
Proxy urls should have explicit schemes.
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.
Ian Cordasco [Sun, 28 Jul 2013 03:08:46 +0000 (23:08 -0400)]
Take advantage of the new copy method
Ian Cordasco [Fri, 26 Jul 2013 15:50:19 +0000 (10:50 -0500)]
Fixed finally. Also requires updated httpbin.org
Ian Cordasco [Fri, 19 Jul 2013 20:55:02 +0000 (15:55 -0500)]
Make the regular tests pass
I broke Digest Auth completely
Ian Ross and Ian Cordasco [Fri, 19 Jul 2013 20:13:28 +0000 (15:13 -0500)]
Start work on sending cookies back
On 401's the cookies received aren't sent back to the server. See: #1336
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