services/python-requests.git
11 years agokeep json None fo row
Kenneth Reitz [Mon, 17 Dec 2012 03:06:03 +0000 (22:06 -0500)]
keep json None fo row

11 years agojson errors
Kenneth Reitz [Mon, 17 Dec 2012 03:03:55 +0000 (22:03 -0500)]
json errors

11 years agoMerge pull request #1007 from passy/patch-1
Kenneth Reitz [Sat, 15 Dec 2012 21:14:41 +0000 (13:14 -0800)]
Merge pull request #1007 from passy/patch-1

Updated Travis CI URL in README

11 years agoUpdated travis-ci URL in README
Pascal Hartig [Sat, 15 Dec 2012 12:11:28 +0000 (13:11 +0100)]
Updated travis-ci URL in README

The old URL appears to be broken, redirecting to https://travis-ci.org//kennethreitz/requests

Also, according to [their wiki](http://about.travis-ci.org/docs/user/status-images/) the *secure* isn't required anymore.

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Sat, 15 Dec 2012 10:50:05 +0000 (05:50 -0500)]
Merge remote-tracking branch 'origin/master'

11 years agoWHOOOOOOOOOOOOOOOO
Kenneth Reitz [Sat, 15 Dec 2012 10:50:01 +0000 (05:50 -0500)]
WHOOOOOOOOOOOOOOOO

11 years agoMerge pull request #1006 from passy/test-py3k-fix
Kenneth Reitz [Sat, 15 Dec 2012 10:22:25 +0000 (02:22 -0800)]
Merge pull request #1006 from passy/test-py3k-fix

Use range in favor of xrange for py3k test compatibility

11 years agofewer comments
Kenneth Reitz [Sat, 15 Dec 2012 10:19:20 +0000 (05:19 -0500)]
fewer comments

11 years agobackup
Kenneth Reitz [Sat, 15 Dec 2012 10:18:23 +0000 (05:18 -0500)]
backup

11 years agoworking!!!
Kenneth Reitz [Sat, 15 Dec 2012 10:17:37 +0000 (05:17 -0500)]
working!!!

11 years agobase adapter
Kenneth Reitz [Sat, 15 Dec 2012 09:33:48 +0000 (04:33 -0500)]
base adapter

11 years agocookies
Kenneth Reitz [Sat, 15 Dec 2012 09:33:44 +0000 (04:33 -0500)]
cookies

11 years agoencode files
Kenneth Reitz [Sat, 15 Dec 2012 08:34:54 +0000 (03:34 -0500)]
encode files

11 years agoreally coming together
Kenneth Reitz [Sat, 15 Dec 2012 08:31:13 +0000 (03:31 -0500)]
really coming together

11 years agobasics working
Kenneth Reitz [Sat, 15 Dec 2012 08:04:42 +0000 (03:04 -0500)]
basics working

11 years agosession.send()
Kenneth Reitz [Sat, 15 Dec 2012 05:45:43 +0000 (00:45 -0500)]
session.send()

11 years agoprepare
Kenneth Reitz [Sat, 15 Dec 2012 05:45:12 +0000 (00:45 -0500)]
prepare

11 years agotest
Kenneth Reitz [Sat, 15 Dec 2012 05:44:42 +0000 (00:44 -0500)]
test

11 years agohistory
Kenneth Reitz [Sat, 15 Dec 2012 05:12:38 +0000 (00:12 -0500)]
history

11 years agologging handlers
Kenneth Reitz [Sat, 15 Dec 2012 04:51:53 +0000 (23:51 -0500)]
logging handlers

Closes #971

11 years agoalways get cookies
Kenneth Reitz [Sat, 15 Dec 2012 04:39:10 +0000 (23:39 -0500)]
always get cookies

11 years agoremove danger_mode tests
Kenneth Reitz [Sat, 15 Dec 2012 04:27:38 +0000 (23:27 -0500)]
remove danger_mode tests

11 years agoremove safe_mode tests
Kenneth Reitz [Sat, 15 Dec 2012 04:26:48 +0000 (23:26 -0500)]
remove safe_mode tests

11 years agoignore test files
Kenneth Reitz [Sat, 15 Dec 2012 04:26:41 +0000 (23:26 -0500)]
ignore test files

11 years agocleanup makefile
Kenneth Reitz [Sat, 15 Dec 2012 04:11:49 +0000 (23:11 -0500)]
cleanup makefile

11 years agoMerge pull request #1001 from matthewlmcclure/issues/1000
Kenneth Reitz [Sat, 15 Dec 2012 04:07:18 +0000 (20:07 -0800)]
Merge pull request #1001 from matthewlmcclure/issues/1000

Import oauthlib without the obsolete wrapper.

11 years agoMerge pull request #1002 from passy/remove-artifacts
Kenneth Reitz [Sat, 15 Dec 2012 04:06:56 +0000 (20:06 -0800)]
Merge pull request #1002 from passy/remove-artifacts

Remove testing artifacts

11 years agoUse range in favor of xrange for py3k compatibility
Pascal Hartig [Fri, 14 Dec 2012 22:27:10 +0000 (23:27 +0100)]
Use range in favor of xrange for py3k compatibility

request_count is 2 so it really makes no difference performance-wise at all.

11 years agoRemoved testing artifacts
Pascal Hartig [Fri, 14 Dec 2012 22:08:54 +0000 (23:08 +0100)]
Removed testing artifacts

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Wed, 12 Dec 2012 21:53:44 +0000 (16:53 -0500)]
Merge remote-tracking branch 'origin/master'

11 years agotrying out egg
Kenneth Reitz [Wed, 12 Dec 2012 21:53:40 +0000 (16:53 -0500)]
trying out egg

11 years agoImport oauthlib without the obsolete wrapper.
Matt McClure [Wed, 12 Dec 2012 15:45:00 +0000 (10:45 -0500)]
Import oauthlib without the obsolete wrapper.

Fixes #1000.

11 years agoMerge pull request #998 from jamshid/master
Kenneth Reitz [Wed, 12 Dec 2012 08:09:43 +0000 (00:09 -0800)]
Merge pull request #998 from jamshid/master

Issue #996 Location should not be followed unless 30X response

11 years agoIssue #996 Location should not be followed unless 30X response.
Jamshid Afshar [Wed, 12 Dec 2012 00:14:13 +0000 (18:14 -0600)]
Issue #996 Location should not be followed unless 30X response.

11 years agoMerge pull request #991 from lyndsysimon/master
Kenneth Reitz [Thu, 6 Dec 2012 18:21:15 +0000 (10:21 -0800)]
Merge pull request #991 from lyndsysimon/master

Changes license from ISC to Apache2

11 years agoUpdates from ISC to Apache2
Lyndsy Simon [Wed, 5 Dec 2012 22:19:14 +0000 (16:19 -0600)]
Updates from ISC to Apache2

11 years agoMerge pull request #987 from Lukasa/master
Kenneth Reitz [Wed, 5 Dec 2012 01:34:20 +0000 (17:34 -0800)]
Merge pull request #987 from Lukasa/master

Update docs to reflect correct use of raw.

11 years agoPrefetch must be false to use response.raw.
Cory Benfield [Tue, 4 Dec 2012 18:10:33 +0000 (18:10 +0000)]
Prefetch must be false to use response.raw.

Resolves issue #979.

11 years agoMerge pull request #985 from ming13/readme-syntax-highlighting
Kenneth Reitz [Mon, 3 Dec 2012 17:23:33 +0000 (09:23 -0800)]
Merge pull request #985 from ming13/readme-syntax-highlighting

Use console syntax highlighting in the readme file

11 years agoUse console syntax highlighting in the readme file.
Artur Dryomov [Mon, 3 Dec 2012 17:20:47 +0000 (20:20 +0300)]
Use console syntax highlighting in the readme file.

11 years agoMerge pull request #983 from jszakmeister/allow-strict
Kenneth Reitz [Sun, 2 Dec 2012 16:43:31 +0000 (08:43 -0800)]
Merge pull request #983 from jszakmeister/allow-strict

Add the ability to turn off HTTP 0.9 support.

11 years agoAdd the ability to turn off HTTP 0.9 support.
John Szakmeister [Sun, 2 Dec 2012 16:25:18 +0000 (11:25 -0500)]
Add the ability to turn off HTTP 0.9 support.

While debugging an issue I discovered requests was coming back with 200
response, when it really shouldn't have.  It turns out this happened for
two reasons: the jetty server running the app was rather lame and
didn't fail the request as a Bad Request, and httplib was happy to let
malformed data through and call it success.

It turns out httplib's strict flag controls this behavior of whether or
not to validate the status line.  The underlying urllib3 supports the
concept as well.  There was a bug there to that is now fixed upstream.

The last step is exposing this through requests.  This introduces a
supports_http0.9 flag to help control this behavior.  It defaults to
to True to preserve the current behavior.   Setting it to False will
allow the underlying HTTPConnection to validate the status line.

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Sun, 2 Dec 2012 09:09:05 +0000 (10:09 +0100)]
Merge remote-tracking branch 'origin/master'

11 years agoupdate charade
Kenneth Reitz [Sun, 2 Dec 2012 09:08:57 +0000 (10:08 +0100)]
update charade

11 years agoMerge pull request #982 from vlaci/master
Kenneth Reitz [Sun, 2 Dec 2012 08:56:44 +0000 (00:56 -0800)]
Merge pull request #982 from vlaci/master

Added support for persistent connections (keep-alive) in proxy mode

11 years agoAdded support for persistent connections (keep-alive) in proxy mode
László Vaskó [Sun, 2 Dec 2012 00:19:07 +0000 (01:19 +0100)]
Added support for persistent connections (keep-alive) in proxy mode

11 years agoAdded testcases for keep-alive handling
László Vaskó [Sat, 1 Dec 2012 23:21:08 +0000 (00:21 +0100)]
Added testcases for keep-alive handling

* Added a dummy_server module to check connection count
* Added testcases for proxy and direct connections

11 years agoMerge pull request #980 from dbrgn/github_name_change
Kenneth Reitz [Sat, 1 Dec 2012 15:56:47 +0000 (07:56 -0800)]
Merge pull request #980 from dbrgn/github_name_change

Github name change

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Sat, 1 Dec 2012 15:55:14 +0000 (16:55 +0100)]
Merge remote-tracking branch 'origin/master'

11 years agochardet fixes!
Kenneth Reitz [Sat, 1 Dec 2012 15:55:09 +0000 (16:55 +0100)]
chardet fixes!

11 years agoGithub name change
Danilo Bargen [Sat, 1 Dec 2012 14:38:03 +0000 (15:38 +0100)]
Github name change

11 years agoMerge pull request #977 from ondrowan/patch-2
Kenneth Reitz [Thu, 29 Nov 2012 18:59:49 +0000 (10:59 -0800)]
Merge pull request #977 from ondrowan/patch-2

Update README.rst

11 years agoUpdate README.rst
Ondrej Slinták [Thu, 29 Nov 2012 18:58:46 +0000 (19:58 +0100)]
Update README.rst

There was a typo in AUTHORS link - it pointed to develop branch which no longer exists.

11 years agoMerge branch 'master' of github.com:kennethreitz/requests
Kenneth Reitz [Thu, 29 Nov 2012 16:35:35 +0000 (08:35 -0800)]
Merge branch 'master' of github.com:kennethreitz/requests

Conflicts:
requests/compat.py
setup.py

11 years agocharade
Kenneth Reitz [Thu, 29 Nov 2012 16:30:07 +0000 (08:30 -0800)]
charade

11 years agoout with chardet, in with charade
Kenneth Reitz [Thu, 29 Nov 2012 16:29:02 +0000 (08:29 -0800)]
out with chardet, in with charade

11 years agoMerge pull request #973 from sigmavirus24/fix_972
Kenneth Reitz [Wed, 28 Nov 2012 16:40:09 +0000 (08:40 -0800)]
Merge pull request #973 from sigmavirus24/fix_972

Fix #972

11 years agoMerge pull request #976 from futoase/master
Kenneth Reitz [Wed, 28 Nov 2012 16:33:56 +0000 (08:33 -0800)]
Merge pull request #976 from futoase/master

Repaired import error.

11 years agoModified: Change the import statement.
Keiji Matsuzaki [Wed, 28 Nov 2012 16:29:13 +0000 (01:29 +0900)]
Modified: Change the import statement.

11 years agoFix #972
Ian Cordasco [Wed, 28 Nov 2012 03:14:09 +0000 (22:14 -0500)]
Fix #972

Someone forgot a comma

11 years agofixes for python2
Kenneth Reitz [Tue, 27 Nov 2012 21:08:16 +0000 (13:08 -0800)]
fixes for python2

11 years agofix chardet import
Kenneth Reitz [Tue, 27 Nov 2012 20:52:17 +0000 (12:52 -0800)]
fix chardet import

11 years agoremove safe mode
Kenneth Reitz [Tue, 27 Nov 2012 20:42:11 +0000 (12:42 -0800)]
remove safe mode

11 years agoremove danger mode
Kenneth Reitz [Tue, 27 Nov 2012 20:41:28 +0000 (12:41 -0800)]
remove danger mode

11 years agoremove strict mode
Kenneth Reitz [Tue, 27 Nov 2012 20:41:12 +0000 (12:41 -0800)]
remove strict mode

11 years agothat shouldn't be neccesary anymore
Kenneth Reitz [Tue, 27 Nov 2012 20:37:59 +0000 (12:37 -0800)]
that shouldn't be neccesary anymore

11 years agochardet2 is magic
Kenneth Reitz [Tue, 27 Nov 2012 20:36:29 +0000 (12:36 -0800)]
chardet2 is magic

11 years agofix setup.py for oauth removal
Kenneth Reitz [Tue, 27 Nov 2012 19:48:17 +0000 (11:48 -0800)]
fix setup.py for oauth removal

11 years agono more oauth
Kenneth Reitz [Tue, 27 Nov 2012 19:47:17 +0000 (11:47 -0800)]
no more oauth

11 years agolawyer up, v2
Kenneth Reitz [Tue, 27 Nov 2012 19:32:59 +0000 (11:32 -0800)]
lawyer up, v2

11 years agoMerge pull request #967 from matthewlmcclure/sign-without-body
Kenneth Reitz [Tue, 27 Nov 2012 18:43:57 +0000 (10:43 -0800)]
Merge pull request #967 from matthewlmcclure/sign-without-body

Sign requests even if they have no body data.

11 years agoSign requests even if they have no body data.
Matt McClure [Tue, 27 Nov 2012 18:12:21 +0000 (13:12 -0500)]
Sign requests even if they have no body data.

11 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Tue, 27 Nov 2012 04:50:09 +0000 (20:50 -0800)]
Merge remote-tracking branch 'origin/develop' into develop

11 years agohow was that still there?
Kenneth Reitz [Tue, 27 Nov 2012 01:27:35 +0000 (17:27 -0800)]
how was that still there?

11 years agoMerge pull request #962 from sigmavirus24/dev_docs
Kenneth Reitz [Mon, 26 Nov 2012 20:26:38 +0000 (12:26 -0800)]
Merge pull request #962 from sigmavirus24/dev_docs

Add a bit more to the developer's documentation

11 years agoAdd a bit more to the developer's documentation
Ian Cordasco [Mon, 26 Nov 2012 18:23:38 +0000 (13:23 -0500)]
Add a bit more to the developer's documentation

I'm not sure what else could be added to satisfy #601. If this is sufficient,
I suggest closing that.

11 years agoMerge pull request #956 from Lukasa/issue910
Kenneth Reitz [Mon, 26 Nov 2012 08:40:27 +0000 (00:40 -0800)]
Merge pull request #956 from Lukasa/issue910

Try to resolve OAuth+JSON problems.

11 years agoMerge pull request #953 from heyman/fix_session_safe_mode
Kenneth Reitz [Mon, 26 Nov 2012 08:31:45 +0000 (00:31 -0800)]
Merge pull request #953 from heyman/fix_session_safe_mode

Fixes so that safe_mode works for Sessions

11 years agoMerge pull request #955 from Lukasa/issue882
Kenneth Reitz [Mon, 26 Nov 2012 08:30:49 +0000 (00:30 -0800)]
Merge pull request #955 from Lukasa/issue882

Python 3.1 compatibility.

11 years agoMerge pull request #957 from sigmavirus24/fix_223
Kenneth Reitz [Sun, 25 Nov 2012 03:54:29 +0000 (19:54 -0800)]
Merge pull request #957 from sigmavirus24/fix_223

Attach Content-Length to everything.

11 years agoFix python 3 tests.
Ian Cordasco [Sun, 25 Nov 2012 03:43:52 +0000 (22:43 -0500)]
Fix python 3 tests.

11 years agoHandle files as well.
Ian Cordasco [Sun, 25 Nov 2012 03:01:16 +0000 (22:01 -0500)]
Handle files as well.

11 years agoAttach Content-Length to everything.
Ian Cordasco [Sun, 25 Nov 2012 02:47:47 +0000 (21:47 -0500)]
Attach Content-Length to everything.

Closes #223

11 years agoMake OAuth handle less-common body data better.
Cory Benfield [Sat, 24 Nov 2012 21:17:29 +0000 (21:17 +0000)]
Make OAuth handle less-common body data better.

Related to Issue #910. Specifically, OAuth won't sign the request unless
it gets a body type that is urlencoded or multipart. This is overly
restrictive. The correct behaviour is to sign the message without
including the body as part of the signature.

11 years agoAvoid using callable().
Cory Benfield [Sat, 24 Nov 2012 12:15:30 +0000 (12:15 +0000)]
Avoid using callable().

Callable() is not included in Python 3.1, so we shouldn't use it.

11 years agoFixed so that safe_mode works for Sessions
Jonatan Heyman [Fri, 23 Nov 2012 15:48:51 +0000 (16:48 +0100)]
Fixed so that safe_mode works for Sessions

11 years agoMerge pull request #942 from Lukasa/issue883
Kenneth Reitz [Fri, 23 Nov 2012 10:04:21 +0000 (02:04 -0800)]
Merge pull request #942 from Lukasa/issue883

MockRequest needs a type property for Py3.3

11 years agoMerge pull request #945 from Lukasa/develop
Kenneth Reitz [Fri, 23 Nov 2012 10:03:28 +0000 (02:03 -0800)]
Merge pull request #945 from Lukasa/develop

Respect the no_proxy environment variable.

11 years agoMerge pull request #947 from JohnPeacockMessageSystems/develop
Kenneth Reitz [Fri, 23 Nov 2012 10:02:18 +0000 (02:02 -0800)]
Merge pull request #947 from JohnPeacockMessageSystems/develop

Only return a path if the cacert.pem file exists.

11 years agoMerge pull request #948 from mwielgoszewski/develop
Kenneth Reitz [Fri, 23 Nov 2012 10:01:20 +0000 (02:01 -0800)]
Merge pull request #948 from mwielgoszewski/develop

Back to issue #630, .isalnum() was sufficient in addressing the issue.

11 years agoBack to issue #630, .isalnum() was sufficient in addressing the issue.
Marcin Wielgoszewski [Thu, 22 Nov 2012 16:10:22 +0000 (11:10 -0500)]
Back to issue #630, .isalnum() was sufficient in addressing the issue.
Adding a try/except block just masks any issues that are raised here, issues that the developer should definitely be made aware of.

11 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Wed, 21 Nov 2012 22:59:11 +0000 (17:59 -0500)]
Merge remote-tracking branch 'origin/develop' into develop

11 years agoobama
Kenneth Reitz [Wed, 21 Nov 2012 22:58:13 +0000 (17:58 -0500)]
obama

11 years agoMerge branch 'develop' of github.com:JohnPeacockMessageSystems/requests into develop
John Peacock [Wed, 21 Nov 2012 18:41:39 +0000 (13:41 -0500)]
Merge branch 'develop' of github.com:JohnPeacockMessageSystems/requests into develop

11 years agoOnly return a path if the cacert.pem file exists.
John Peacock [Wed, 21 Nov 2012 18:41:16 +0000 (13:41 -0500)]
Only return a path if the cacert.pem file exists.

This will permit the deletion of just that one file in order
to fall back to the [probably more accurate but less consistent]
Distro provided CA certs.

11 years agoOnly return a path if the cacert.pem file exists.
John Peacock [Wed, 21 Nov 2012 18:34:03 +0000 (13:34 -0500)]
Only return a path if the cacert.pem file exists.

This will permit the deletion of just that one file in order
to fall back to the [probably more accurate but less consistent]
Distro provided CA certs.

11 years agoMake sure we reset environment variables.
Cory Benfield [Sun, 18 Nov 2012 12:31:55 +0000 (12:31 +0000)]
Make sure we reset environment variables.

Turns out nose runs all the tests in one process, so changing the
os.environ dictionary makes everything go horribly wrong.

11 years agoRespect the no_proxy environment variable.
Cory Benfield [Sun, 18 Nov 2012 12:06:33 +0000 (12:06 +0000)]
Respect the no_proxy environment variable.

This change is in response to issue #879.

11 years agoMockRequest needs a type property for Py3.3
Cory Benfield [Sat, 17 Nov 2012 13:00:39 +0000 (13:00 +0000)]
MockRequest needs a type property for Py3.3

11 years agoMerge pull request #940 from Lukasa/issue917
Kenneth Reitz [Sat, 17 Nov 2012 11:03:32 +0000 (03:03 -0800)]
Merge pull request #940 from Lukasa/issue917

Update docs to reflect use of params