services/python-requests.git
12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Wed, 2 May 2012 22:47:53 +0000 (18:47 -0400)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agodefault chunk size for .content much bigger
Kenneth Reitz [Wed, 2 May 2012 22:47:50 +0000 (18:47 -0400)]
default chunk size for .content much bigger

12 years agoMerge pull request #573 from idangazit/develop
Kenneth Reitz [Wed, 2 May 2012 21:19:56 +0000 (14:19 -0700)]
Merge pull request #573 from idangazit/develop

Lazily encode data, params, files

12 years agoMerge remote-tracking branch 'upstream/develop' into develop
Idan Gazit [Wed, 2 May 2012 21:08:00 +0000 (00:08 +0300)]
Merge remote-tracking branch 'upstream/develop' into develop

12 years agoLazily encode data, params, files
Idan Gazit [Wed, 2 May 2012 21:04:13 +0000 (00:04 +0300)]
Lazily encode data, params, files

Previously, data, params, and files were encoded and stored in
Request.__init__, and subsequently put into service during
Request.send. The problem with this approach is that hooks and auth
callables need to be aware of the eager encoding, and if they touch the
originals, make sure to update the encoded versions.

A better approach is to only encode late in the sending process. This
way, hooks and auth callables can safely make changes without fear of
the old, encoded variant overriding it.

12 years agoPEP8 Cleanup
Idan Gazit [Wed, 2 May 2012 20:16:38 +0000 (23:16 +0300)]
PEP8 Cleanup

12 years agoRevert "Update Makefile and travis configuration to run all (non-external) tests"
Kenneth Reitz [Wed, 2 May 2012 06:38:20 +0000 (02:38 -0400)]
Revert "Update Makefile and travis configuration to run all (non-external) tests"

This reverts commit a453a78c7c94aa220aa099dd62a36ec5b5232571.

12 years agoRevert "Cache the value of the `Response.text` property"
Kenneth Reitz [Wed, 2 May 2012 06:38:11 +0000 (02:38 -0400)]
Revert "Cache the value of the `Response.text` property"

This reverts commit d232948188f922c137dd709b53f77c49d1442c84.

12 years agoRevert "Use utf-8 as the default encoding"
Kenneth Reitz [Wed, 2 May 2012 06:37:51 +0000 (02:37 -0400)]
Revert "Use utf-8 as the default encoding"

This reverts commit 35d5ac6e8f5f4357f945b8c4890388207f7f1c00.

12 years agoUpdate Makefile and travis configuration to run all (non-external) tests
Shivaram Lingamneni [Wed, 2 May 2012 05:52:34 +0000 (22:52 -0700)]
Update Makefile and travis configuration to run all (non-external) tests

12 years agoChange setup.py to reflect required/optional dependencies
Shivaram Lingamneni [Wed, 2 May 2012 02:34:07 +0000 (19:34 -0700)]
Change setup.py to reflect required/optional dependencies

12 years agoCache the value of the `Response.text` property
Shivaram Lingamneni [Wed, 2 May 2012 05:25:50 +0000 (22:25 -0700)]
Cache the value of the `Response.text` property

12 years agoUse utf-8 as the default encoding
Shivaram Lingamneni [Wed, 2 May 2012 02:35:08 +0000 (19:35 -0700)]
Use utf-8 as the default encoding

(fixes crashes on failure to import chardet)

12 years agoupdate documentation to correspond to new cookie API
Shivaram Lingamneni [Wed, 2 May 2012 04:46:04 +0000 (21:46 -0700)]
update documentation to correspond to new cookie API

12 years agorestore docs/_build directory to .gitignore
Shivaram Lingamneni [Wed, 2 May 2012 02:18:55 +0000 (19:18 -0700)]
restore docs/_build directory to .gitignore

12 years agoMerge pull request #565 from slingamn/cookiejar
Kenneth Reitz [Wed, 2 May 2012 00:22:37 +0000 (17:22 -0700)]
Merge pull request #565 from slingamn/cookiejar

Support CookieJar, references #281

12 years agoadd Python 3 compatibility
Shivaram Lingamneni [Tue, 1 May 2012 23:32:40 +0000 (16:32 -0700)]
add Python 3 compatibility

12 years agoadd laurentb's test case for cookie handling on redirects
Shivaram Lingamneni [Mon, 30 Apr 2012 11:00:48 +0000 (04:00 -0700)]
add laurentb's test case for cookie handling on redirects

12 years agoremove unused import in test
Shivaram Lingamneni [Thu, 26 Apr 2012 19:21:09 +0000 (12:21 -0700)]
remove unused import in test

12 years agofix and test for a bug dhagrow reported
Shivaram Lingamneni [Thu, 26 Apr 2012 19:20:42 +0000 (12:20 -0700)]
fix and test for a bug dhagrow reported

12 years agoclarified documentation from e-mail discussion
Shivaram Lingamneni [Wed, 25 Apr 2012 20:40:17 +0000 (13:40 -0700)]
clarified documentation from e-mail discussion

12 years agofix usage of compat.urlparse
Shivaram Lingamneni [Wed, 25 Apr 2012 16:20:19 +0000 (09:20 -0700)]
fix usage of compat.urlparse

(this code path appears to have been exercised only by secure cookies)

12 years agoadd a test for redirection
Shivaram Lingamneni [Wed, 25 Apr 2012 08:40:35 +0000 (01:40 -0700)]
add a test for redirection

12 years agoFurther changes to move cookies to CookieJar
Shivaram Lingamneni [Wed, 25 Apr 2012 07:50:34 +0000 (00:50 -0700)]
Further changes to move cookies to CookieJar

12 years agomostly complete cookie support based on cookiejar
miguel [Fri, 3 Feb 2012 20:12:41 +0000 (15:12 -0500)]
mostly complete cookie support based on cookiejar

12 years agomostly complete cookie support based on cookiejar
miguel [Fri, 3 Feb 2012 19:40:20 +0000 (14:40 -0500)]
mostly complete cookie support based on cookiejar

12 years agocatch TooManyRedirects in safe_mode
miguel [Fri, 3 Feb 2012 19:16:23 +0000 (14:16 -0500)]
catch TooManyRedirects in safe_mode

12 years agochanges to .gitignore
Shivaram Lingamneni [Tue, 1 May 2012 22:07:19 +0000 (15:07 -0700)]
changes to .gitignore

12 years agoLOLJK
Kenneth Reitz [Tue, 1 May 2012 11:22:59 +0000 (07:22 -0400)]
LOLJK

12 years agoOAUTH ALL THE THINGS
Kenneth Reitz [Tue, 1 May 2012 11:19:04 +0000 (07:19 -0400)]
OAUTH ALL THE THINGS

12 years agov0.11.3
Kenneth Reitz [Tue, 1 May 2012 11:17:35 +0000 (07:17 -0400)]
v0.11.3

12 years agooauthlib only for 2
Kenneth Reitz [Tue, 1 May 2012 11:07:18 +0000 (07:07 -0400)]
oauthlib only for 2

12 years agosyntax errors
Kenneth Reitz [Tue, 1 May 2012 11:06:55 +0000 (07:06 -0400)]
syntax errors

12 years agoor str
Kenneth Reitz [Tue, 1 May 2012 11:02:13 +0000 (07:02 -0400)]
or str

12 years agohax
Kenneth Reitz [Tue, 1 May 2012 10:57:21 +0000 (06:57 -0400)]
hax

12 years agomissed an import
Kenneth Reitz [Tue, 1 May 2012 10:55:19 +0000 (06:55 -0400)]
missed an import

12 years agoonly import oauthlib in python2
Kenneth Reitz [Tue, 1 May 2012 10:54:09 +0000 (06:54 -0400)]
only import oauthlib in python2

12 years agono -e
Kenneth Reitz [Tue, 1 May 2012 10:50:38 +0000 (06:50 -0400)]
no -e

12 years agouh, sure
Kenneth Reitz [Tue, 1 May 2012 10:47:58 +0000 (06:47 -0400)]
uh, sure

12 years agoRevert "Call auth callable before encoding body data"
Kenneth Reitz [Tue, 1 May 2012 10:42:58 +0000 (06:42 -0400)]
Revert "Call auth callable before encoding body data"

This reverts commit 9217a2523d7d4fafeebb259884276fc349a376b1.

12 years agogit+git://github.com/idangazit/oauthlib.git
Kenneth Reitz [Tue, 1 May 2012 10:27:55 +0000 (06:27 -0400)]
git+git://github.com/idangazit/oauthlib.git

12 years agoTrim down OAuth1 callable logic
Idan Gazit [Tue, 1 May 2012 10:04:23 +0000 (13:04 +0300)]
Trim down OAuth1 callable logic

Moved much of the validation out of requests and into oauthlib

12 years agoBacking out stupidly incorrect str vs unicode check
Idan Gazit [Tue, 1 May 2012 10:03:10 +0000 (13:03 +0300)]
Backing out stupidly incorrect str vs unicode check

It's simply wrong. Since compat.py sets str = unicode for py2, the
original logic is sound.

12 years agoFix order of return values from OAuth Client.sign()
Idan Gazit [Sun, 22 Apr 2012 11:39:53 +0000 (14:39 +0300)]
Fix order of return values from OAuth Client.sign()

12 years agoFix Content-Type validation in OAuth1 callable
Idan Gazit [Sun, 22 Apr 2012 11:39:29 +0000 (14:39 +0300)]
Fix Content-Type validation in OAuth1 callable

12 years agoCall auth callable before encoding body data
Idan Gazit [Sun, 22 Apr 2012 11:26:24 +0000 (14:26 +0300)]
Call auth callable before encoding body data

12 years agoImprove _encode_params to handle lists of two-element tuples
Idan Gazit [Sun, 22 Apr 2012 11:24:38 +0000 (14:24 +0300)]
Improve _encode_params to handle lists of two-element tuples

12 years agoProper test for str vs unicode when preparing data
Idan Gazit [Thu, 19 Apr 2012 06:18:26 +0000 (09:18 +0300)]
Proper test for str vs unicode when preparing data

In python 2.x, requests sets str = unicode in requests/compat.py. This causes
isinstance(foo, str) to return True even if foo is a unicode string.

12 years agoInitial implementation of OAuth1 request signing with OAuthLib
Idan Gazit [Thu, 12 Apr 2012 14:40:04 +0000 (17:40 +0300)]
Initial implementation of OAuth1 request signing with OAuthLib

12 years agoImprove docstring description of auth parameter
Idan Gazit [Thu, 12 Apr 2012 14:37:20 +0000 (17:37 +0300)]
Improve docstring description of auth parameter

12 years agoAdd .egg-info/ dir to gitignore
Idan Gazit [Wed, 11 Apr 2012 14:20:55 +0000 (17:20 +0300)]
Add .egg-info/ dir to gitignore

12 years agohttpbin weirdness
Kenneth Reitz [Tue, 1 May 2012 09:51:59 +0000 (05:51 -0400)]
httpbin weirdness

12 years agov0.11.2
Kenneth Reitz [Mon, 23 Apr 2012 02:29:26 +0000 (22:29 -0400)]
v0.11.2

12 years agorevert
Kenneth Reitz [Mon, 23 Apr 2012 02:29:00 +0000 (22:29 -0400)]
revert

12 years agomerge conflict
Kenneth Reitz [Mon, 23 Apr 2012 02:26:53 +0000 (22:26 -0400)]
merge conflict

12 years agoRevert "Add failing tests for invalid %encodings"
Kenneth Reitz [Mon, 23 Apr 2012 02:26:07 +0000 (22:26 -0400)]
Revert "Add failing tests for invalid %encodings"

This reverts commit e28c1c9bfa286b0badb10ddbbeb1fd965f57cad6.

12 years agoRevert "Reenable test_session_with_escaped_url test"
Kenneth Reitz [Mon, 23 Apr 2012 02:25:57 +0000 (22:25 -0400)]
Revert "Reenable test_session_with_escaped_url test"

This reverts commit 3550ac7473883aea52ca7f4153de8c26357d5c37.

12 years agov0.11.2
Kenneth Reitz [Mon, 23 Apr 2012 02:08:39 +0000 (22:08 -0400)]
v0.11.2

12 years agoMerge pull request #552 from slingamn/bundle_2
Kenneth Reitz [Mon, 23 Apr 2012 01:53:31 +0000 (18:53 -0700)]
Merge pull request #552 from slingamn/bundle_2

attempt to use the OS's certificate bundle

12 years agoprefer certifi's bundle to the OS bundle
Shivaram Lingamneni [Mon, 23 Apr 2012 01:43:59 +0000 (18:43 -0700)]
prefer certifi's bundle to the OS bundle

12 years agoadd the FreeBSD certificate bundle path
Shivaram Lingamneni [Thu, 19 Apr 2012 21:27:26 +0000 (14:27 -0700)]
add the FreeBSD certificate bundle path

12 years agoAdd a smoke test for https functionality
Shivaram Lingamneni [Mon, 16 Apr 2012 22:42:14 +0000 (15:42 -0700)]
Add a smoke test for https functionality

12 years agoTry to use the OS's CA certificate bundle for SSL verification
Shivaram Lingamneni [Mon, 16 Apr 2012 19:31:47 +0000 (12:31 -0700)]
Try to use the OS's CA certificate bundle for SSL verification

12 years agoMerge pull request #550 from reclosedev/develop
Kenneth Reitz [Sat, 14 Apr 2012 10:19:10 +0000 (03:19 -0700)]
Merge pull request #550 from reclosedev/develop

Fix issue #549. Add 'prefetch' to Session.__attrs__ and Requests.__init__

12 years agofix #549 Add 'prefetch' to Session.__attrs__ and Requests.__init__
Roman Haritonov [Fri, 13 Apr 2012 15:25:10 +0000 (19:25 +0400)]
fix #549 Add 'prefetch' to Session.__attrs__ and Requests.__init__

12 years agoMerge branch 'develop' of https://github.com/catwell/requests into develop
Kenneth Reitz [Fri, 13 Apr 2012 06:34:18 +0000 (08:34 +0200)]
Merge branch 'develop' of https://github.com/catwell/requests into develop

12 years agoMerge pull request #548 from umbrae/httperror_fix
Kenneth Reitz [Thu, 12 Apr 2012 19:44:44 +0000 (12:44 -0700)]
Merge pull request #548 from umbrae/httperror_fix

A get with an invalid port should wrap urllib3's LocationParseError exception with our own.

12 years agoA get with an invalid port should wrap urllib3's LocationParseError exception with...
Chris Dary [Thu, 12 Apr 2012 16:35:34 +0000 (12:35 -0400)]
A get with an invalid port should wrap urllib3's LocationParseError exception with our own.

12 years agoEncode Multipart Post data at Request creation
Pierre Chapuis [Thu, 12 Apr 2012 15:49:48 +0000 (17:49 +0200)]
Encode Multipart Post data at Request creation

This fixes #298 (File upload not working with
HTTP digest authentication)

12 years agoFix infinite loop on wrong Digest Authentication
Pierre Chapuis [Thu, 12 Apr 2012 14:33:15 +0000 (16:33 +0200)]
Fix infinite loop on wrong Digest Authentication

12 years agoMerge pull request #535 from Jonty/develop
Kenneth Reitz [Wed, 11 Apr 2012 15:02:46 +0000 (08:02 -0700)]
Merge pull request #535 from Jonty/develop

Fix decoding of invalid %encodings in URLs

12 years agoRewrite unquote_unreserved based on urllib.unquote
Jonty Wareing [Wed, 4 Apr 2012 09:34:39 +0000 (09:34 +0000)]
Rewrite unquote_unreserved based on urllib.unquote

This is almost entirely taken from the unquote implementation in urllib,
slightly modified for the case in hand. It now deals with invalid %encodings
rather than exploding, and the code is somewhat simpler.

12 years agoAdd failing tests for invalid %encodings
Jonty Wareing [Wed, 4 Apr 2012 09:17:53 +0000 (09:17 +0000)]
Add failing tests for invalid %encodings

12 years agoReenable test_session_with_escaped_url test
Jonty Wareing [Wed, 4 Apr 2012 09:15:58 +0000 (09:15 +0000)]
Reenable test_session_with_escaped_url test

12 years agoTrigger setup.py develop when installing requirements
Idan Gazit [Wed, 11 Apr 2012 11:05:33 +0000 (14:05 +0300)]
Trigger setup.py develop when installing requirements

12 years agoClarify digest hash method names
Idan Gazit [Wed, 11 Apr 2012 11:02:59 +0000 (14:02 +0300)]
Clarify digest hash method names

12 years ago#539
Kenneth Reitz [Wed, 11 Apr 2012 02:00:25 +0000 (23:00 -0300)]
#539

12 years agoMerge pull request #545 from sharat87/patch-1
Kenneth Reitz [Tue, 10 Apr 2012 15:43:46 +0000 (08:43 -0700)]
Merge pull request #545 from sharat87/patch-1

Add docs on sending lists for multivalued query params.

12 years agoAdd docs on sending lists for multivalued query params.
Shrikant Sharat Kandula [Tue, 10 Apr 2012 09:12:38 +0000 (14:42 +0530)]
Add docs on sending lists for multivalued query params.

12 years agomoar
Kenneth Reitz [Mon, 9 Apr 2012 08:22:07 +0000 (04:22 -0400)]
moar

12 years agoMerge pull request #542 from newmaniese/develop
Kenneth Reitz [Mon, 9 Apr 2012 03:13:38 +0000 (20:13 -0700)]
Merge pull request #542 from newmaniese/develop

Attempting to address issue #377 by making content on the response model a little smarter

12 years agoFixing a silly typo in my test
Michael Newman [Sun, 8 Apr 2012 22:46:26 +0000 (18:46 -0400)]
Fixing a silly typo in my test

12 years agoShamelessly adding myself to the authors list
Michael Newman [Sun, 8 Apr 2012 22:42:08 +0000 (18:42 -0400)]
Shamelessly adding myself to the authors list

12 years agoIf there is no content in a response don't throw an error the second time that conten...
Michael Newman [Sun, 8 Apr 2012 22:39:44 +0000 (18:39 -0400)]
If there is no content in a response don't throw an error the second time that content is attempted to be read. This addresses issue #377 <https://github.com/kennethreitz/requests/issues/377>

12 years agoMerge pull request #540 from jhalcrow/patch-1
Kenneth Reitz [Fri, 6 Apr 2012 17:01:19 +0000 (10:01 -0700)]
Merge pull request #540 from jhalcrow/patch-1

Correct path to test_requests.py for setup.py test

12 years agoCorrect path to test_requests.py for setup.py test
Jonathan Halcrow [Fri, 6 Apr 2012 15:50:16 +0000 (12:50 -0300)]
Correct path to test_requests.py for setup.py test

12 years agoMerge pull request #534 from ThiefMaster/patch-1
Kenneth Reitz [Wed, 4 Apr 2012 08:05:00 +0000 (01:05 -0700)]
Merge pull request #534 from ThiefMaster/patch-1

Remove bad tab indent

12 years agoRemove bad tab indent
Adrian [Wed, 4 Apr 2012 08:03:49 +0000 (11:03 +0300)]
Remove bad tab indent

12 years agoFixed typoe (s/repsonses/responses/)
Andrey Petrov [Mon, 2 Apr 2012 23:59:08 +0000 (16:59 -0700)]
Fixed typoe (s/repsonses/responses/)

12 years agoMerge pull request #530 from Osmose/sidebar_donate
Kenneth Reitz [Mon, 2 Apr 2012 07:44:00 +0000 (00:44 -0700)]
Merge pull request #530 from Osmose/sidebar_donate

Fix #506: Change "Support Requests" to "Donate".

12 years agoMichael Kelly
Kenneth Reitz [Mon, 2 Apr 2012 07:43:11 +0000 (03:43 -0400)]
Michael Kelly

12 years agoFix #506: Change "Support Requests" to "Donate".
Michael Kelly [Mon, 2 Apr 2012 07:40:20 +0000 (00:40 -0700)]
Fix #506: Change "Support Requests" to "Donate".

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Sat, 31 Mar 2012 21:39:31 +0000 (17:39 -0400)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agonew urllib3 version
Kenneth Reitz [Sat, 31 Mar 2012 21:39:26 +0000 (17:39 -0400)]
new urllib3 version

#498

12 years agoMerge pull request #529 from piotr-dobrogost/develop
Kenneth Reitz [Sat, 31 Mar 2012 20:21:17 +0000 (13:21 -0700)]
Merge pull request #529 from piotr-dobrogost/develop

Removed unnecessary leading slashes in httpbin's endpoints

12 years agoRemoved unnecessary leading slashes in httpbin's endpoints
Piotr Dobrogost [Sat, 31 Mar 2012 20:16:55 +0000 (22:16 +0200)]
Removed unnecessary leading slashes in httpbin's endpoints

12 years agoMerge pull request #528 from floppym/dist-tests
Kenneth Reitz [Sat, 31 Mar 2012 18:36:21 +0000 (11:36 -0700)]
Merge pull request #528 from floppym/dist-tests

Include tests in tarballs.

12 years agoInclude tests in tarballs.
Mike Gilbert [Sat, 31 Mar 2012 18:22:49 +0000 (14:22 -0400)]
Include tests in tarballs.

12 years agoroadmap
Kenneth Reitz [Sat, 31 Mar 2012 07:21:31 +0000 (03:21 -0400)]
roadmap

12 years agofake change for commit hook test
Kenneth Reitz [Sat, 31 Mar 2012 07:11:43 +0000 (03:11 -0400)]
fake change for commit hook test