services/python-requests.git
12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Fri, 8 Jun 2012 01:55:11 +0000 (21:55 -0400)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agomake empty body text responses work
Kenneth Reitz [Fri, 8 Jun 2012 01:55:07 +0000 (21:55 -0400)]
make empty body text responses work

#660

12 years agotest that empty body text responses work
Kenneth Reitz [Fri, 8 Jun 2012 01:54:45 +0000 (21:54 -0400)]
test that empty body text responses work

12 years agoMerge pull request #665 from dalanmiller/patch-2
Kenneth Reitz [Thu, 7 Jun 2012 23:55:06 +0000 (16:55 -0700)]
Merge pull request #665 from dalanmiller/patch-2

If requests.async has been removed, the docs should point people to the right place.

12 years agoIf this comment is true (https://github.com/kennethreitz/requests/issues/239#issuecom...
Daniel Miller [Thu, 7 Jun 2012 23:47:54 +0000 (16:47 -0700)]
If this comment is true (https://github.com/kennethreitz/requests/issues/239#issuecomment-6180706), then it would be good to point people in the right direction. Otherwise disregard this message.

12 years agomore examples
Kenneth Reitz [Thu, 7 Jun 2012 01:09:19 +0000 (03:09 +0200)]
more examples

#657

12 years agoRevert "In fact, the feature is so awesome that it should go into index.rst"
Kenneth Reitz [Thu, 7 Jun 2012 01:02:32 +0000 (03:02 +0200)]
Revert "In fact, the feature is so awesome that it should go into index.rst"

This reverts commit f968fe013659b9b5b89f0316203de5f3139a7217.

12 years agoIn fact, the feature is so awesome that it should go into index.rst
Danilo Bargen [Wed, 6 Jun 2012 15:07:42 +0000 (17:07 +0200)]
In fact, the feature is so awesome that it should go into index.rst

12 years agoAdded r.json documentation (document ALL the awesome features!)
Danilo Bargen [Wed, 6 Jun 2012 14:59:20 +0000 (16:59 +0200)]
Added r.json documentation (document ALL the awesome features!)

12 years agov0.13.1
Kenneth Reitz [Tue, 5 Jun 2012 08:25:08 +0000 (10:25 +0200)]
v0.13.1

12 years agoRevert "Auto-detect CA Cert path instead of requiring users to hack setup.py"
Kenneth Reitz [Mon, 4 Jun 2012 22:51:46 +0000 (00:51 +0200)]
Revert "Auto-detect CA Cert path instead of requiring users to hack setup.py"

This reverts commit 62a23bfbdecf54e13e571237df5a175e53d539cb.

12 years agoMerge pull request #651 from urbanairship/detect-cacerts
Kenneth Reitz [Mon, 4 Jun 2012 22:24:14 +0000 (15:24 -0700)]
Merge pull request #651 from urbanairship/detect-cacerts

Auto-detect CA Cert path instead of requiring users to hack setup.py

12 years agoAuto-detect CA Cert path instead of requiring users to hack setup.py
Michael Schurter [Mon, 4 Jun 2012 20:19:10 +0000 (13:19 -0700)]
Auto-detect CA Cert path instead of requiring users to hack setup.py

Also fixed nearby comments to wrap at 79 characters as per PEP8

12 years agoMerge pull request #646 from mkomitee/hooks
Kenneth Reitz [Mon, 4 Jun 2012 14:44:56 +0000 (07:44 -0700)]
Merge pull request #646 from mkomitee/hooks

Allowing hooks to return responses that indicate errors

12 years agoAllowing hooks to return responses that indicate errors
Michael Komitee [Fri, 1 Jun 2012 19:53:23 +0000 (15:53 -0400)]
Allowing hooks to return responses that indicate errors

Since response objects for failures (4xx/5xx responses) evaluate to False
in a boolean context, any hook which returns such a failure response will
evaluate to False.

The way hooks were setup, any failure response resulting from a hook would
be ignored, and the initial response before it got processed by the hook
would be substituted in its place. This commit changes that logic to test
for None so that hooks that return failures can do so.

12 years agoMerge pull request #643 from gwrtheyrn/docs_proxy_auth
Kenneth Reitz [Wed, 30 May 2012 19:48:33 +0000 (12:48 -0700)]
Merge pull request #643 from gwrtheyrn/docs_proxy_auth

Added information about HTTP proxy authentication to docs

12 years agoAdded information about HTTP proxy authentication to docs
Danilo Bargen [Wed, 30 May 2012 15:34:24 +0000 (17:34 +0200)]
Added information about HTTP proxy authentication to docs

12 years agov0.13.0 v0.13.0
Kenneth Reitz [Wed, 30 May 2012 00:53:51 +0000 (20:53 -0400)]
v0.13.0

12 years agowhitespace
Kenneth Reitz [Wed, 30 May 2012 00:53:13 +0000 (20:53 -0400)]
whitespace

12 years agov0.13.0
Kenneth Reitz [Wed, 30 May 2012 00:52:58 +0000 (20:52 -0400)]
v0.13.0

12 years agoby @mwielgoszewski
Kenneth Reitz [Tue, 29 May 2012 23:54:40 +0000 (19:54 -0400)]
by @mwielgoszewski

12 years agocleanup #633
Kenneth Reitz [Tue, 29 May 2012 23:53:22 +0000 (19:53 -0400)]
cleanup #633

12 years agoMerge pull request #633 from tzuryby/develop
Kenneth Reitz [Tue, 29 May 2012 23:51:48 +0000 (16:51 -0700)]
Merge pull request #633 from tzuryby/develop

poor man's patch for issue #630

12 years agoMerge pull request #619 from Lukasa/develop
Kenneth Reitz [Tue, 29 May 2012 23:49:51 +0000 (16:49 -0700)]
Merge pull request #619 from Lukasa/develop

Rewrite quickstart docs.

12 years agoMerge pull request #640 from JuhaS/patch-1
Kenneth Reitz [Tue, 29 May 2012 23:45:54 +0000 (16:45 -0700)]
Merge pull request #640 from JuhaS/patch-1

Small correction on a comment.

12 years agoMerge pull request #638 from mher/develop
Kenneth Reitz [Tue, 29 May 2012 23:44:56 +0000 (16:44 -0700)]
Merge pull request #638 from mher/develop

no_proxy support

12 years agoMerge pull request #632 from amalakar/develop
Kenneth Reitz [Tue, 29 May 2012 23:41:39 +0000 (16:41 -0700)]
Merge pull request #632 from amalakar/develop

Issue #505: Changed the store_cookie configuration to be part of the conig dict, instead of being a new argument

12 years agoSmall correction on a comment.
JuhaS [Mon, 28 May 2012 13:28:31 +0000 (16:28 +0300)]
Small correction on a comment.

12 years agoFixes python3 compatibility issue
Mher Movsisyan [Mon, 28 May 2012 09:11:59 +0000 (14:11 +0500)]
Fixes python3 compatibility issue

12 years agono_proxy support
Mher Movsisyan [Sun, 27 May 2012 17:21:26 +0000 (22:21 +0500)]
no_proxy support

12 years agothis try catch is a poor man's patch for issue #630 see https://github.com/kennethrei...
Tzury Bar Yochay [Thu, 24 May 2012 03:17:21 +0000 (06:17 +0300)]
this try catch is a poor man's patch for issue #630 see https://github.com/kennethreitz/requests/issues/630

12 years agoChange the None check from self.assertIsNone to python style None Check, as build...
Arup Malakar [Wed, 23 May 2012 21:25:54 +0000 (14:25 -0700)]
Change the None check from self.assertIsNone to python style None Check, as build was failing

12 years agoIssue #505: Changed the store_cookie configuration to be part of the config dict...
Arup Malakar [Wed, 23 May 2012 21:12:18 +0000 (14:12 -0700)]
Issue #505: Changed the store_cookie configuration to be part of the config dict, instead of being a new argument

12 years agoMerge pull request #626 from joshimhoff/develop
Kenneth Reitz [Tue, 22 May 2012 04:45:44 +0000 (21:45 -0700)]
Merge pull request #626 from joshimhoff/develop

Improvements to RequestsCookieJar

12 years agoRemoved print statements left over from debugging.
Josh Imhoff [Tue, 22 May 2012 00:27:47 +0000 (20:27 -0400)]
Removed print statements left over from debugging.

12 years agoWrote tests for new CookieJar functionality and made them pass.
Josh Imhoff [Tue, 22 May 2012 00:14:12 +0000 (20:14 -0400)]
Wrote tests for new CookieJar functionality and made them pass.

12 years agoIn cookies.py, CookieConflictError is now thrown if there is more than one cookie...
Josh Imhoff [Mon, 21 May 2012 22:21:12 +0000 (18:21 -0400)]
In cookies.py, CookieConflictError is now thrown if there is more than one cookie with same name.

12 years agoDocstrings and bug fixes in cookies.py
Josh Imhoff [Mon, 21 May 2012 21:59:38 +0000 (17:59 -0400)]
Docstrings and bug fixes in cookies.py

12 years agoFirst draft of full verbs.
Cory Benfield [Sat, 19 May 2012 20:34:36 +0000 (21:34 +0100)]
First draft of full verbs.

12 years agoDefined keys(), values(), and items() in order to support dict-like client interface...
Josh Imhoff [Fri, 18 May 2012 04:48:59 +0000 (00:48 -0400)]
Defined keys(), values(), and items() in order to support dict-like client interface. Now, we throw exceptions if __getitem__() or __setitem__() is used when multiple domains are in jar.

12 years agoCorrectly reflect redirection behaviour.
Cory Benfield [Thu, 17 May 2012 18:25:35 +0000 (19:25 +0100)]
Correctly reflect redirection behaviour.

The docs incorrectly listed HEAD as a method that follows redirects by
default: it does not. This commit resolves this issue, and thus resolves
issue #504.

12 years agoRewrite quickstart docs.
Cory Benfield [Thu, 17 May 2012 09:16:42 +0000 (10:16 +0100)]
Rewrite quickstart docs.

This should help with issue #503.

12 years agoMerge pull request #617 from mwielgoszewski/develop
Kenneth Reitz [Thu, 17 May 2012 00:34:02 +0000 (17:34 -0700)]
Merge pull request #617 from mwielgoszewski/develop

Expose case-insensitive key access when deleting a key from CaseInsensitveDict

12 years agofix test for 2.6's unittest
Kenneth Reitz [Thu, 17 May 2012 00:13:55 +0000 (17:13 -0700)]
fix test for 2.6's unittest

12 years agoauthors
Kenneth Reitz [Thu, 17 May 2012 00:09:43 +0000 (17:09 -0700)]
authors

12 years agoIssue #505: Allow disabling of cookie persistence/sending
Arup Malakar [Wed, 16 May 2012 22:07:15 +0000 (15:07 -0700)]
Issue #505: Allow disabling of cookie persistence/sending

12 years agoExpose case-insensitive key access when deleting a key from CaseInsensitiveDict
Marcin Wielgoszewski [Wed, 16 May 2012 17:58:51 +0000 (13:58 -0400)]
Expose case-insensitive key access when deleting a key from CaseInsensitiveDict

12 years agoMerge pull request #562 from slingamn/urandom
Kenneth Reitz [Wed, 16 May 2012 05:49:27 +0000 (22:49 -0700)]
Merge pull request #562 from slingamn/urandom

replace utils.randombytes with os.urandom

12 years agoreplace utils.randombytes with os.urandom
Shivaram Lingamneni [Wed, 2 May 2012 01:20:44 +0000 (18:20 -0700)]
replace utils.randombytes with os.urandom

12 years agoMerge pull request #614 from ib-lundgren/multipart_fix
Kenneth Reitz [Tue, 15 May 2012 15:39:20 +0000 (08:39 -0700)]
Merge pull request #614 from ib-lundgren/multipart_fix

Better content-type detection and unicode fix

12 years agoUnicode fix for py3
Ib Lundgren [Tue, 15 May 2012 15:37:15 +0000 (17:37 +0200)]
Unicode fix for py3

12 years agoMerge pull request #613 from surajbarkale/patch-1
Kenneth Reitz [Tue, 15 May 2012 15:31:43 +0000 (08:31 -0700)]
Merge pull request #613 from surajbarkale/patch-1

Remove sharing of base_headers config between sessions.

12 years agoBetter content-type detection and unicode fix
Ib Lundgren [Tue, 15 May 2012 15:20:01 +0000 (17:20 +0200)]
Better content-type detection and unicode fix

12 years agoRemove sharing of base_headers config between sessions.
Suraj Barkale [Tue, 15 May 2012 14:17:02 +0000 (19:47 +0530)]
Remove sharing of base_headers config between sessions.
Since base_headers is a dictionary, it's reference was shared with all instances of
Session objects. Using deepcopy here should not incur large performance penalty.

12 years agoMerge pull request #611 from pnasrat/develop
Kenneth Reitz [Mon, 14 May 2012 02:47:19 +0000 (19:47 -0700)]
Merge pull request #611 from pnasrat/develop

Improve developer documentation.

12 years agoImprove developer documentation.
Paul Nasrat [Sun, 13 May 2012 23:09:52 +0000 (16:09 -0700)]
Improve developer documentation.

I cloned, followed the todo and had failures as no certifi or chardet.

Fixed up so easy to get started.

12 years agoMerge pull request #610 from medwards/whitespace
Kenneth Reitz [Sun, 13 May 2012 18:01:22 +0000 (11:01 -0700)]
Merge pull request #610 from medwards/whitespace

Removed extra whitespace

12 years agoRemoved extra whitespace
Michael Edwards [Sun, 13 May 2012 09:59:31 +0000 (11:59 +0200)]
Removed extra whitespace

12 years agoMerge pull request #607 from ztest/develop
Kenneth Reitz [Sat, 12 May 2012 21:23:04 +0000 (14:23 -0700)]
Merge pull request #607 from ztest/develop

Fix a docstring typo (of -> if).

12 years agoFix a docstring typo (of -> if).
ztest [Sat, 12 May 2012 17:09:14 +0000 (13:09 -0400)]
Fix a docstring typo (of -> if).

12 years agoremove unused import
Shivaram Lingamneni [Thu, 10 May 2012 22:14:44 +0000 (15:14 -0700)]
remove unused import

12 years agosemver
Kenneth Reitz [Thu, 10 May 2012 22:11:35 +0000 (17:11 -0500)]
semver

12 years agoremove oreos
Kenneth Reitz [Thu, 10 May 2012 22:10:47 +0000 (17:10 -0500)]
remove oreos

12 years agoremove gevent extras_require
Kenneth Reitz [Thu, 10 May 2012 22:09:53 +0000 (17:09 -0500)]
remove gevent extras_require

12 years agoremove requests async tests
Kenneth Reitz [Thu, 10 May 2012 22:02:22 +0000 (17:02 -0500)]
remove requests async tests

12 years agoremove requests.async
Kenneth Reitz [Thu, 10 May 2012 22:01:09 +0000 (17:01 -0500)]
remove requests.async

12 years agomakin' history
Kenneth Reitz [Thu, 10 May 2012 18:10:50 +0000 (13:10 -0500)]
makin' history

12 years agoMerge pull request #603 from benmao/develop
Kenneth Reitz [Thu, 10 May 2012 18:07:00 +0000 (11:07 -0700)]
Merge pull request #603 from benmao/develop

get cookie like dict, such as s.cookies.get('test', 'no cookie')

12 years agoMerge pull request #604 from joshimhoff/develop
Kenneth Reitz [Thu, 10 May 2012 18:06:24 +0000 (11:06 -0700)]
Merge pull request #604 from joshimhoff/develop

New implementation of safe_mode.

12 years agoget cookie like dict, such as self.cookies.get('test', 'no cookie')
ben [Thu, 10 May 2012 14:17:23 +0000 (22:17 +0800)]
get cookie like dict, such as self.cookies.get('test', 'no cookie')

12 years agoNow, safe_mode will catch socket.timeout too.
Josh Imhoff [Wed, 9 May 2012 19:13:12 +0000 (15:13 -0400)]
Now, safe_mode will catch socket.timeout too.

12 years agoNew implementation of safe_mode. Now, we throw exceptions in models.py regardless...
Josh Imhoff [Wed, 9 May 2012 18:47:29 +0000 (14:47 -0400)]
New implementation of safe_mode. Now, we throw exceptions in models.py regardless of safe_mode. We catch those exceptions at the API level and return a blank Response. See safe_mode.py for details.

12 years agoMerge pull request #595 from reclosedev/sess-cookies-no-resp
Kenneth Reitz [Tue, 8 May 2012 15:06:51 +0000 (08:06 -0700)]
Merge pull request #595 from reclosedev/sess-cookies-no-resp

Session cookies not saved when Session.request is called with return_response=False

12 years agoAdd myself to AUTHORS.rst
Roman Haritonov [Tue, 8 May 2012 10:30:24 +0000 (14:30 +0400)]
Add myself to AUTHORS.rst

12 years agoMove session cookie saving from Session.request() to Request._build_response()
Roman Haritonov [Tue, 8 May 2012 09:02:39 +0000 (13:02 +0400)]
Move session cookie saving from Session.request() to  Request._build_response()

12 years agoTest async requests with Session cookies
Roman Haritonov [Tue, 8 May 2012 08:55:36 +0000 (12:55 +0400)]
Test async requests with Session cookies

12 years agoTest if cookies are saving to session when session.request is called with return_resp...
Roman Haritonov [Tue, 8 May 2012 08:17:58 +0000 (12:17 +0400)]
Test if cookies are saving to session when session.request is called with return_response=False

12 years agoMerge pull request #594 from slingamn/makefile_again
Kenneth Reitz [Tue, 8 May 2012 05:46:00 +0000 (22:46 -0700)]
Merge pull request #594 from slingamn/makefile_again

unbreak the Jenkins build again/hopefully :-/

12 years agoremove the oauthlib trunk from requirements.txt
Shivaram Lingamneni [Tue, 8 May 2012 05:40:11 +0000 (22:40 -0700)]
remove the oauthlib trunk from requirements.txt

12 years agounbreak the Jenkins build (again/hopefully)
Shivaram Lingamneni [Tue, 8 May 2012 05:36:51 +0000 (22:36 -0700)]
unbreak the Jenkins build (again/hopefully)

Pyflakes is unavailable in the Jenkins Python 3 / PyPy environments

12 years agothread safe
Kenneth Reitz [Tue, 8 May 2012 05:24:30 +0000 (01:24 -0400)]
thread safe

12 years agogah
Kenneth Reitz [Tue, 8 May 2012 05:21:48 +0000 (01:21 -0400)]
gah

12 years agov0.12.1 v0.12.1
Kenneth Reitz [Tue, 8 May 2012 05:18:05 +0000 (01:18 -0400)]
v0.12.1

12 years agoredirects clear files also
Kenneth Reitz [Tue, 8 May 2012 05:14:17 +0000 (01:14 -0400)]
redirects clear files also

Fixes #575

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Tue, 8 May 2012 04:58:32 +0000 (00:58 -0400)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agoMerge pull request #559 from barberj/issue_526
Kenneth Reitz [Tue, 8 May 2012 04:58:20 +0000 (21:58 -0700)]
Merge pull request #559 from barberj/issue_526

Issue #526

12 years agoyay json
Kenneth Reitz [Tue, 8 May 2012 04:57:46 +0000 (00:57 -0400)]
yay json

fixes #593

12 years agoadding test verifying data httpbin sees
barberj [Sun, 6 May 2012 23:24:37 +0000 (19:24 -0400)]
adding test verifying data httpbin sees

12 years agosynatx error for python3. all strings are unicode
barberj [Sun, 6 May 2012 22:50:42 +0000 (18:50 -0400)]
synatx error for python3. all strings are unicode

12 years agosending strings to be received as files
barberj [Wed, 25 Apr 2012 20:45:21 +0000 (16:45 -0400)]
sending strings to be received as files

12 years agoadded unicode strings
barberj [Sat, 21 Apr 2012 03:30:45 +0000 (23:30 -0400)]
added unicode strings

12 years agocredit where credits due
barberj [Sat, 21 Apr 2012 02:18:28 +0000 (22:18 -0400)]
credit where credits due

12 years agoadded mutlipart file=strings
barberj [Sat, 21 Apr 2012 02:15:35 +0000 (22:15 -0400)]
added mutlipart file=strings

12 years agoMerge pull request #590 from berkerpeksag/doc-links
Kenneth Reitz [Sun, 6 May 2012 19:54:06 +0000 (12:54 -0700)]
Merge pull request #590 from berkerpeksag/doc-links

Fixed broken links in TODO docs.

12 years agoFixed broken links in TODO docs.
Berker Peksag [Sun, 6 May 2012 19:26:28 +0000 (22:26 +0300)]
Fixed broken links in TODO docs.

12 years agoMerge pull request #585 from chazapis/develop
Kenneth Reitz [Fri, 4 May 2012 18:49:49 +0000 (11:49 -0700)]
Merge pull request #585 from chazapis/develop

Fix out-of-range issue with iter_lines (#515).

12 years agoMerge pull request #587 from slingamn/jenkins
Kenneth Reitz [Fri, 4 May 2012 18:48:35 +0000 (11:48 -0700)]
Merge pull request #587 from slingamn/jenkins

unbreak the Jenkins build by excluding ./env/*

12 years agounbreak the Jenkins build by excluding ./env/*
Shivaram Lingamneni [Fri, 4 May 2012 11:45:30 +0000 (04:45 -0700)]
unbreak the Jenkins build by excluding ./env/*

12 years agoMerge pull request #579 from slingamn/pyflakes.release
Kenneth Reitz [Fri, 4 May 2012 06:29:04 +0000 (23:29 -0700)]
Merge pull request #579 from slingamn/pyflakes.release

Changes for #574

12 years agoMerge pull request #581 from crodjer/develop
Kenneth Reitz [Fri, 4 May 2012 06:28:07 +0000 (23:28 -0700)]
Merge pull request #581 from crodjer/develop

A utility for using environment proxies