services/python-requests.git
12 years agoFixes #711!
Kenneth Reitz [Mon, 20 Aug 2012 15:06:33 +0000 (01:06 +1000)]
Fixes #711!

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Mon, 20 Aug 2012 14:55:31 +0000 (00:55 +1000)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agoMerge pull request #801 from rhyselsmore/develop
Kenneth Reitz [Mon, 20 Aug 2012 14:54:48 +0000 (07:54 -0700)]
Merge pull request #801 from rhyselsmore/develop

Added in a link handler as per issue #711

12 years agoRhys
Kenneth Reitz [Mon, 20 Aug 2012 14:54:39 +0000 (00:54 +1000)]
Rhys

12 years agolink docs!
Kenneth Reitz [Mon, 20 Aug 2012 14:52:09 +0000 (00:52 +1000)]
link docs!

12 years agoAdded in a link handler as per issue #711
Rhys Elsmore [Mon, 20 Aug 2012 14:47:19 +0000 (00:47 +1000)]
Added in a link handler as per issue #711

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Mon, 20 Aug 2012 14:43:27 +0000 (00:43 +1000)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agoMultiDict
Kenneth Reitz [Mon, 20 Aug 2012 14:43:16 +0000 (00:43 +1000)]
MultiDict

12 years agolink headers
Kenneth Reitz [Mon, 20 Aug 2012 14:43:05 +0000 (00:43 +1000)]
link headers

12 years agoMerge pull request #797 from sigmavirus24/fix_order
Kenneth Reitz [Mon, 20 Aug 2012 07:55:17 +0000 (00:55 -0700)]
Merge pull request #797 from sigmavirus24/fix_order

Fix order of data+params

12 years agoMerge pull request #799 from joequery/ubuntu_ssl_error
Kenneth Reitz [Mon, 20 Aug 2012 05:38:39 +0000 (22:38 -0700)]
Merge pull request #799 from joequery/ubuntu_ssl_error

Fix SSL3 error on Ubuntu 12.04

12 years agoFix SSL3 error on Ubuntu 12.04
Joseph McCullough [Mon, 20 Aug 2012 02:48:30 +0000 (21:48 -0500)]
Fix SSL3 error on Ubuntu 12.04

12 years agoFix a fairly critical error on my part.
Ian Cordasco [Sun, 19 Aug 2012 20:02:29 +0000 (16:02 -0400)]
Fix a fairly critical error on my part.

12 years agoChange ordering of data + params back.
Ian Cordasco [Sun, 19 Aug 2012 19:48:12 +0000 (15:48 -0400)]
Change ordering of data + params back.

Fixes #795

12 years agov0.13.7 v0.13.7
Kenneth Reitz [Sun, 19 Aug 2012 00:46:55 +0000 (10:46 +1000)]
v0.13.7

12 years agoMerge pull request #789 from zigmonty/http_digest_fixes
Kenneth Reitz [Sun, 19 Aug 2012 00:42:40 +0000 (17:42 -0700)]
Merge pull request #789 from zigmonty/http_digest_fixes

HTTPDigestAuth fixes

12 years agoMerge pull request #779 from Lukasa/develop
Kenneth Reitz [Sun, 19 Aug 2012 00:40:53 +0000 (17:40 -0700)]
Merge pull request #779 from Lukasa/develop

Make sure proxy exclusions work properly.

12 years agoMerge pull request #791 from sigmavirus24/key_val_lists
Kenneth Reitz [Sat, 18 Aug 2012 22:54:49 +0000 (15:54 -0700)]
Merge pull request #791 from sigmavirus24/key_val_lists

Key val lists

12 years agoRevert "Some pyflakes fixes."
Ian Cordasco [Sat, 18 Aug 2012 22:31:58 +0000 (18:31 -0400)]
Revert "Some pyflakes fixes."

This reverts commit c71f48b5f1d989644e26b9004c2af7a6f27d4708.

To please his BDFLness @kennethreitz ;)

12 years agoMerge pull request #793 from Lukasa/typo
Kenneth Reitz [Sat, 18 Aug 2012 21:32:48 +0000 (14:32 -0700)]
Merge pull request #793 from Lukasa/typo

Typo fix in tests.

12 years agoForgot to add myself to the AUTHORS.rst
Ian Cordasco [Sat, 18 Aug 2012 20:39:52 +0000 (16:39 -0400)]
Forgot to add myself to the AUTHORS.rst

[ci skip]

12 years agoTypo fix in tests.
Cory Benfield [Sat, 18 Aug 2012 20:24:02 +0000 (21:24 +0100)]
Typo fix in tests.

12 years agoFix python3 tests.
Ian Cordasco [Sat, 18 Aug 2012 18:41:13 +0000 (14:41 -0400)]
Fix python3 tests.

I wasn't thorough enough with how I dealt with headers. Most of the header
logic in the Request object utilizes dictionary properties which will not work
with a key/value list.

I'll dig more into this, but I know the rest of the features are more
important so I'll take my time on this and send a separate pull request.

12 years agoAll tests pass, time for a PR.
Ian Cordasco [Sat, 18 Aug 2012 17:47:14 +0000 (13:47 -0400)]
All tests pass, time for a PR.

12 years agoMerge branch 'develop' into key_val_lists
Ian Cordasco [Sat, 18 Aug 2012 16:15:03 +0000 (12:15 -0400)]
Merge branch 'develop' into key_val_lists

Conflicts:
requests/models.py
tests/test_requests.py

Remove some of Lukasa's duplication of my efforts in _encode_data.

12 years agoExtend digests test case to connect twice using the same auth and confirm the second...
Peter Montagner [Sat, 18 Aug 2012 05:33:05 +0000 (15:33 +1000)]
Extend digests test case to connect twice using the same auth and confirm the second one went direct.

12 years agoSave credentials in the HTTPDigestAuth object and replay them if the user reuses...
Peter Montagner [Sat, 18 Aug 2012 04:16:02 +0000 (14:16 +1000)]
Save credentials in the HTTPDigestAuth object and replay them if the user reuses the object.

12 years agoRelease connection in digest auth 401 handler to allow the connection to be reused.
Peter Montagner [Sat, 18 Aug 2012 02:53:57 +0000 (12:53 +1000)]
Release connection in digest auth 401 handler to allow the connection to be reused.

12 years agoMerge pull request #784 from Locker537/docs_fix
Kenneth Reitz [Fri, 17 Aug 2012 20:59:29 +0000 (13:59 -0700)]
Merge pull request #784 from Locker537/docs_fix

Change variable '_r' to 'r' for consistency.

12 years agoMerge pull request #786 from Locker537/lint_fix
Kenneth Reitz [Fri, 17 Aug 2012 20:57:01 +0000 (13:57 -0700)]
Merge pull request #786 from Locker537/lint_fix

Lint fixes following PEP8.

12 years agoMerge pull request #787 from kayzh/develop
Kenneth Reitz [Fri, 17 Aug 2012 20:47:47 +0000 (13:47 -0700)]
Merge pull request #787 from kayzh/develop

"There many ..." to "There are many ..." in quickstart

12 years ago"There many ..." to "There are many ..." in quickstart
Kay Zhu [Fri, 17 Aug 2012 10:12:15 +0000 (06:12 -0400)]
"There many ..." to "There are many ..." in quickstart

12 years agoWhitespace fixes following PEP8.
Locker537 [Thu, 16 Aug 2012 21:33:27 +0000 (17:33 -0400)]
Whitespace fixes following PEP8.

12 years agoRemove trailing whitespace from docs directory.
Locker537 [Thu, 16 Aug 2012 21:08:57 +0000 (17:08 -0400)]
Remove trailing whitespace from docs directory.

12 years agoChange variable '_r' to 'bad_r' to avoid confusion about Python's private variable...
Locker537 [Thu, 16 Aug 2012 20:50:01 +0000 (16:50 -0400)]
Change variable '_r' to 'bad_r' to avoid confusion about Python's private variable convention.

12 years agoChange variable '_r' to 'r' for consistency.
Locker537 [Thu, 16 Aug 2012 20:27:31 +0000 (16:27 -0400)]
Change variable '_r' to 'r' for consistency.

12 years agoDon't get hung up on ports in proxies.
Cory Benfield [Wed, 15 Aug 2012 17:16:27 +0000 (18:16 +0100)]
Don't get hung up on ports in proxies.

12 years agoMerge pull request #774 from Lukasa/develop
Kenneth Reitz [Mon, 13 Aug 2012 21:14:19 +0000 (14:14 -0700)]
Merge pull request #774 from Lukasa/develop

Throw clear exceptions

12 years agoThrow InvalidURL not UnicodeError on bad label.
Cory Benfield [Fri, 10 Aug 2012 16:29:12 +0000 (17:29 +0100)]
Throw InvalidURL not UnicodeError on bad label.

12 years agoTest for throwing useful exception on bad label.
Cory Benfield [Fri, 10 Aug 2012 16:24:00 +0000 (17:24 +0100)]
Test for throwing useful exception on bad label.

12 years agoMerge pull request #746 from jkbr/develop
Kenneth Reitz [Sat, 11 Aug 2012 06:30:21 +0000 (23:30 -0700)]
Merge pull request #746 from jkbr/develop

Fixed encoding of fields with the same name, multipart/form-data fixes.

12 years agoFixed tests for Python 3 (text vs. bytes).
Jakub Roztocil [Sat, 11 Aug 2012 06:19:35 +0000 (08:19 +0200)]
Fixed tests for Python 3 (text vs. bytes).

12 years agoUse BytesIO for bytes.
Jakub Roztocil [Mon, 30 Jul 2012 08:35:47 +0000 (10:35 +0200)]
Use BytesIO for bytes.

This fixes a TypeError on Python 3 that ocurred when passing
bytes as the values for files.

12 years agoFixed encoding of fields with the same name.
Jakub Roztocil [Fri, 27 Jul 2012 15:08:16 +0000 (17:08 +0200)]
Fixed encoding of fields with the same name.

* Properly handle repeated data fields for multipart/form-data requests (#737)
* Allow a list of 2-tuples as the `files` agument.
* Consistently serialize lists a of parameters (#729).

12 years agoMerge pull request #772 from Lukasa/develop
Kenneth Reitz [Fri, 10 Aug 2012 16:05:08 +0000 (09:05 -0700)]
Merge pull request #772 from Lukasa/develop

First pass at documenting encodings and RFC compliance.

12 years agoMerge pull request #773 from randomir/develop
Kenneth Reitz [Fri, 10 Aug 2012 16:03:09 +0000 (09:03 -0700)]
Merge pull request #773 from randomir/develop

Tests: python2.6 compat (`assertIn` new in python2.7)

12 years agotests: python2.6 compat (`assertIn` added in 2.7)
Radomir Stevanovic [Fri, 10 Aug 2012 15:51:01 +0000 (17:51 +0200)]
tests: python2.6 compat (`assertIn` added in 2.7)

12 years agoDocument encodings and RFC compliance.
Cory Benfield [Fri, 10 Aug 2012 13:47:13 +0000 (14:47 +0100)]
Document encodings and RFC compliance.

12 years agonew button domain
Kenneth Reitz [Thu, 9 Aug 2012 04:31:30 +0000 (23:31 -0500)]
new button domain

12 years agoMerge pull request #767 from stefanp/develop
Kenneth Reitz [Wed, 8 Aug 2012 20:23:10 +0000 (13:23 -0700)]
Merge pull request #767 from stefanp/develop

Wrap socket.error in ConnectionError (+ unit tests)

12 years agoMerge pull request #766 from Lukasa/develop
Kenneth Reitz [Wed, 8 Aug 2012 20:18:39 +0000 (13:18 -0700)]
Merge pull request #766 from Lukasa/develop

Accept objects with string representations as URLs.

12 years agoWrap socket.error in ConnectionError (+ unit tests)
Stefan Praszalowicz [Wed, 8 Aug 2012 18:12:32 +0000 (11:12 -0700)]
Wrap socket.error in ConnectionError (+ unit tests)

12 years agoAccept objects with string representations as URLs.
Cory Benfield [Wed, 8 Aug 2012 11:05:52 +0000 (12:05 +0100)]
Accept objects with string representations as URLs.

12 years agoAdd test for Issue #423.
Cory Benfield [Wed, 8 Aug 2012 10:59:00 +0000 (11:59 +0100)]
Add test for Issue #423.

12 years agoMerge branch 'develop' into key_val_lists
Ian Cordasco [Tue, 7 Aug 2012 16:11:15 +0000 (12:11 -0400)]
Merge branch 'develop' into key_val_lists

Conflicts:
    requests/models.py

12 years agoMerge pull request #764 from slingamn/regressions
Kenneth Reitz [Mon, 6 Aug 2012 23:13:59 +0000 (16:13 -0700)]
Merge pull request #764 from slingamn/regressions

test and fix regressions from #760

12 years agofix the tests for python 3
Shivaram Lingamneni [Mon, 6 Aug 2012 23:11:45 +0000 (16:11 -0700)]
fix the tests for python 3

12 years agopropagate self.prefetch on redirect
Shivaram Lingamneni [Mon, 6 Aug 2012 22:46:47 +0000 (15:46 -0700)]
propagate self.prefetch on redirect

fixes RequestsTestSuite.test_prefetch_redirect_bug

12 years agoproperly handle send(prefetch=False)
Shivaram Lingamneni [Mon, 6 Aug 2012 22:37:28 +0000 (15:37 -0700)]
properly handle send(prefetch=False)

fixes RequestsTestSuite.test_prefetch_return_response_interaction

12 years agored tests derived from @dhagrow's examples in #760
Shivaram Lingamneni [Mon, 6 Aug 2012 20:57:04 +0000 (13:57 -0700)]
red tests derived from @dhagrow's examples in #760

12 years agoMerge pull request #762 from Lukasa/develop
Kenneth Reitz [Mon, 6 Aug 2012 21:05:21 +0000 (14:05 -0700)]
Merge pull request #762 from Lukasa/develop

Correctly handle encoding numbers when POSTing.

12 years agoCorrectly handle encoding numbers when POSTing.
Cory Benfield [Mon, 6 Aug 2012 16:27:04 +0000 (17:27 +0100)]
Correctly handle encoding numbers when POSTing.

12 years agov0.13.6 v0.13.6
Kenneth Reitz [Mon, 6 Aug 2012 06:45:52 +0000 (02:45 -0400)]
v0.13.6

12 years agoMerge pull request #760 from slingamn/fix_leak.release
Kenneth Reitz [Mon, 6 Aug 2012 04:38:12 +0000 (21:38 -0700)]
Merge pull request #760 from slingamn/fix_leak.release

address connection leak issue from #520

12 years agoaddress connection leak issue from #520
Shivaram Lingamneni [Wed, 18 Jul 2012 02:47:13 +0000 (19:47 -0700)]
address connection leak issue from #520

* prefetch now defaults to True, ensuring that by default, sockets
  are returned to the urllib3 connection pool on request end
* sessions now have a close() method, notifying urllib3 to close pooled
  connections
* the module-level API, e.g., `requests.get('http://www.google.com')`,
  explicitly closes its session when finished

When prefetch is False, the open socket becomes part of the state of the
Response object, and it's the client's responsibility to read the whole
body, at which point the socket will be returned to the pool.

12 years agoAdd to_key_val_lists to avoid repetition.
Ian Cordasco [Mon, 6 Aug 2012 03:28:19 +0000 (23:28 -0400)]
Add to_key_val_lists to avoid repetition.

It uses the same logic whenever we're trying to use a list of key values and
avoid what I had started doing -- using the same pattern everywhere.

proxies, and headers should both be covered by this commit.

12 years agoMerge branch 'develop' into key_val_lists
Ian Cordasco [Sun, 5 Aug 2012 20:59:24 +0000 (16:59 -0400)]
Merge branch 'develop' into key_val_lists

12 years agoMerge pull request #758 from volker48/develop
Kenneth Reitz [Sat, 4 Aug 2012 15:39:25 +0000 (08:39 -0700)]
Merge pull request #758 from volker48/develop

Develop

12 years agoMoved fix for #747 to compat module
Marcus McCurdy [Sat, 4 Aug 2012 13:35:32 +0000 (09:35 -0400)]
Moved fix for #747 to compat module

12 years agoMerge branch 'develop' of https://github.com/volker48/requests into develop
Marcus McCurdy [Sat, 4 Aug 2012 03:18:31 +0000 (23:18 -0400)]
Merge branch 'develop' of https://github.com/volker48/requests into develop

12 years agoFixed issue #747
Marcus McCurdy [Sat, 4 Aug 2012 03:13:17 +0000 (23:13 -0400)]
Fixed issue #747

Bound the name builtin_str to __builtin__.str and added another check
for this class since the str class was rebound to unicode in compat.
This issue was only for Python 2 as well.

12 years agoFixed test for issue #747 to check for '' instead of 'text/plain'
Marcus McCurdy [Sat, 4 Aug 2012 03:05:37 +0000 (23:05 -0400)]
Fixed test for issue #747 to check for '' instead of 'text/plain'

12 years agoparams now accepts a k/v list.
Ian Cordasco [Sat, 4 Aug 2012 02:04:43 +0000 (22:04 -0400)]
params now accepts a k/v list.

Also added test for params accepting k/v lists.

12 years agoAdded a test to expose issue #747
Marcus McCurdy [Sat, 4 Aug 2012 00:09:56 +0000 (20:09 -0400)]
Added a test to expose issue #747

12 years agoMerge pull request #754 from sigmavirus24/develop
Kenneth Reitz [Fri, 3 Aug 2012 16:21:28 +0000 (09:21 -0700)]
Merge pull request #754 from sigmavirus24/develop

Fix raise_for_status()

12 years agoMerge branch 'develop' into key_val_lists
Ian Cordasco [Fri, 3 Aug 2012 16:02:01 +0000 (12:02 -0400)]
Merge branch 'develop' into key_val_lists

12 years agoFix raise_for_status()
Ian Cordasco [Fri, 3 Aug 2012 15:42:36 +0000 (11:42 -0400)]
Fix raise_for_status()

12 years agoBetter handling of invalid files.
Ian Cordasco [Wed, 1 Aug 2012 14:36:45 +0000 (10:36 -0400)]
Better handling of invalid files.

I stole the idea from _encode_params in all candor.

12 years agoThis simplification should work.
Ian Cordasco [Wed, 1 Aug 2012 13:03:57 +0000 (09:03 -0400)]
This simplification should work.

Probably should write a test case where it should fail though.

12 years agoFix python3 errors.
Ian Cordasco [Wed, 1 Aug 2012 02:23:47 +0000 (22:23 -0400)]
Fix python3 errors.

12 years agoSome pyflakes fixes.
Ian Cordasco [Wed, 1 Aug 2012 02:17:47 +0000 (22:17 -0400)]
Some pyflakes fixes.

They were just bothering me far too much with vim+syntastic.

12 years agoTests written for _encode_files new capability.
Ian Cordasco [Wed, 1 Aug 2012 01:50:44 +0000 (21:50 -0400)]
Tests written for _encode_files new capability.

Work on issue #179

12 years agoNeed to write tests but this looks good so far.
Ian Cordasco [Tue, 31 Jul 2012 19:56:22 +0000 (15:56 -0400)]
Need to write tests but this looks good so far.

12 years agoMerge pull request #751 from Lukasa/develop
Kenneth Reitz [Thu, 2 Aug 2012 20:53:05 +0000 (13:53 -0700)]
Merge pull request #751 from Lukasa/develop

Catch socket.gaierror in safe mode.

12 years agoMerge pull request #753 from berkerpeksag/if-statements
Kenneth Reitz [Thu, 2 Aug 2012 20:52:36 +0000 (13:52 -0700)]
Merge pull request #753 from berkerpeksag/if-statements

Refactoring in |raise_for_status| method.

12 years agoRefactoring in |raise_for_status| method.
Berker Peksag [Thu, 2 Aug 2012 20:45:06 +0000 (23:45 +0300)]
Refactoring in |raise_for_status| method.

- Simplified the if statements.
- Remove duplicate code.

12 years agoMerge pull request #752 from anentropic/patch-1
Kenneth Reitz [Thu, 2 Aug 2012 11:59:38 +0000 (04:59 -0700)]
Merge pull request #752 from anentropic/patch-1

file posting example looked wrong

12 years agoexample looked wrong
anentropic [Thu, 2 Aug 2012 11:56:12 +0000 (13:56 +0200)]
example looked wrong

From what I can tell from the source code (down thru urllib3) the key in the `files` dict is always the 'fieldname', while specifying a custom filename is optional.

So in this example it is confusing to have a fieldname of 'report.xls' (the filename) where all the other examples use a fieldname of 'file'.

12 years agoCatch socket.gaierror in safe mode.
Cory Benfield [Thu, 2 Aug 2012 11:16:41 +0000 (12:16 +0100)]
Catch socket.gaierror in safe mode.

12 years agoMerge pull request #744 from tax/develop
Kenneth Reitz [Tue, 31 Jul 2012 01:13:17 +0000 (18:13 -0700)]
Merge pull request #744 from tax/develop

Set content type before authentication

12 years agodonate
Kenneth Reitz [Sat, 28 Jul 2012 21:07:53 +0000 (17:07 -0400)]
donate

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Sat, 28 Jul 2012 20:56:49 +0000 (16:56 -0400)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agosetup.py
Kenneth Reitz [Sat, 28 Jul 2012 20:56:14 +0000 (16:56 -0400)]
setup.py

12 years agogittip
Kenneth Reitz [Sat, 28 Jul 2012 20:56:00 +0000 (16:56 -0400)]
gittip

12 years agoSet content type before authentication
Paul [Fri, 27 Jul 2012 11:18:13 +0000 (19:18 +0800)]
Set content type before authentication

AWS S3 authentication adds content type header (when it exist) to
canonical string that is signed. Since it is set after authentication
is done authentication on S3 fails

12 years agoFailing test for Issue #737.
Cory Benfield [Fri, 27 Jul 2012 08:26:04 +0000 (09:26 +0100)]
Failing test for Issue #737.

12 years agov0.13.5 v0.13.5
Kenneth Reitz [Fri, 27 Jul 2012 07:23:33 +0000 (03:23 -0400)]
v0.13.5

12 years agov0.13.4 v0.13.4
Kenneth Reitz [Fri, 27 Jul 2012 06:21:56 +0000 (02:21 -0400)]
v0.13.4

12 years agodisable tricky tests
Kenneth Reitz [Fri, 27 Jul 2012 06:18:31 +0000 (02:18 -0400)]
disable tricky tests

12 years agoSolves #722
Kenneth Reitz [Fri, 27 Jul 2012 05:48:25 +0000 (01:48 -0400)]
Solves #722