services/python-requests.git
11 years agoFix couple of typos in HISTORY.rst
Dmitry Medvinsky [Fri, 1 Mar 2013 07:42:43 +0000 (11:42 +0400)]
Fix couple of typos in HISTORY.rst

One typo and a couple of auto-completions, I guess.

11 years agoRevert "If Content-Length is already set.."[1]
Ian Cordasco [Mon, 25 Feb 2013 14:29:05 +0000 (09:29 -0500)]
Revert "If Content-Length is already set.."[1]

This reverts commit 544d08d0f61c35358cf13b4a6b677e4e51dbbe7e.

[1]"If Content-Length is already set, don't over ride it"

11 years agoMerge pull request #1205 from sigmavirus24/fix1203
Kenneth Reitz [Mon, 25 Feb 2013 10:31:21 +0000 (02:31 -0800)]
Merge pull request #1205 from sigmavirus24/fix1203

Missing line was allowing redirects with HEAD

11 years agoMerge pull request #1210 from Lukasa/urlencode_proxy
Kenneth Reitz [Mon, 25 Feb 2013 10:31:00 +0000 (02:31 -0800)]
Merge pull request #1210 from Lukasa/urlencode_proxy

Unquote proxy usernames and passwords.

11 years agoRevert "Lukasa is lazy"
Kenneth Reitz [Fri, 22 Feb 2013 13:23:34 +0000 (08:23 -0500)]
Revert "Lukasa is lazy"

This reverts commit 178ff62b934c30278114028f654e42374206c291.

11 years agoUnquote proxy usernames and passwords.
Cory Benfield [Fri, 22 Feb 2013 00:33:01 +0000 (11:33 +1100)]
Unquote proxy usernames and passwords.

11 years agoMissing line was allowing redirects with HEAD
Ian Cordasco [Wed, 20 Feb 2013 13:57:37 +0000 (08:57 -0500)]
Missing line was allowing redirects with HEAD

Closes #1203

11 years agoLukasa is lazy
Kenneth Reitz [Wed, 20 Feb 2013 07:11:41 +0000 (02:11 -0500)]
Lukasa is lazy

11 years agoMerge pull request #1193 from Lukasa/timeout_exception
Kenneth Reitz [Wed, 20 Feb 2013 07:10:44 +0000 (23:10 -0800)]
Merge pull request #1193 from Lukasa/timeout_exception

Throw more informative exceptions.

11 years agoMerge pull request #1200 from gazpachoking/session_cookies_fix
Kenneth Reitz [Wed, 20 Feb 2013 06:50:10 +0000 (22:50 -0800)]
Merge pull request #1200 from gazpachoking/session_cookies_fix

Make sure session cookies do not overwrite explicit request cookies

11 years agoMerge pull request #1199 from t-8ch/docs_explicit_proxy_scheme
Kenneth Reitz [Tue, 19 Feb 2013 13:40:15 +0000 (05:40 -0800)]
Merge pull request #1199 from t-8ch/docs_explicit_proxy_scheme

Use explicit scheme for proxies in the docs

11 years agoRethrow underlying exceptions.
Cory Benfield [Wed, 13 Feb 2013 22:57:21 +0000 (09:57 +1100)]
Rethrow underlying exceptions.

11 years agoMake sure session cookies do not overwrite explicit request cookies
Chase Sterling [Sat, 16 Feb 2013 05:56:59 +0000 (00:56 -0500)]
Make sure session cookies do not overwrite explicit request cookies
Implement RequestsCookieJar.copy
Use RequestsCookieJar.update when merging cookiejars

11 years agouse explicit scheme for proxies in the docs
Thomas Weißschuh [Fri, 15 Feb 2013 16:32:50 +0000 (16:32 +0000)]
use explicit scheme for proxies in the docs

Issue #1192 tried to force user to provide a scheme for proxy urls.
As this would break backwards compability change the docs instead.

11 years agoMerge pull request #1194 from gazpachoking/cookiejar_update
Kenneth Reitz [Fri, 15 Feb 2013 06:42:49 +0000 (22:42 -0800)]
Merge pull request #1194 from gazpachoking/cookiejar_update

Allow RequestsCookieJar to be updated with cookies from a CookieJar

11 years agoRemove ability to from RequestCookieJar __getitem__, __setitem__ to use cookies as...
Chase Sterling [Fri, 15 Feb 2013 03:52:31 +0000 (22:52 -0500)]
Remove ability to from RequestCookieJar __getitem__, __setitem__ to use cookies as keys

11 years agoAllow RequestsCookieJar to be updated with cookies from a CookieJar
Chase Sterling [Thu, 14 Feb 2013 06:05:42 +0000 (01:05 -0500)]
Allow RequestsCookieJar to be updated with cookies from a CookieJar

11 years agoMerge pull request #1185 from sigmavirus24/fix_hook_dispatching
Kenneth Reitz [Wed, 13 Feb 2013 10:13:31 +0000 (02:13 -0800)]
Merge pull request #1185 from sigmavirus24/fix_hook_dispatching

Dispatch hooks before following redirects

11 years agoDispatch hooks before following redirects
Ian Cordasco [Wed, 13 Feb 2013 04:00:06 +0000 (23:00 -0500)]
Dispatch hooks before following redirects

Fixes #1183

11 years agoMerge pull request #1181 from denis-ryzhkov/master
Kenneth Reitz [Tue, 12 Feb 2013 16:43:02 +0000 (08:43 -0800)]
Merge pull request #1181 from denis-ryzhkov/master

Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.

11 years agoMerge pull request #1184 from piotr-dobrogost/numeric_codes
Kenneth Reitz [Tue, 12 Feb 2013 08:27:05 +0000 (00:27 -0800)]
Merge pull request #1184 from piotr-dobrogost/numeric_codes

small cleanup of redirect codes

11 years agoDeleted is_py2 check from unicode_header_name fix thanks to Lukasa.
Denis Ryzhkov [Tue, 12 Feb 2013 06:51:46 +0000 (09:51 +0300)]
Deleted is_py2 check from unicode_header_name fix thanks to Lukasa.

11 years agoremoved no longer used redirect codes from models
Piotr Dobrogost [Mon, 11 Feb 2013 22:07:12 +0000 (23:07 +0100)]
removed no longer used redirect codes from models
added numeric values of redirect codes in comments

11 years agoFix of UnicodeDecodeError on unicode header name that can be converted to ascii.
Denis Ryzhkov [Mon, 11 Feb 2013 12:37:58 +0000 (15:37 +0300)]
Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.

11 years agoMerge pull request #1180 from sigmavirus24/master
Kenneth Reitz [Mon, 11 Feb 2013 00:43:21 +0000 (16:43 -0800)]
Merge pull request #1180 from sigmavirus24/master

Fix Session level Cookie Handling

11 years agoTest and perfection for cookie handling.
Ian Cordasco [Mon, 11 Feb 2013 00:36:36 +0000 (19:36 -0500)]
Test and perfection for cookie handling.

I also fixed up some of the RequestsCookieJar methods so using
jar.update(other_jar) works without a problem. This cleans up some of the code
in sessions and the resolve_redirects method.

11 years agoAnd tests
Ian Cordasco [Sun, 10 Feb 2013 22:49:49 +0000 (17:49 -0500)]
And tests

11 years agourllib3 update
Kenneth Reitz [Sun, 10 Feb 2013 22:43:58 +0000 (17:43 -0500)]
urllib3 update

#1053

11 years agoFix Setting a cookie on redirect
Ian Cordasco [Sun, 10 Feb 2013 22:43:37 +0000 (17:43 -0500)]
Fix Setting a cookie on redirect

11 years agoMerge pull request #1173 from sigmavirus24/use_send_in_resolve_redirects
Kenneth Reitz [Sun, 10 Feb 2013 22:21:13 +0000 (14:21 -0800)]
Merge pull request #1173 from sigmavirus24/use_send_in_resolve_redirects

Use send in resolve redirects

11 years agoResolve @piotr-dobrogost's concerns
Ian Cordasco [Sun, 10 Feb 2013 22:14:45 +0000 (17:14 -0500)]
Resolve @piotr-dobrogost's concerns

Piotr had good objections to my not re-sending the body of the request on 307.

11 years agoPreserve the original request.
Ian Cordasco [Fri, 8 Feb 2013 03:53:37 +0000 (22:53 -0500)]
Preserve the original request.

Let's make a copy to preserve it.

11 years agoWe shouldn't be sending the data on redirect.
Ian Cordasco [Fri, 8 Feb 2013 03:42:58 +0000 (22:42 -0500)]
We shouldn't be sending the data on redirect.

As such, we should remove the body from the old request as well as the
Content-Length header.

11 years agoFix the potential issue mentioned in #1151
Ian Cordasco [Fri, 8 Feb 2013 02:08:20 +0000 (21:08 -0500)]
Fix the potential issue mentioned in #1151

See: https://github.com/kennethreitz/requests/pull/1151#issuecomment-12905796

This is solved by just reusing the PreparedRequest from the last request.

11 years agoMerge pull request #1161 from sigmavirus24/fix1159
Kenneth Reitz [Sun, 10 Feb 2013 22:07:08 +0000 (14:07 -0800)]
Merge pull request #1161 from sigmavirus24/fix1159

If Content-Length is already set, don't override

11 years agoMerge pull request #1119 from Lukasa/diags
Kenneth Reitz [Sun, 10 Feb 2013 22:06:38 +0000 (14:06 -0800)]
Merge pull request #1119 from Lukasa/diags

Better diagnostics when trying to send unprepared request

11 years agoGuard against users sending unprepared requests.
Cory Benfield [Wed, 6 Feb 2013 18:48:47 +0000 (18:48 +0000)]
Guard against users sending unprepared requests.

11 years agoMerge pull request #1162 from Lukasa/proxy_auth
Kenneth Reitz [Wed, 6 Feb 2013 21:05:04 +0000 (13:05 -0800)]
Merge pull request #1162 from Lukasa/proxy_auth

Proxy Authorization Headers

11 years agoMerge pull request #1168 from Lukasa/freeze
Kenneth Reitz [Wed, 6 Feb 2013 19:53:55 +0000 (11:53 -0800)]
Merge pull request #1168 from Lukasa/freeze

Feature freeze.

11 years agoFeature freeze.
Cory Benfield [Wed, 6 Feb 2013 19:01:24 +0000 (19:01 +0000)]
Feature freeze.

11 years agoAdd Proxy-Auth header when proxies have credentials.
Cory Benfield [Wed, 6 Feb 2013 18:24:23 +0000 (18:24 +0000)]
Add Proxy-Auth header when proxies have credentials.

11 years agoMerge pull request #1151 from sigmavirus24/fix1133
Kenneth Reitz [Tue, 5 Feb 2013 19:42:51 +0000 (11:42 -0800)]
Merge pull request #1151 from sigmavirus24/fix1133

Move redirect handling from Session.request to Session.send

11 years agoIf Content-Length is already set, don't override
Ian Cordasco [Fri, 1 Feb 2013 16:55:02 +0000 (11:55 -0500)]
If Content-Length is already set, don't override

Re: #1159

11 years agoMerge pull request #1158 from yehudasa/master
Kenneth Reitz [Fri, 1 Feb 2013 15:30:47 +0000 (07:30 -0800)]
Merge pull request #1158 from yehudasa/master

Fix check that breaks handling of 303 response in some cases (v2)

11 years agoFix POST 303 redirect resonse handling
Yehuda Sadeh [Thu, 31 Jan 2013 18:32:00 +0000 (10:32 -0800)]
Fix POST 303 redirect resonse handling

This fixes issue #1156.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agomoar
Kenneth Reitz [Thu, 31 Jan 2013 14:35:42 +0000 (14:35 +0000)]
moar

11 years agoHMG
Kenneth Reitz [Thu, 31 Jan 2013 13:20:14 +0000 (13:20 +0000)]
HMG

11 years agoMerge pull request #1153 from cbare/master
Kenneth Reitz [Wed, 30 Jan 2013 23:56:21 +0000 (15:56 -0800)]
Merge pull request #1153 from cbare/master

use only base filename in multipart file upload

11 years agoMerge pull request #1152 from ekatsah/patch-1
Kenneth Reitz [Wed, 30 Jan 2013 23:54:20 +0000 (15:54 -0800)]
Merge pull request #1152 from ekatsah/patch-1

Update docs/user/advanced.rst

11 years agoshorten filename by os.path.basename in guess_filename(obj)
Christopher Bare [Wed, 30 Jan 2013 23:33:43 +0000 (15:33 -0800)]
shorten filename by os.path.basename in guess_filename(obj)

11 years agoUpdate docs/user/advanced.rst
ekatsah [Wed, 30 Jan 2013 20:22:24 +0000 (21:22 +0100)]
Update docs/user/advanced.rst

Rephrasing a line in the docs, add explicite mention of "client side certificate" (for indexing and clarity)

11 years agoThanks to @maxcountryman for the code review
Ian Cordasco [Wed, 30 Jan 2013 15:58:32 +0000 (10:58 -0500)]
Thanks to @maxcountryman for the code review

11 years agoFix the elapsed test and #1133
Ian Cordasco [Wed, 30 Jan 2013 04:50:37 +0000 (23:50 -0500)]
Fix the elapsed test and #1133

11 years agoMerge pull request #1143 from Lukasa/master
Kenneth Reitz [Tue, 29 Jan 2013 04:52:17 +0000 (20:52 -0800)]
Merge pull request #1143 from Lukasa/master

Response as iterator

11 years agoFix test for Py3.
Cory Benfield [Sat, 26 Jan 2013 15:54:06 +0000 (15:54 +0000)]
Fix test for Py3.

11 years agoMore useful docstring.
Cory Benfield [Sat, 26 Jan 2013 15:24:25 +0000 (15:24 +0000)]
More useful docstring.

11 years agoMake Response objects iterable.
Cory Benfield [Sat, 26 Jan 2013 15:19:01 +0000 (15:19 +0000)]
Make Response objects iterable.

11 years agoMerge pull request #1148 from sigmavirus24/timing_switch
Kenneth Reitz [Mon, 28 Jan 2013 17:40:10 +0000 (09:40 -0800)]
Merge pull request #1148 from sigmavirus24/timing_switch

Move the timing work to Session.send

11 years agoMove the timing work to Session.send
Ian Cordasco [Mon, 28 Jan 2013 16:53:02 +0000 (11:53 -0500)]
Move the timing work to Session.send

per @kennethreitz's request

11 years agoMerge pull request #1146 from oczkers/master
Kenneth Reitz [Mon, 28 Jan 2013 03:11:15 +0000 (19:11 -0800)]
Merge pull request #1146 from oczkers/master

It`s more pep8 now

11 years agoMerge pull request #1138 from clee/master
Kenneth Reitz [Mon, 28 Jan 2013 03:10:16 +0000 (19:10 -0800)]
Merge pull request #1138 from clee/master

Time each request

11 years agoUse timedelta and change attribute name back to elapsed
Chris Lee [Mon, 28 Jan 2013 03:01:39 +0000 (19:01 -0800)]
Use timedelta and change attribute name back to elapsed

11 years agoTime how long each request takes
Chris Lee [Thu, 24 Jan 2013 02:14:47 +0000 (18:14 -0800)]
Time how long each request takes

Stored as attribute Response.time_taken

11 years agoit`s more pep8 now
oczkers [Sun, 27 Jan 2013 01:04:12 +0000 (02:04 +0100)]
it`s more pep8 now

11 years agoMerge pull request #1145 from sigmavirus24/master
Kenneth Reitz [Sat, 26 Jan 2013 17:05:19 +0000 (09:05 -0800)]
Merge pull request #1145 from sigmavirus24/master

Mock the links test

11 years agoMock the links test.
Ian Cordasco [Sat, 26 Jan 2013 16:55:08 +0000 (11:55 -0500)]
Mock the links test.

11 years agoMerge pull request #1103 from dmckeone/master
Kenneth Reitz [Sat, 26 Jan 2013 05:02:01 +0000 (21:02 -0800)]
Merge pull request #1103 from dmckeone/master

Restore the ability to use a list of 2-tuples for the data keyword argument with requests.post.

11 years agoMerge pull request #1123 from andrewjesaitis/master
Kenneth Reitz [Sat, 26 Jan 2013 05:00:33 +0000 (21:00 -0800)]
Merge pull request #1123 from andrewjesaitis/master

Fixes DigestAuth with Sessions

11 years agoMerge pull request #1140 from ralphbean/cookie-test
Kenneth Reitz [Sat, 26 Jan 2013 04:58:35 +0000 (20:58 -0800)]
Merge pull request #1140 from ralphbean/cookie-test

Test for cookie parameters.

11 years agoMerge pull request #1142 from theaeolianmachine/removeGETContentLength
Kenneth Reitz [Sat, 26 Jan 2013 04:58:20 +0000 (20:58 -0800)]
Merge pull request #1142 from theaeolianmachine/removeGETContentLength

Remove default Content-Length from GET requests.

11 years agoRemove Content-Length from GET/HEAD by default.
Johnny Goodnow [Sat, 26 Jan 2013 04:50:58 +0000 (20:50 -0800)]
Remove Content-Length from GET/HEAD by default.

Now, Content-Length is only auto-added for non-GET/HEAD requests.

11 years agoAlways add Content-Length to HTTP PATCH.
Johnny Goodnow [Fri, 25 Jan 2013 20:07:24 +0000 (12:07 -0800)]
Always add Content-Length to HTTP PATCH.

11 years agoAdd myself to AUTHORS.
Johnny Goodnow [Fri, 25 Jan 2013 08:19:09 +0000 (00:19 -0800)]
Add myself to AUTHORS.

11 years agoFix python 2.6 unittest compatability issue.
Johnny Goodnow [Fri, 25 Jan 2013 05:25:14 +0000 (21:25 -0800)]
Fix python 2.6 unittest compatability issue.

11 years agoRemove default Content-Length from GET requests.
Johnny Goodnow [Fri, 25 Jan 2013 05:10:12 +0000 (21:10 -0800)]
Remove default Content-Length from GET requests.

Fix #1051.

11 years agopurported py2.6 support for cookies test.
Ralph Bean [Fri, 25 Jan 2013 05:10:51 +0000 (00:10 -0500)]
purported py2.6 support for cookies test.

11 years agoMerge pull request #1099 from sprt/master
Kenneth Reitz [Thu, 24 Jan 2013 18:00:24 +0000 (10:00 -0800)]
Merge pull request #1099 from sprt/master

Make hooks work with prepared requests

11 years agoTest for cookie parameters.
Ralph Bean [Thu, 24 Jan 2013 17:47:55 +0000 (12:47 -0500)]
Test for cookie parameters.

11 years agoMerge branch 'master' of git://github.com/kennethreitz/requests
sprt [Thu, 24 Jan 2013 17:36:53 +0000 (18:36 +0100)]
Merge branch 'master' of git://github.com/kennethreitz/requests

Conflicts:
test_requests.py

11 years agoMerge pull request #1137 from whit537/unperson_test
Kenneth Reitz [Thu, 24 Jan 2013 01:37:13 +0000 (17:37 -0800)]
Merge pull request #1137 from whit537/unperson_test

Remove a test per @kennethreitz in IRC

11 years agoMerge pull request #1136 from steveklabnik/test_link_header
Kenneth Reitz [Thu, 24 Jan 2013 01:34:55 +0000 (17:34 -0800)]
Merge pull request #1136 from steveklabnik/test_link_header

introduce a test for link headers.

11 years agoRemove a test per @kennethreitz in IRC
Chad Whitacre [Thu, 24 Jan 2013 01:32:03 +0000 (20:32 -0500)]
Remove a test per @kennethreitz in IRC

The test suite is moving from the httpbin pattern (which hits the
network) to depending on the request.prepare method (which doesn't).
Here's a start ...

11 years agointroduce a test for link headers.
Steve Klabnik [Thu, 24 Jan 2013 01:31:05 +0000 (20:31 -0500)]
introduce a test for link headers.

11 years agoMerge pull request #1134 from steveklabnik/remove_silly_assert
Kenneth Reitz [Thu, 24 Jan 2013 01:06:40 +0000 (17:06 -0800)]
Merge pull request #1134 from steveklabnik/remove_silly_assert

remove silly assert

11 years agoremove silly assert
Steve Klabnik [Thu, 24 Jan 2013 01:03:43 +0000 (20:03 -0500)]
remove silly assert

11 years agoMerge pull request #1132 from sburns/jsonkwargs
Kenneth Reitz [Wed, 23 Jan 2013 22:02:37 +0000 (14:02 -0800)]
Merge pull request #1132 from sburns/jsonkwargs

Pass kwargs to json.loads

11 years agoPass kwargs to json.loads
Scott Burns [Wed, 23 Jan 2013 21:25:48 +0000 (15:25 -0600)]
Pass kwargs to json.loads

Not all JSON is created equally. This commit
addresses when users want to take control of the
json decode process.

11 years agoMoves num_401_calls counter to HTTPDigestAuth
Andrew Jesaitis [Wed, 23 Jan 2013 17:32:56 +0000 (10:32 -0700)]
Moves num_401_calls counter to HTTPDigestAuth

11 years agoOnly call the hook once.
Ian Cordasco [Wed, 23 Jan 2013 16:51:37 +0000 (11:51 -0500)]
Only call the hook once.

11 years agoComment & replace something that keeps disappearing
Ian Cordasco [Wed, 23 Jan 2013 16:28:30 +0000 (11:28 -0500)]
Comment & replace something that keeps disappearing

11 years agoRefactor prepare_hooks()
sprt [Wed, 23 Jan 2013 14:45:44 +0000 (15:45 +0100)]
Refactor prepare_hooks()

11 years agoAdd missing import
sprt [Wed, 23 Jan 2013 14:45:14 +0000 (15:45 +0100)]
Add missing import

11 years agoMerge remote-tracking branch 'upstream/master'
sprt [Wed, 23 Jan 2013 13:42:45 +0000 (14:42 +0100)]
Merge remote-tracking branch 'upstream/master'

Conflicts:
requests/sessions.py

11 years agoMerge pull request #1125 from juanriaza/master
Kenneth Reitz [Wed, 23 Jan 2013 03:43:50 +0000 (19:43 -0800)]
Merge pull request #1125 from juanriaza/master

HTTPDigestAuth: missing algorithm field

11 years agoMerge pull request #1116 from Lukasa/master
Kenneth Reitz [Wed, 23 Jan 2013 02:51:17 +0000 (18:51 -0800)]
Merge pull request #1116 from Lukasa/master

Correct type of Content-Length headers.

11 years agoMerge pull request #1117 from sigmavirus24/issue1106
Kenneth Reitz [Wed, 23 Jan 2013 02:48:31 +0000 (18:48 -0800)]
Merge pull request #1117 from sigmavirus24/issue1106

Fix #1106

11 years agoMerge pull request #1127 from sigmavirus24/fix1126
Kenneth Reitz [Wed, 23 Jan 2013 01:53:16 +0000 (17:53 -0800)]
Merge pull request #1127 from sigmavirus24/fix1126

A simple fix

11 years agoMerge pull request #1128 from mvid/master
Kenneth Reitz [Wed, 23 Jan 2013 01:45:00 +0000 (17:45 -0800)]
Merge pull request #1128 from mvid/master

Updating urllib3 to current master

11 years agoupdate urllib3 to current master with ssl bugfixes
Mantas Vidutis [Tue, 22 Jan 2013 22:40:10 +0000 (14:40 -0800)]
update urllib3 to current master with ssl bugfixes

11 years agoTests pass this time.
Ian Cordasco [Tue, 22 Jan 2013 22:21:34 +0000 (17:21 -0500)]
Tests pass this time.