Cory Benfield [Thu, 5 Sep 2013 06:44:28 +0000 (23:44 -0700)]
Merge pull request #1578 from jparise/jparise-authors
Adding myself to the list of contributors.
Jon Parise [Wed, 4 Sep 2013 16:00:03 +0000 (09:00 -0700)]
Adding myself to the list of contributors.
Kenneth Reitz [Wed, 4 Sep 2013 02:42:43 +0000 (19:42 -0700)]
Merge pull request #1575 from jparise/content-encoding
Improved content encoding detection.
Jon Parise [Tue, 3 Sep 2013 23:16:46 +0000 (16:16 -0700)]
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
Cory Benfield [Sun, 1 Sep 2013 18:25:04 +0000 (11:25 -0700)]
Merge pull request #1566 from sigmavirus24/update_readme
Add link to Contributor Friendly tag in README
Ian Cordasco [Sun, 1 Sep 2013 18:21:55 +0000 (13:21 -0500)]
Add link to Contributor Friendly tag
Add note that I'm willing to help anyone who is looking to submit a pull request
Cory Benfield [Tue, 27 Aug 2013 15:03:33 +0000 (08:03 -0700)]
Merge pull request #1556 from ssbarnea/master
Added link to StackOverflow questions related to python-requests. This s...
Sorin Sbarnea [Tue, 27 Aug 2013 14:39:07 +0000 (15:39 +0100)]
Added link to StackOverflow questions related to python-requests. This should be the default support way for the library, as clearly most questions are supposed to be programming related.
Signed-off-by: Sorin Sbarnea <sorin.sbarnea@citrix.com>
Cory Benfield [Sun, 18 Aug 2013 20:03:03 +0000 (13:03 -0700)]
Merge pull request #1540 from libbkmz/master
Event hooks update
libbkmz [Sun, 18 Aug 2013 20:01:37 +0000 (00:01 +0400)]
Update advanced.rst
Cory Benfield [Sun, 18 Aug 2013 06:26:59 +0000 (23:26 -0700)]
Merge pull request #1538 from enkore/patch-1
Remove superfluous double dot
enkore [Sun, 18 Aug 2013 01:06:34 +0000 (03:06 +0200)]
Remove superfluous double dot
Kenneth Reitz [Sat, 17 Aug 2013 03:15:18 +0000 (20:15 -0700)]
Merge pull request #1535 from sigmavirus24/ignore_original_response_if_none
Skip cookie extraction if necessary
Ian Cordasco [Sat, 17 Aug 2013 02:38:20 +0000 (21:38 -0500)]
Skip cookie extraction if necessary
If _original_response is never set/is None, then don't try to extract cookies
from the response.
Kenneth Reitz [Thu, 1 Aug 2013 01:36:07 +0000 (18:36 -0700)]
Merge pull request #1508 from dieterv/master
remove duplicate comment
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.
Dieter Verfaillie [Wed, 31 Jul 2013 07:29:24 +0000 (09:29 +0200)]
remove duplicate comment
This is already mentioned at line 357...
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