services/python-requests.git
11 years agov2.0.0
Kenneth Reitz [Tue, 24 Sep 2013 18:19:07 +0000 (14:19 -0400)]
v2.0.0

11 years ago2.0.0
Kenneth Reitz [Tue, 24 Sep 2013 18:17:17 +0000 (14:17 -0400)]
2.0.0

11 years agomerge 2.0 insto master
Kenneth Reitz [Tue, 24 Sep 2013 18:13:28 +0000 (14:13 -0400)]
merge 2.0 insto master

11 years agorunscope!
Kenneth Reitz [Tue, 24 Sep 2013 18:08:28 +0000 (14:08 -0400)]
runscope!

11 years agoprototype for new urllib3 timeouts
Kenneth Reitz [Tue, 24 Sep 2013 18:06:24 +0000 (14:06 -0400)]
prototype for new urllib3 timeouts

11 years agonew urllib3
Kenneth Reitz [Tue, 24 Sep 2013 17:59:38 +0000 (13:59 -0400)]
new urllib3

11 years agoMerge pull request #1503 from skastel/master
Kenneth Reitz [Tue, 24 Sep 2013 17:48:07 +0000 (10:48 -0700)]
Merge pull request #1503 from skastel/master

Fixing error return to be consistent with tuple return at the end of the method

11 years agoMerge pull request #1602 from sigmavirus24/handle_multiple_qop_types
Kenneth Reitz [Tue, 24 Sep 2013 17:46:16 +0000 (10:46 -0700)]
Merge pull request #1602 from sigmavirus24/handle_multiple_qop_types

Handle multiple qop types

11 years agoMerge pull request #1585 from rvoicilas/master
Kenneth Reitz [Tue, 24 Sep 2013 17:45:46 +0000 (10:45 -0700)]
Merge pull request #1585 from rvoicilas/master

Use values() when the keys are not being used

11 years agoMerge pull request #1541 from Lukasa/releasenote
Kenneth Reitz [Tue, 24 Sep 2013 17:45:11 +0000 (10:45 -0700)]
Merge pull request #1541 from Lukasa/releasenote

[2.0] Tracking PR for the 2.0 changelog

11 years agoMerge pull request #1565 from Lukasa/relative
Kenneth Reitz [Tue, 24 Sep 2013 17:39:09 +0000 (10:39 -0700)]
Merge pull request #1565 from Lukasa/relative

Don't absolute import things we've vendored.

11 years agorunscope
Kenneth Reitz [Tue, 24 Sep 2013 17:31:29 +0000 (13:31 -0400)]
runscope

11 years agoHandle case when WWW-Authenticate returns multiple qops
Ian Cordasco [Sat, 14 Sep 2013 03:29:39 +0000 (22:29 -0500)]
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.

11 years agoMerge pull request #1598 from Lukasa/defaults
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

11 years agoPython defaults arguments are hard.
Cory Benfield [Fri, 13 Sep 2013 13:10:09 +0000 (14:10 +0100)]
Python defaults arguments are hard.

11 years agoFixup unicode in AUTHORS file
Cory Benfield [Thu, 12 Sep 2013 09:34:34 +0000 (10:34 +0100)]
Fixup unicode in AUTHORS file

11 years agoMerge pull request #1592 from homm/master
Cory Benfield [Thu, 12 Sep 2013 09:29:16 +0000 (02:29 -0700)]
Merge pull request #1592 from homm/master

remove extra mention of dangerous `r.raw`

11 years agoUpdate AUTHORS.rst
homm [Thu, 12 Sep 2013 09:27:06 +0000 (13:27 +0400)]
Update AUTHORS.rst

11 years agofix spelling
homm [Thu, 12 Sep 2013 09:21:54 +0000 (13:21 +0400)]
fix spelling

11 years agoclearly describe `r.raw` in Body Content Workflow
homm [Thu, 12 Sep 2013 09:13:51 +0000 (13:13 +0400)]
clearly describe `r.raw` in Body Content Workflow

11 years agoremove extra mention of dangerous `r.raw`
homm [Thu, 12 Sep 2013 06:20:47 +0000 (10:20 +0400)]
remove extra mention of dangerous `r.raw`

11 years agoMerge pull request #1591 from sayanchowdhury/patch-1
Cory Benfield [Wed, 11 Sep 2013 15:16:29 +0000 (08:16 -0700)]
Merge pull request #1591 from sayanchowdhury/patch-1

minor typo: Fix requests spelling

11 years agominor typo: Fix requests spelling
Sayan Chowdhury [Wed, 11 Sep 2013 14:51:57 +0000 (20:21 +0530)]
minor typo: Fix requests spelling

11 years agoMerge pull request #1587 from kracekumar/patch-1
Cory Benfield [Tue, 10 Sep 2013 13:43:04 +0000 (06:43 -0700)]
Merge pull request #1587 from kracekumar/patch-1

Fixed persistence spelling

11 years agoFixed persistence spelling
kracekumar [Tue, 10 Sep 2013 12:22:29 +0000 (17:52 +0530)]
Fixed persistence spelling

11 years agoUse values() when the keys are not being used
Radu Voicilas [Mon, 9 Sep 2013 12:21:36 +0000 (15:21 +0300)]
Use values() when the keys are not being used

11 years agoMerge pull request #1579 from yang/patch-1
Cory Benfield [Sun, 8 Sep 2013 15:05:00 +0000 (08:05 -0700)]
Merge pull request #1579 from yang/patch-1

Clarify timeout behavior in quickstart doc

11 years agoFix typo in Timeouts doc
Yang Zhang [Sat, 7 Sep 2013 07:16:09 +0000 (00:16 -0700)]
Fix typo in Timeouts doc

11 years agoClarify timeout behavior in quickstart doc
Yang Zhang [Sat, 7 Sep 2013 02:27:57 +0000 (19:27 -0700)]
Clarify timeout behavior in quickstart doc

11 years agoMerge pull request #1578 from jparise/jparise-authors
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.

11 years agoAdding 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.

11 years agoMerge pull request #1575 from jparise/content-encoding
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.

11 years agoImproved 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

11 years agoMerge pull request #1566 from sigmavirus24/update_readme
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

11 years agoAdd link to Contributor Friendly tag
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

11 years agoBring release note current to 1st Sept.
Cory Benfield [Sun, 1 Sep 2013 17:46:46 +0000 (18:46 +0100)]
Bring release note current to 1st Sept.

11 years agoDon't absolute import vendored things.
Cory Benfield [Sun, 1 Sep 2013 17:10:09 +0000 (18:10 +0100)]
Don't absolute import vendored things.

11 years agoMerge pull request #1556 from ssbarnea/master
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...

11 years agoAdded link to StackOverflow questions related to python-requests. This should be...
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>
11 years agoMerge pull request #1552 from Lukasa/noproxy
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

11 years agoAllow 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.

11 years agoMerge pull request #1537 from Lukasa/datetime
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.

11 years agoMerge pull request #1527 from paul-matthews/restrict-hooks-access
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

11 years agoMerge pull request #1536 from Lukasa/IOError
Kenneth Reitz [Wed, 21 Aug 2013 18:25:20 +0000 (11:25 -0700)]
Merge pull request #1536 from Lukasa/IOError

RequestsException subclasses IOError

11 years agoBegin work on the 2.0 changelog.
Cory Benfield [Mon, 19 Aug 2013 12:28:05 +0000 (13:28 +0100)]
Begin work on the 2.0 changelog.

11 years agoMerge pull request #1540 from libbkmz/master
Cory Benfield [Sun, 18 Aug 2013 20:03:03 +0000 (13:03 -0700)]
Merge pull request #1540 from libbkmz/master

Event hooks update

11 years agoUpdate advanced.rst
libbkmz [Sun, 18 Aug 2013 20:01:37 +0000 (00:01 +0400)]
Update advanced.rst

11 years agoMerge pull request #1538 from enkore/patch-1
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

11 years agoRemove superfluous double dot
enkore [Sun, 18 Aug 2013 01:06:34 +0000 (03:06 +0200)]
Remove superfluous double dot

11 years agoAllow non-string objects to be data with files
Cory Benfield [Sat, 17 Aug 2013 06:27:58 +0000 (07:27 +0100)]
Allow non-string objects to be data with files

11 years agoRequestException subclasses IOError.
Cory Benfield [Sat, 17 Aug 2013 06:17:03 +0000 (07:17 +0100)]
RequestException subclasses IOError.

11 years agoMerge pull request #1535 from sigmavirus24/ignore_original_response_if_none
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

11 years agoSkip 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.

11 years agoMerge pull request #1515 from schlamar/https-proxy-2.0
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

11 years agoAdd proxy_headers functionality.
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.

11 years agoRaise an error for unsupported hook event
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

11 years agoFixing tests to verify thrown ValueError's.
Stephen Huenneke [Thu, 8 Aug 2013 15:48:42 +0000 (08:48 -0700)]
Fixing tests to verify thrown ValueError's.

11 years agoRaising ValueError's when we're passed inconsistent POST data and files dict.
Stephen Huenneke [Tue, 6 Aug 2013 18:04:03 +0000 (11:04 -0700)]
Raising ValueError's when we're passed inconsistent POST data and files dict.

11 years agoMerge pull request #1516 from Lukasa/io
Kenneth Reitz [Tue, 6 Aug 2013 15:43:44 +0000 (08:43 -0700)]
Merge pull request #1516 from Lukasa/io

UnsupportedOperation errors

11 years agoCatch UnsupportedOperation.
Cory Benfield [Sat, 3 Aug 2013 18:24:23 +0000 (19:24 +0100)]
Catch UnsupportedOperation.

11 years agoAdded entry to AUTHORS.
schlamar [Thu, 1 Aug 2013 20:09:06 +0000 (22:09 +0200)]
Added entry to AUTHORS.

11 years agoAdded proxy support to feature list.
schlamar [Thu, 1 Aug 2013 20:08:22 +0000 (22:08 +0200)]
Added proxy support to feature list.

11 years agoCache manager for proxy connection.
ms4py [Mon, 4 Mar 2013 08:39:16 +0000 (09:39 +0100)]
Cache manager for proxy connection.

11 years agoFix for new proxy API.
ms4py [Mon, 4 Mar 2013 08:20:47 +0000 (09:20 +0100)]
Fix for new proxy API.

11 years agoUpdate urllib3 to 14b8945
ms4py [Mon, 4 Mar 2013 08:20:24 +0000 (09:20 +0100)]
Update urllib3 to 14b8945

11 years agoMerge pull request #1514 from Lukasa/verror
Kenneth Reitz [Fri, 2 Aug 2013 16:48:33 +0000 (09:48 -0700)]
Merge pull request #1514 from Lukasa/verror

Better percent-escape exception.

11 years agoBetter percent-escape exception.
Cory Benfield [Fri, 2 Aug 2013 11:29:23 +0000 (12:29 +0100)]
Better percent-escape exception.

11 years agoMerge pull request #1508 from dieterv/master
Kenneth Reitz [Thu, 1 Aug 2013 01:36:07 +0000 (18:36 -0700)]
Merge pull request #1508 from dieterv/master

remove duplicate comment

11 years agoMerge branch 'fix_401_cookies' of git://github.com/sigmavirus24/requests into 2.0
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

11 years agoMerge branch 'proxyscheme' of git://github.com/Lukasa/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

11 years agoMerge branch 'keytype' 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

11 years agoMerge pull request #1500 from gavrie/master 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

11 years agoMerge pull request #1487 from dpursehouse/rewrite-test_mixed_case_scheme_acceptable
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

11 years agoMerge pull request #1498 from Lukasa/incompleteread
Kenneth Reitz [Thu, 1 Aug 2013 01:23:14 +0000 (18:23 -0700)]
Merge pull request #1498 from Lukasa/incompleteread

Wrap IncompleteRead in ChunkedEncodingError.

11 years agoMerge pull request #1501 from sigmavirus24/remove_setting_of_hooks
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

11 years agoMerge pull request #1506 from Lukasa/mockrequest
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.

11 years agoMerge pull request #1507 from buzztabapp/prepared-session-requests
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.

11 years agoMerge settings when creating PreparedRequest, don't copy Request.
Robert Estelle [Wed, 31 Jul 2013 20:42:02 +0000 (13:42 -0700)]
Merge settings when creating PreparedRequest, don't copy Request.

11 years agoremove duplicate comment
Dieter Verfaillie [Wed, 31 Jul 2013 07:29:24 +0000 (09:29 +0200)]
remove duplicate comment

This is already mentioned at line 357...

11 years agoAdd Session.prepare_request test case.
Robert Estelle [Wed, 31 Jul 2013 06:02:13 +0000 (23:02 -0700)]
Add Session.prepare_request test case.

11 years agoAdd Request.copy() test case.
Robert Estelle [Wed, 31 Jul 2013 06:01:56 +0000 (23:01 -0700)]
Add Request.copy() test case.

11 years agoShallow copy of Request fields in Request.copy()
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?

11 years agoSkip unneccessary Request.copy in Session.request
Robert Estelle [Wed, 31 Jul 2013 05:59:11 +0000 (22:59 -0700)]
Skip unneccessary Request.copy in Session.request

11 years agoPrepare requests with session settings separately from sending.
Robert Estelle [Wed, 31 Jul 2013 04:39:36 +0000 (21:39 -0700)]
Prepare requests with session settings separately from sending.

11 years agoProvide 'host' parameter to MockRequest.
Cory Benfield [Tue, 30 Jul 2013 17:21:37 +0000 (18:21 +0100)]
Provide 'host' parameter to MockRequest.

11 years agoMaking sure we check for str/unicode.
Stephen Huenneke [Mon, 29 Jul 2013 21:42:47 +0000 (14:42 -0700)]
Making sure we check for str/unicode.

11 years agoFixing error return to be consistent with tuple return at the end of the method.
Stephen Huenneke [Mon, 29 Jul 2013 20:31:06 +0000 (13:31 -0700)]
Fixing error return to be consistent with tuple return at the end of the method.

11 years agoInstantiate the CID directly.
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.

11 years agoModify new CID tests to use native string keys.
Cory Benfield [Wed, 1 May 2013 19:15:37 +0000 (20:15 +0100)]
Modify new CID tests to use native string keys.

11 years agoHeader keys should be native strings.
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.

11 years agoFix duplication of efforts caught by @dofelw
Ian Cordasco [Mon, 29 Jul 2013 13:09:07 +0000 (08:09 -0500)]
Fix duplication of efforts caught by @dofelw

11 years agoUpdate urllib3 to d89d508
Gavrie Philipson [Mon, 29 Jul 2013 08:28:46 +0000 (11:28 +0300)]
Update urllib3 to d89d508

11 years agoWrap IncompleteRead in ChunkedEncodingError.
Cory Benfield [Sun, 28 Jul 2013 06:42:17 +0000 (07:42 +0100)]
Wrap IncompleteRead in ChunkedEncodingError.

11 years agoProxy urls should have explicit schemes.
Cory Benfield [Sun, 28 Jul 2013 06:16:06 +0000 (07:16 +0100)]
Proxy urls should have explicit schemes.

11 years agoMerge pull request #1494 from Lukasa/close
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.

11 years agoTake advantage of the new copy method
Ian Cordasco [Sun, 28 Jul 2013 03:08:46 +0000 (23:08 -0400)]
Take advantage of the new copy method

11 years agoFixed finally. Also requires updated httpbin.org
Ian Cordasco [Fri, 26 Jul 2013 15:50:19 +0000 (10:50 -0500)]
Fixed finally. Also requires updated httpbin.org

11 years agoMake the regular tests pass
Ian Cordasco [Fri, 19 Jul 2013 20:55:02 +0000 (15:55 -0500)]
Make the regular tests pass

I broke Digest Auth completely

11 years agoStart work on sending cookies back
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

11 years agoMerge pull request #1476 from sigmavirus24/add_copy_to_prepared_requests
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