services/python-requests.git
12 years agoBuilds??
Kenneth Reitz [Fri, 24 Feb 2012 05:45:17 +0000 (00:45 -0500)]
Builds??

12 years agopython3 fix
Kenneth Reitz [Fri, 24 Feb 2012 05:44:01 +0000 (00:44 -0500)]
python3 fix

12 years agoMerge branch 'master' into develop
Kenneth Reitz [Fri, 24 Feb 2012 04:51:24 +0000 (23:51 -0500)]
Merge branch 'master' into develop

12 years agoi can't believe i'm doing this
Kenneth Reitz [Fri, 24 Feb 2012 03:43:16 +0000 (22:43 -0500)]
i can't believe i'm doing this

12 years agoteh spelling
Kenneth Reitz [Fri, 24 Feb 2012 03:34:17 +0000 (22:34 -0500)]
teh spelling

12 years agono color
Kenneth Reitz [Fri, 24 Feb 2012 03:27:29 +0000 (22:27 -0500)]
no color

12 years agomirrors
Kenneth Reitz [Fri, 24 Feb 2012 03:22:43 +0000 (22:22 -0500)]
mirrors

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Fri, 24 Feb 2012 03:21:16 +0000 (22:21 -0500)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agotravis ci
Kenneth Reitz [Fri, 24 Feb 2012 03:14:31 +0000 (22:14 -0500)]
travis ci

12 years agoMerge pull request #449 from benweatherman/develop
Kenneth Reitz [Tue, 21 Feb 2012 21:55:50 +0000 (13:55 -0800)]
Merge pull request #449 from benweatherman/develop

Don't bonk if .netrc isn't readable

12 years agoDon't bonk if .netrc isn't readable.
Ben [Tue, 21 Feb 2012 21:53:33 +0000 (15:53 -0600)]
Don't bonk if .netrc isn't readable.

It's possible in some shared hosting environments that the .netrc file isn't readable by the user for the calling process. In that circumstance, just forgo the netrc authentication.

12 years agoMerge pull request #447 from gwrtheyrn/patch-1
Kenneth Reitz [Tue, 21 Feb 2012 08:27:16 +0000 (00:27 -0800)]
Merge pull request #447 from gwrtheyrn/patch-1

Added StringIO/Image example to quickstart documentation.

12 years agoAdded StringIO/Image example to quickstart documentation.
Danilo Bargen [Tue, 21 Feb 2012 08:24:52 +0000 (09:24 +0100)]
Added StringIO/Image example to quickstart documentation.

12 years agov0.10.4 v0.10.4
Kenneth Reitz [Mon, 20 Feb 2012 21:21:25 +0000 (16:21 -0500)]
v0.10.4

12 years agoMerge branch 'netrc' into develop
Kenneth Reitz [Mon, 20 Feb 2012 21:20:44 +0000 (16:20 -0500)]
Merge branch 'netrc' into develop

12 years ago.netrc
Kenneth Reitz [Mon, 20 Feb 2012 21:20:07 +0000 (16:20 -0500)]
.netrc

12 years agov0.10.4
Kenneth Reitz [Mon, 20 Feb 2012 21:12:08 +0000 (16:12 -0500)]
v0.10.4

12 years agopython 3 unicode grr
Kenneth Reitz [Mon, 20 Feb 2012 21:07:36 +0000 (16:07 -0500)]
python 3 unicode grr

12 years agonetrc fix
Kenneth Reitz [Mon, 20 Feb 2012 20:43:45 +0000 (15:43 -0500)]
netrc fix

12 years agostick .netrc auth in pipeline
Kenneth Reitz [Mon, 20 Feb 2012 20:43:38 +0000 (15:43 -0500)]
stick .netrc auth in pipeline

12 years agonetrc parsing
Kenneth Reitz [Mon, 20 Feb 2012 20:35:19 +0000 (15:35 -0500)]
netrc parsing

12 years agospacing
Kenneth Reitz [Mon, 20 Feb 2012 20:35:02 +0000 (15:35 -0500)]
spacing

12 years agohistory for HEAD 3xx v0.10.3
Kenneth Reitz [Mon, 20 Feb 2012 19:02:13 +0000 (14:02 -0500)]
history for HEAD 3xx

12 years agoHEADs don't follow redirects by default.
Kenneth Reitz [Mon, 20 Feb 2012 18:56:11 +0000 (13:56 -0500)]
HEADs don't follow redirects by default.

12 years agodanger_mode redirect test
Kenneth Reitz [Mon, 20 Feb 2012 18:51:46 +0000 (13:51 -0500)]
danger_mode redirect test

12 years ago100k times
Kenneth Reitz [Mon, 20 Feb 2012 18:49:29 +0000 (13:49 -0500)]
100k times

12 years agov0.10.3
Kenneth Reitz [Mon, 20 Feb 2012 18:49:06 +0000 (13:49 -0500)]
v0.10.3

12 years agoallow 3XX in danger_mode
Kenneth Reitz [Mon, 20 Feb 2012 18:46:54 +0000 (13:46 -0500)]
allow 3XX in danger_mode

12 years agodon't raise for redirects if they're not allowed
Kenneth Reitz [Mon, 20 Feb 2012 18:40:55 +0000 (13:40 -0500)]
don't raise for redirects if they're not allowed

12 years agono more SOPA
Kenneth Reitz [Mon, 20 Feb 2012 17:39:25 +0000 (12:39 -0500)]
no more SOPA

12 years agonone headers test
Kenneth Reitz [Mon, 20 Feb 2012 17:31:52 +0000 (12:31 -0500)]
none headers test

#433

12 years agotest cleanups
Kenneth Reitz [Mon, 20 Feb 2012 17:30:22 +0000 (12:30 -0500)]
test cleanups

12 years agoValues can be none #433
Kenneth Reitz [Mon, 20 Feb 2012 17:30:12 +0000 (12:30 -0500)]
Values can be none #433

12 years agoSCHEMAS
Kenneth Reitz [Mon, 20 Feb 2012 17:25:48 +0000 (12:25 -0500)]
SCHEMAS

12 years ago#435
Kenneth Reitz [Mon, 20 Feb 2012 17:22:11 +0000 (12:22 -0500)]
#435

12 years agomodels cleanup
Kenneth Reitz [Mon, 20 Feb 2012 17:21:01 +0000 (12:21 -0500)]
models cleanup

12 years agoMerge branch 'issue_380' of https://github.com/Lukasa/requests into develop
Kenneth Reitz [Mon, 20 Feb 2012 17:11:31 +0000 (12:11 -0500)]
Merge branch 'issue_380' of https://github.com/Lukasa/requests into develop

12 years agov0.10.3
Kenneth Reitz [Mon, 20 Feb 2012 17:09:46 +0000 (12:09 -0500)]
v0.10.3

12 years ago__file__
Kenneth Reitz [Mon, 20 Feb 2012 17:06:59 +0000 (12:06 -0500)]
__file__

12 years agoImplemented #439. Added supporting test.
Shrikant Sharat [Sun, 19 Feb 2012 09:41:19 +0000 (15:11 +0530)]
Implemented #439. Added supporting test.

12 years agoUpdate HISTORY.rst
Kenneth Reitz [Thu, 16 Feb 2012 23:10:44 +0000 (18:10 -0500)]
Update HISTORY.rst

12 years agoCorrect unfortunate typo.
Cory Benfield [Thu, 16 Feb 2012 20:42:05 +0000 (20:42 +0000)]
Correct unfortunate typo.

12 years agoFail if unsupported schemas are used.
Cory Benfield [Thu, 16 Feb 2012 20:20:20 +0000 (20:20 +0000)]
Fail if unsupported schemas are used.

requests only supports http and https. This change enforces that.

12 years agoRemove a wayward change.
Cory Benfield [Thu, 16 Feb 2012 19:32:20 +0000 (19:32 +0000)]
Remove a wayward change.

12 years agoAdded failing test for issue #380.
Cory Benfield [Thu, 16 Feb 2012 18:21:32 +0000 (18:21 +0000)]
Added failing test for issue #380.

12 years agohistory v0.10.2
Kenneth Reitz [Wed, 15 Feb 2012 08:14:48 +0000 (03:14 -0500)]
history

12 years agoremove bunk utils for decoding
Kenneth Reitz [Wed, 15 Feb 2012 08:09:40 +0000 (03:09 -0500)]
remove bunk utils for decoding

12 years agobytes data fix for python3
Kenneth Reitz [Wed, 15 Feb 2012 08:09:26 +0000 (03:09 -0500)]
bytes data fix for python3

12 years agofix bytes
Kenneth Reitz [Wed, 15 Feb 2012 07:54:00 +0000 (02:54 -0500)]
fix bytes

12 years agopath fixes
Kenneth Reitz [Wed, 15 Feb 2012 07:53:50 +0000 (02:53 -0500)]
path fixes

12 years agomove tests over
Kenneth Reitz [Wed, 15 Feb 2012 07:52:12 +0000 (02:52 -0500)]
move tests over

12 years agoit's a start
Kenneth Reitz [Wed, 15 Feb 2012 07:45:21 +0000 (02:45 -0500)]
it's a start

12 years agosimplify
Kenneth Reitz [Wed, 15 Feb 2012 07:28:53 +0000 (02:28 -0500)]
simplify

12 years agodon't rely on urllib3's decode
Kenneth Reitz [Wed, 15 Feb 2012 07:07:55 +0000 (02:07 -0500)]
don't rely on urllib3's decode

12 years agobinary data upload bug test
Kenneth Reitz [Wed, 15 Feb 2012 07:03:26 +0000 (02:03 -0500)]
binary data upload bug test

12 years agocleanups
Kenneth Reitz [Wed, 15 Feb 2012 07:03:13 +0000 (02:03 -0500)]
cleanups

12 years agolatin1, remove unicode_literals
Kenneth Reitz [Wed, 15 Feb 2012 07:01:36 +0000 (02:01 -0500)]
latin1, remove unicode_literals

Fixes #407

12 years agosp
Kenneth Reitz [Wed, 15 Feb 2012 06:47:08 +0000 (01:47 -0500)]
sp

12 years agoRuntimeError
Kenneth Reitz [Wed, 15 Feb 2012 06:46:06 +0000 (01:46 -0500)]
RuntimeError

12 years agowhitespace
Kenneth Reitz [Wed, 15 Feb 2012 06:42:57 +0000 (01:42 -0500)]
whitespace

12 years agomake all the tests
Kenneth Reitz [Wed, 15 Feb 2012 06:42:52 +0000 (01:42 -0500)]
make all the tests

12 years agoMerge branch '400-header_expand-unicode' of https://github.com/acdha/requests into...
Kenneth Reitz [Wed, 15 Feb 2012 06:25:29 +0000 (01:25 -0500)]
Merge branch '400-header_expand-unicode' of https://github.com/acdha/requests into develop

12 years agodecode response url again
Kenneth Reitz [Wed, 15 Feb 2012 06:21:38 +0000 (01:21 -0500)]
decode response url again

12 years agohistory for 0.10.2
Kenneth Reitz [Wed, 15 Feb 2012 06:18:41 +0000 (01:18 -0500)]
history for 0.10.2

12 years agoMerge branch 'develop' of https://github.com/Lukasa/requests into develop
Kenneth Reitz [Wed, 15 Feb 2012 06:08:10 +0000 (01:08 -0500)]
Merge branch 'develop' of https://github.com/Lukasa/requests into develop

12 years agoMerge branch 'mgiuca-uri-cleanup-nonpath' into develop
Kenneth Reitz [Wed, 15 Feb 2012 06:00:52 +0000 (01:00 -0500)]
Merge branch 'mgiuca-uri-cleanup-nonpath' into develop

12 years agoAdded Matt Giuca to AUTHORS.
Matt Giuca [Wed, 15 Feb 2012 01:06:34 +0000 (12:06 +1100)]
Added Matt Giuca to AUTHORS.

12 years agoRename utils.requote_path to requote_uri.
Matt Giuca [Wed, 15 Feb 2012 01:03:08 +0000 (12:03 +1100)]
Rename utils.requote_path to requote_uri.

It is now applied to a whole URI, not just the path.

12 years agoNow requotes the entire URL, not just the path (Issue #429).
Matt Giuca [Wed, 15 Feb 2012 01:00:47 +0000 (12:00 +1100)]
Now requotes the entire URL, not just the path (Issue #429).

12 years agoAdded test cases for URI cleaning in the query part (Issue #429).
Matt Giuca [Wed, 15 Feb 2012 00:47:02 +0000 (11:47 +1100)]
Added test cases for URI cleaning in the query part (Issue #429).

12 years agoChange the RFC we reference.
Cory Benfield [Tue, 14 Feb 2012 14:11:25 +0000 (14:11 +0000)]
Change the RFC we reference.

12 years agoMake clearer the source of forbidden characters
Cory Benfield [Tue, 14 Feb 2012 12:58:35 +0000 (12:58 +0000)]
Make clearer the source of forbidden characters

12 years agoKeep non RFC cookie key characters separate.
Cory Benfield [Tue, 14 Feb 2012 10:25:40 +0000 (10:25 +0000)]
Keep non RFC cookie key characters separate.

Moved the characters that we accept in keys but that the RFC forbids
into a separate string to keep track of them.

12 years agoMerge branch 'py3-uri-encoding' of https://github.com/mgiuca/requests into develop
Kenneth Reitz [Tue, 14 Feb 2012 09:30:10 +0000 (04:30 -0500)]
Merge branch 'py3-uri-encoding' of https://github.com/mgiuca/requests into develop

12 years agoSimplify requote_path.
Matt Giuca [Tue, 14 Feb 2012 01:57:49 +0000 (12:57 +1100)]
Simplify requote_path.

It no longer needs to split on '/' since '/' will not be encoded.

12 years agoFixed URI encoding of reserved characters (Issue #369).
Matt Giuca [Tue, 14 Feb 2012 01:51:03 +0000 (12:51 +1100)]
Fixed URI encoding of reserved characters (Issue #369).

Previously, util.requote_path would unquote and requote all characters,
causing reserved characters to become encoded (changing the semantics of the
URI). Now, it has special code for unquoting just the unreserved characters,
then quotes only illegal characters.
This ensures that illegal characters are fixed, and URIs are normalised, but
reserved characters do not erroneously become quoted.
Test case test_session_with_escaped_url now passes.

12 years agoChanged test case test_path_is_not_double_encoded.
Matt Giuca [Tue, 14 Feb 2012 01:49:31 +0000 (12:49 +1100)]
Changed test case test_path_is_not_double_encoded.

Uses the space character instead of ~ as a test (since ~ is unreserved, it
shouldn't really be encoded at all).

12 years agoAdded test case testing URI normalisation.
Matt Giuca [Tue, 14 Feb 2012 01:20:48 +0000 (12:20 +1100)]
Added test case testing URI normalisation.

Tests that percent-encoded unreserved characters get de-encoded.

12 years agoAdded test case for Issue #369.
Matt Giuca [Tue, 14 Feb 2012 01:15:32 +0000 (12:15 +1100)]
Added test case for Issue #369.

Tests that legal reserved and unreserved characters in the path are not
percent-encoded. Currently fails.

12 years agoFixed URI re-encoding on Python 3 (Issue #369).
Matt Giuca [Tue, 14 Feb 2012 00:50:02 +0000 (11:50 +1100)]
Fixed URI re-encoding on Python 3 (Issue #369).

Request.full_url now performs requoting of the path (like it does in Python 2).
Request.path_url no longer quotes the already-quoted path (double quoting).
Fixed utils.requote_path so it works properly in Python 3.

12 years agoAdded test case for quoted and illegal characters in the URL.
Matt Giuca [Tue, 14 Feb 2012 00:47:14 +0000 (11:47 +1100)]
Added test case for quoted and illegal characters in the URL.

This is a test case for issue #369.
It passes in Python 2, but fails in Python 3 (though the test suite doesn't
actually work in Python 3, it can be shown to fail with some modification).

12 years agoMerge pull request #425 from Lukasa/develop
Kenneth Reitz [Tue, 14 Feb 2012 00:14:39 +0000 (16:14 -0800)]
Merge pull request #425 from Lukasa/develop

Issue #335: Accept unusual keys in cookies.

12 years agoAccept unusual keys in cookies.
Cory Benfield [Tue, 14 Feb 2012 00:03:03 +0000 (00:03 +0000)]
Accept unusual keys in cookies.

The Oreos module throws CookieErrors when it catches keys that have
characters that shouldn't be in them, like colons and braces. Other
services are happy to send out such keys, however. This commit makes
requests non-standards compliant, just like everyone else is.

12 years agoheader_expand: handle Unicode strings (closes #400)
Chris Adams [Mon, 13 Feb 2012 15:52:25 +0000 (10:52 -0500)]
header_expand: handle Unicode strings (closes #400)

12 years agoMerge pull request #410 from eriolv/develop
Kenneth Reitz [Sun, 12 Feb 2012 10:16:48 +0000 (02:16 -0800)]
Merge pull request #410 from eriolv/develop

Fix SyntaxError on Python3 because "except Error, e" is not supported anymore

12 years agoMerge pull request #413 from bancek/patch-1
Kenneth Reitz [Mon, 6 Feb 2012 17:08:03 +0000 (09:08 -0800)]
Merge pull request #413 from bancek/patch-1

Typo fix in oreos/structures.py

12 years agoTypo fix in oreos/structures.py
Luka Zakrajšek [Mon, 6 Feb 2012 12:42:34 +0000 (13:42 +0100)]
Typo fix in oreos/structures.py

12 years agoUse basestring instead of str to determine when to return headers as-is. This makes...
Greg Taylor [Sun, 5 Feb 2012 02:55:55 +0000 (21:55 -0500)]
Use basestring instead of str to determine when to return headers as-is. This makes sure that unicode instances aren't enumerated.

12 years agoSince requests 0.10.1 dropped Python5 support, to catch an exception and
Daniele Tricoli [Sun, 5 Feb 2012 03:18:22 +0000 (04:18 +0100)]
Since requests 0.10.1 dropped Python5 support, to catch an exception and
store the exception object in a variable the "as" keyword can be used so
Python3 will not raise a SyntaxError

12 years agoUpdate docs/community/faq.rst
Kenneth Reitz [Fri, 3 Feb 2012 18:24:00 +0000 (13:24 -0500)]
Update docs/community/faq.rst

12 years ago:trollface:
Kenneth Reitz [Thu, 2 Feb 2012 22:23:47 +0000 (17:23 -0500)]
:trollface:

because i can.

12 years agotest #2
Kenneth Reitz [Wed, 1 Feb 2012 18:35:34 +0000 (13:35 -0500)]
test #2

12 years agoquick test
Kenneth Reitz [Wed, 1 Feb 2012 18:33:59 +0000 (13:33 -0500)]
quick test

12 years agoNative Instruments!
Kenneth Reitz [Tue, 31 Jan 2012 07:15:55 +0000 (02:15 -0500)]
Native Instruments!

12 years agov0.10.2
Kenneth Reitz [Mon, 30 Jan 2012 14:41:09 +0000 (09:41 -0500)]
v0.10.2

12 years agoMerge branch 'unicode_missing_self' of https://github.com/Telofy/requests into develop
Kenneth Reitz [Mon, 30 Jan 2012 14:35:53 +0000 (09:35 -0500)]
Merge branch 'unicode_missing_self' of https://github.com/Telofy/requests into develop

12 years agoMerge branch 'pr-urlfix-1' of https://github.com/brendoncrawford/requests into develop
Kenneth Reitz [Mon, 30 Jan 2012 14:33:31 +0000 (09:33 -0500)]
Merge branch 'pr-urlfix-1' of https://github.com/brendoncrawford/requests into develop

12 years agoBrendon Crawford
Kenneth Reitz [Mon, 30 Jan 2012 14:33:14 +0000 (09:33 -0500)]
Brendon Crawford

12 years agoThe `self` was missing again, and I think the two blocks were redundant.
Telofy [Mon, 30 Jan 2012 11:23:43 +0000 (12:23 +0100)]
The `self` was missing again, and I think the two blocks were redundant.

12 years agoAdded ability to check if missing trailing slash in path.
Brendon Crawford [Mon, 30 Jan 2012 07:24:54 +0000 (23:24 -0800)]
Added ability to check if missing trailing slash in path.

Previously this URL would not work:

    http://example.com?foo=bar

But this URL would work:

    http://example.com/?foo=bar

Even though a slash is required for a valid URL, it is a common use case
for the slash to be left out, so it would be a good idea to account for this.