services/python-requests.git
11 years agosession object should be uppercase
Kwpolska [Sat, 20 Jul 2013 11:39:50 +0000 (13:39 +0200)]
session object should be uppercase

Signed-off-by: Kwpolska <kwpolska@gmail.com>
11 years agofixed underline
Kwpolska [Sat, 20 Jul 2013 11:31:37 +0000 (13:31 +0200)]
fixed underline

Signed-off-by: Kwpolska <kwpolska@gmail.com>
11 years agoGrammar fixes and such
Kwpolska [Sat, 20 Jul 2013 10:56:25 +0000 (12:56 +0200)]
Grammar fixes and such

Signed-off-by: Kwpolska <kwpolska@gmail.com>
11 years agoSome cosmetic updates to the docs
Kwpolska [Sat, 20 Jul 2013 10:12:57 +0000 (12:12 +0200)]
Some cosmetic updates to the docs

Signed-off-by: Kwpolska <kwpolska@gmail.com>
11 years agoMerge pull request #1470 from Lukasa/carset
Cory Benfield [Fri, 19 Jul 2013 13:45:56 +0000 (06:45 -0700)]
Merge pull request #1470 from Lukasa/carset

Remove charset from JSON types: not valid.

11 years agoMerge pull request #1465 from dpursehouse/doc-netrc-authentication
Cory Benfield [Fri, 19 Jul 2013 13:45:17 +0000 (06:45 -0700)]
Merge pull request #1465 from dpursehouse/doc-netrc-authentication

Improve documentation of netrc authentication

11 years agoMove netrc authentication documentation under the Basic Auth section
David Pursehouse [Fri, 19 Jul 2013 13:37:53 +0000 (22:37 +0900)]
Move netrc authentication documentation under the Basic Auth section

11 years agoRemove charset from JSON types: not valid.
Cory Benfield [Fri, 19 Jul 2013 13:03:20 +0000 (14:03 +0100)]
Remove charset from JSON types: not valid.

11 years agoMerge pull request #1466 from s7v7nislands/fix_doc
Cory Benfield [Fri, 19 Jul 2013 11:12:29 +0000 (04:12 -0700)]
Merge pull request #1466 from s7v7nislands/fix_doc

Fix doc

11 years agomerge
s7v7nislands [Fri, 19 Jul 2013 09:12:01 +0000 (17:12 +0800)]
merge

11 years agofix doc
s7v7nislands [Fri, 19 Jul 2013 09:04:53 +0000 (17:04 +0800)]
fix doc

11 years agoImprove documentation of netrc authentication
David Pursehouse [Fri, 19 Jul 2013 08:22:11 +0000 (17:22 +0900)]
Improve documentation of netrc authentication

The documentation does not make it clear that when the credentials
from netrc are used, Requests authenticates with HTTP Basic Auth.

I just spent ages trying to figure out why it wasn't working, and
it was because although the credentials in the netrc were correct,
the server actually required HTTP Digest Auth.

Add a section in the authentication documentation to make it clear
that HTTP Basic Auth is used.

11 years agoMerge pull request #1464 from dpursehouse/document-none-not-sent
Cory Benfield [Fri, 19 Jul 2013 08:19:55 +0000 (01:19 -0700)]
Merge pull request #1464 from dpursehouse/document-none-not-sent

Fix #1322: Add note in docs about None not being sent as data

11 years agoFix #1322: Add note in docs about None not being sent as data
David Pursehouse [Fri, 19 Jul 2013 08:00:46 +0000 (17:00 +0900)]
Fix #1322: Add note in docs about None not being sent as data

In the case:

  payload = {'key1': 'value1', 'key2': 'value2', 'key3': None}
  r = requests.get("http://httpbin.org", params=payload)

the parameter `key3` will not be sent as a parameter in the URL.

Mention this in the documentation.

11 years agoMerge pull request #1463 from AudriusButkevicius/master
Kenneth Reitz [Thu, 18 Jul 2013 22:00:28 +0000 (15:00 -0700)]
Merge pull request #1463 from AudriusButkevicius/master

Update urllib3 to a43319f

11 years agoUpdate urllib3 to a43319f
Audrius Butkevicius [Thu, 18 Jul 2013 21:06:19 +0000 (21:06 +0000)]
Update urllib3 to a43319f

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 16 Jul 2013 06:20:28 +0000 (02:20 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agobadge.fury.io
Kenneth Reitz [Tue, 16 Jul 2013 06:20:23 +0000 (02:20 -0400)]
badge.fury.io

11 years agoMerge pull request #1440 from fcurella/patch-0
Kenneth Reitz [Mon, 15 Jul 2013 13:54:00 +0000 (06:54 -0700)]
Merge pull request #1440 from fcurella/patch-0

unquote double-quotes cookie values

11 years agoMerge pull request #1439 from voberoi/master
Kenneth Reitz [Mon, 15 Jul 2013 13:22:53 +0000 (06:22 -0700)]
Merge pull request #1439 from voberoi/master

Make sure netrc doesn't override any authentication settings explicitly set by the client

11 years agoMerge pull request #1441 from Lukasa/1395
Kenneth Reitz [Mon, 15 Jul 2013 13:22:41 +0000 (06:22 -0700)]
Merge pull request #1441 from Lukasa/1395

Remove urllib3-specific kwargs from non-urllib3 branch.

11 years agoMerge pull request #1456 from phndiaye/master
Kenneth Reitz [Mon, 15 Jul 2013 13:21:31 +0000 (06:21 -0700)]
Merge pull request #1456 from phndiaye/master

Changed the "im_used" informational status code for the value given by IANA (226)

11 years agoSet 208 status_code to "already_reported"
Philippe Ndiaye [Sat, 13 Jul 2013 09:08:01 +0000 (11:08 +0200)]
Set 208 status_code to "already_reported"

11 years agoChanged the "im_used" informational status code for the value given by IANA (226)
Philippe Ndiaye [Sat, 13 Jul 2013 07:55:50 +0000 (09:55 +0200)]
Changed the "im_used" informational status code for the value given by IANA (226)

See RFC 3229 at http://tools.ietf.org/html/rfc3229#section-10.4.1 and HTTP status codes at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml

11 years agoDelete invokefile.py
Kenneth Reitz [Sat, 6 Jul 2013 04:04:50 +0000 (14:04 +1000)]
Delete invokefile.py

11 years agoRemove urllib3-specific kwargs from general code
Cory Benfield [Thu, 4 Jul 2013 09:34:43 +0000 (10:34 +0100)]
Remove urllib3-specific kwargs from general code

11 years agoAdded myself to AUTHORS
Flavio Curella [Mon, 1 Jul 2013 20:54:59 +0000 (15:54 -0500)]
Added myself to AUTHORS

11 years agokeep the double quotes, but don't escape them
Flavio Curella [Mon, 1 Jul 2013 20:48:48 +0000 (15:48 -0500)]
keep the double quotes, but don't escape them

11 years agounquote double-quotes cookie values
Flavio Curella [Mon, 1 Jul 2013 18:49:43 +0000 (13:49 -0500)]
unquote double-quotes cookie values

11 years agoAdd test to verify .netrc authentication behavior.
Vikram Oberoi [Thu, 27 Jun 2013 21:16:42 +0000 (17:16 -0400)]
Add test to verify .netrc authentication behavior.

Here's what should happen:

- If no credentials are given, use netrc if there's a netrc entry.
- If credentials are given, they should override netrc.

11 years ago.netrc settings shouldn't blow away explicit auth settings on a session
Vikram Oberoi [Thu, 27 Jun 2013 20:43:40 +0000 (16:43 -0400)]
.netrc settings shouldn't blow away explicit auth settings on a session

11 years agoMerge pull request #1437 from lukaszb/patch-1
Cory Benfield [Thu, 27 Jun 2013 18:18:56 +0000 (11:18 -0700)]
Merge pull request #1437 from lukaszb/patch-1

Fixed wrong method call at streaming example

11 years agoFixed wrong method call at streaming example
Lukasz Balcerzak [Thu, 27 Jun 2013 11:37:39 +0000 (13:37 +0200)]
Fixed wrong method call at streaming example

405 is returned if POST request is performed to http://httpbin.org/stream/20

11 years agoMerge pull request #1435 from chinux23/master
Kenneth Reitz [Tue, 25 Jun 2013 22:49:04 +0000 (15:49 -0700)]
Merge pull request #1435 from chinux23/master

@1434 https://github.com/kennethreitz/requests/issues/1434

11 years ago@1434 Fix https://github.com/kennethreitz/requests/issues/1434
Chen Huang [Tue, 25 Jun 2013 22:38:59 +0000 (18:38 -0400)]
@1434 Fix https://github.com/kennethreitz/requests/issues/1434

11 years agoMerge pull request #1429 from Lukasa/docs
Cory Benfield [Mon, 24 Jun 2013 07:48:48 +0000 (00:48 -0700)]
Merge pull request #1429 from Lukasa/docs

Packaging warning, in via @andrewgross.

11 years agoPackaging warning, in via @andrewgross.
Cory Benfield [Sat, 22 Jun 2013 14:02:18 +0000 (15:02 +0100)]
Packaging warning, in via @andrewgross.

11 years agoMerge pull request #1425 from Lukasa/stream
Kenneth Reitz [Fri, 21 Jun 2013 09:23:10 +0000 (02:23 -0700)]
Merge pull request #1425 from Lukasa/stream

Use new urllib3 'stream' parameter.

11 years agoUse the new urllib3 stream generator.
Cory Benfield [Tue, 18 Jun 2013 16:53:28 +0000 (17:53 +0100)]
Use the new urllib3 stream generator.

11 years agoUpdate urllib3 to cffbd6b317
Cory Benfield [Tue, 18 Jun 2013 16:47:23 +0000 (17:47 +0100)]
Update urllib3 to cffbd6b317

11 years agoMerge pull request #1419 from kevinburke/exception-links
Kenneth Reitz [Sat, 15 Jun 2013 05:50:44 +0000 (22:50 -0700)]
Merge pull request #1419 from kevinburke/exception-links

Exception links

11 years agoAdd self to AUTHORS
Kevin Burke [Wed, 12 Jun 2013 22:56:10 +0000 (15:56 -0700)]
Add self to AUTHORS

11 years agoLink to the actual exception references
Kevin Burke [Wed, 12 Jun 2013 22:53:09 +0000 (15:53 -0700)]
Link to the actual exception references

Sphinx has a neat cross-referencing feature where if you include the tilde
character in front of a :py: class, it'll link to the full object but provide
only the last part of class name in the text. For more info see
http://sphinx-doc.org/domains.html#cross-referencing-syntax

11 years agoMerge pull request #1414 from jschneier/master
Kenneth Reitz [Wed, 12 Jun 2013 18:12:17 +0000 (11:12 -0700)]
Merge pull request #1414 from jschneier/master

fixed typo in docs

11 years agofix doc typo
Josh Schneier [Sun, 9 Jun 2013 15:14:05 +0000 (11:14 -0400)]
fix doc typo

11 years agoMerge pull request #1315 from reclosedev/fix-redirects
Kenneth Reitz [Sat, 8 Jun 2013 10:53:16 +0000 (03:53 -0700)]
Merge pull request #1315 from reclosedev/fix-redirects

Don't reuse the same prepared request for all redirects

11 years agoDon't reuse PreparedRequest on redirects
Roman Haritonov [Fri, 19 Apr 2013 06:13:36 +0000 (10:13 +0400)]
Don't reuse PreparedRequest on redirects

11 years agonew failing test_requests_in_history_are_not_overridden()
Roman Haritonov [Fri, 19 Apr 2013 06:12:34 +0000 (10:12 +0400)]
new failing test_requests_in_history_are_not_overridden()

11 years agoMerge pull request #1400 from jam/master
Kenneth Reitz [Sat, 8 Jun 2013 10:20:18 +0000 (03:20 -0700)]
Merge pull request #1400 from jam/master

Retrieve environment proxies using standard library functions

11 years agoMerge pull request #1334 from rcarz/master
Kenneth Reitz [Sat, 8 Jun 2013 10:18:25 +0000 (03:18 -0700)]
Merge pull request #1334 from rcarz/master

resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase

11 years agoMerge pull request #1385 from ViktorHaag/master
Kenneth Reitz [Sat, 8 Jun 2013 10:17:38 +0000 (03:17 -0700)]
Merge pull request #1385 from ViktorHaag/master

Cope with mixed-case URL schemes (like 'HTTP') by lower-ifying 'url' string before calling startswith() on it

11 years agoMerge pull request #1381 from expandrive/master
Kenneth Reitz [Sat, 8 Jun 2013 10:16:32 +0000 (03:16 -0700)]
Merge pull request #1381 from expandrive/master

Don't force chunked transfer on 0-length file-like object.

11 years agoMerge pull request #1392 from revolunet/patch-2
Kenneth Reitz [Sat, 8 Jun 2013 10:16:21 +0000 (03:16 -0700)]
Merge pull request #1392 from revolunet/patch-2

Update quickstart.rst

11 years agoMerge pull request #1408 from wasw100/master
Kenneth Reitz [Sat, 8 Jun 2013 10:14:32 +0000 (03:14 -0700)]
Merge pull request #1408 from wasw100/master

cookies.morsel_to_cookie morsel['expires'] can't be strtime, and morsel['max-age'] convert to expires problem repair

11 years agoMerge pull request #1412 from t-8ch/update_urllib3
Kenneth Reitz [Sat, 8 Jun 2013 10:13:34 +0000 (03:13 -0700)]
Merge pull request #1412 from t-8ch/update_urllib3

update urllib3 to 60ba176f5d

11 years agoMerge pull request #1413 from Lukasa/docs
Kenneth Reitz [Sat, 8 Jun 2013 10:13:14 +0000 (03:13 -0700)]
Merge pull request #1413 from Lukasa/docs

Assorted docs updates

11 years agoRemove development reference from docs sidebar.
Cory Benfield [Sat, 8 Jun 2013 10:10:07 +0000 (11:10 +0100)]
Remove development reference from docs sidebar.

11 years agoDocument blocking calls.
Cory Benfield [Sat, 8 Jun 2013 10:09:39 +0000 (11:09 +0100)]
Document blocking calls.

11 years agoupdate urllib3 to 60ba176f5d
Thomas Weißschuh [Sat, 8 Jun 2013 08:22:15 +0000 (08:22 +0000)]
update urllib3 to 60ba176f5d

11 years agocookies.morsel_to_cookie morsel['expires'] can't be strtime, and max-age convert...
wasw100 [Thu, 6 Jun 2013 16:02:45 +0000 (00:02 +0800)]
cookies.morsel_to_cookie morsel['expires'] can't be strtime, and max-age convert to expires problem repair

11 years agocookies.morsel_to_cookie(morsel) raise TypeError repaired.
wasw100 [Thu, 6 Jun 2013 11:15:09 +0000 (19:15 +0800)]
cookies.morsel_to_cookie(morsel) raise TypeError repaired.

morsel_to_cookie(mosel) method raise TypeError: create_cookie() got unexpected keyword arguments: ['path_specified', 'domain_specified', 'port_specified', 'domain_initial_dot'].

so we should remove these param from create_cookie(...)

11 years agoAdded myself to AUTHORS.
James Clarke [Sat, 1 Jun 2013 01:19:42 +0000 (18:19 -0700)]
Added myself to AUTHORS.

11 years agoUse urllib to retrieve environment proxies.
James Clarke [Sat, 1 Jun 2013 01:19:34 +0000 (18:19 -0700)]
Use urllib to retrieve environment proxies.

This has the added benefit of including proxies defined by the OS X System Configuration framework and in the Windows registry, rather than only checking os.environ.

11 years agoUpdate quickstart.rst
Julien Bouquillon [Wed, 29 May 2013 09:57:49 +0000 (12:57 +0300)]
Update quickstart.rst

rephrase misleading info about `raise_for_status`

11 years agorebased with upstream/master
Bob Carroll [Sun, 26 May 2013 21:46:36 +0000 (14:46 -0700)]
rebased with upstream/master

11 years agothis didn't merge properly
Bob Carroll [Wed, 1 May 2013 18:37:58 +0000 (11:37 -0700)]
this didn't merge properly

11 years agoadded assertion to test_uppercase_scheme_redirect for the response code
Bob Carroll [Wed, 1 May 2013 17:44:31 +0000 (10:44 -0700)]
added assertion to test_uppercase_scheme_redirect for the response code

11 years agoI probably should add my name too
Bob Carroll [Wed, 1 May 2013 06:31:16 +0000 (23:31 -0700)]
I probably should add my name too

11 years agoresolve_redirects now checks for a scheme before converting the scheme to lowercase...
Bob Carroll [Wed, 1 May 2013 06:17:18 +0000 (23:17 -0700)]
resolve_redirects now checks for a scheme before converting the scheme to lowercase, added tests or the scheme casing

11 years agoresolve_redirects no longer throws an InvalidSchema exception when the scheme is...
Bob Carroll [Mon, 29 Apr 2013 20:35:44 +0000 (13:35 -0700)]
resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase

11 years agov1.2.3 v1.2.3
Kenneth Reitz [Sat, 25 May 2013 16:48:10 +0000 (12:48 -0400)]
v1.2.3

11 years agoadded tests for mixed-case scheme URLs, changed adapters passing down URLs into urlli...
Viktor Haag [Fri, 24 May 2013 20:14:14 +0000 (16:14 -0400)]
added tests for mixed-case scheme URLs, changed adapters passing down URLs into urllib3 by lower-ifying them so that the underlying pool manager can effectively pool by scheme as dictionary key

11 years ago- fixed func call syntax on lower to lower()
Viktor Haag [Fri, 24 May 2013 18:01:30 +0000 (14:01 -0400)]
- fixed func call syntax on lower to lower()
- added test cases for trying to test GETS on mixed-case schemas

11 years agoLower-ify url before checking against prefix with startswith()
Viktor Haag [Fri, 24 May 2013 15:26:00 +0000 (11:26 -0400)]
Lower-ify url before checking against prefix with startswith()

11 years agoOnly switch to chunked if we don't know the length of a file like object. This fixes...
Jeff Mancuso [Thu, 23 May 2013 15:21:29 +0000 (11:21 -0400)]
Only switch to chunked if we don't know the length of a file like object. This fixes the case of trying to upload a 0-length file - chunked upload was being forced. Services like S3 that disallow chunked upload will fail.

11 years agoMerge remote-tracking branch 'origin/master' v1.2.2
Kenneth Reitz [Tue, 21 May 2013 21:43:53 +0000 (17:43 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agov1.2.2
Kenneth Reitz [Tue, 21 May 2013 21:43:13 +0000 (17:43 -0400)]
v1.2.2

11 years agoMerge pull request #1375 from t-8ch/fix_digest_auth
Kenneth Reitz [Tue, 21 May 2013 21:33:25 +0000 (14:33 -0700)]
Merge pull request #1375 from t-8ch/fix_digest_auth

don't replace 'Digest' in digest header value

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 21 May 2013 21:27:15 +0000 (17:27 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agonope
Kenneth Reitz [Tue, 21 May 2013 21:27:06 +0000 (17:27 -0400)]
nope

11 years agoMerge pull request #1376 from papaeye/master
Kenneth Reitz [Tue, 21 May 2013 21:25:49 +0000 (14:25 -0700)]
Merge pull request #1376 from papaeye/master

Fix typo, %t -> %r

11 years agoFix #1374
papaeye [Tue, 21 May 2013 19:30:19 +0000 (04:30 +0900)]
Fix #1374

11 years agodon't replace 'Digest' in digest header value
Thomas Weißschuh [Tue, 21 May 2013 17:48:30 +0000 (17:48 +0000)]
don't replace 'Digest' in digest header value

See https://github.com/kennethreitz/requests/issues/1358

11 years agoFix typo, %t -> %r
papaeye [Tue, 21 May 2013 17:20:51 +0000 (02:20 +0900)]
Fix typo, %t -> %r

11 years agoMerge pull request #1373 from ib-lundgren/unicode_fields_to_urllib
Kenneth Reitz [Tue, 21 May 2013 13:19:48 +0000 (06:19 -0700)]
Merge pull request #1373 from ib-lundgren/unicode_fields_to_urllib

Only pass unicode multipart fieldnames to urllib3.

11 years agoOnly pass unicode fieldnames to urllib3.
Ib Lundgren [Tue, 21 May 2013 08:46:28 +0000 (09:46 +0100)]
Only pass unicode fieldnames to urllib3.

11 years agoMerge pull request #1343 from gazpachoking/#1321
Kenneth Reitz [Tue, 21 May 2013 02:14:54 +0000 (19:14 -0700)]
Merge pull request #1343 from gazpachoking/#1321

Refactor merge_kwargs

11 years agoRefactor merge_kwargs for clarity and to fix a few bugs
Chase Sterling [Thu, 2 May 2013 16:46:59 +0000 (12:46 -0400)]
Refactor merge_kwargs for clarity and to fix a few bugs

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Mon, 20 May 2013 20:10:43 +0000 (16:10 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agov1.2.1 v1.2.1
Kenneth Reitz [Mon, 20 May 2013 20:10:23 +0000 (16:10 -0400)]
v1.2.1

11 years agoMerge pull request #1356 from Zoramite/ConnectionPoolArgs
Kenneth Reitz [Mon, 20 May 2013 20:05:02 +0000 (13:05 -0700)]
Merge pull request #1356 from Zoramite/ConnectionPoolArgs

Adding an argument to the adapter for passing a block argument

11 years agoMerge pull request #1361 from Lukasa/1360
Kenneth Reitz [Mon, 20 May 2013 20:04:08 +0000 (13:04 -0700)]
Merge pull request #1361 from Lukasa/1360

Always percent-encode location headers.

11 years agoMerge pull request #1370 from sigmavirus24/origin_req_host
Kenneth Reitz [Mon, 20 May 2013 19:57:38 +0000 (12:57 -0700)]
Merge pull request #1370 from sigmavirus24/origin_req_host

Add an extra property for Python 3.3

11 years agoAttempt a fix for @michaelhelmick
Ian Cordasco [Mon, 20 May 2013 14:58:03 +0000 (10:58 -0400)]
Attempt a fix for @michaelhelmick

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Fri, 17 May 2013 07:31:11 +0000 (09:31 +0200)]
Merge remote-tracking branch 'origin/master'

11 years agodownload image!
Kenneth Reitz [Fri, 17 May 2013 07:31:01 +0000 (09:31 +0200)]
download image!

11 years agoMerge pull request #1363 from dave-shawley/master
Kenneth Reitz [Fri, 17 May 2013 06:23:04 +0000 (23:23 -0700)]
Merge pull request #1363 from dave-shawley/master

Fix for #1362

11 years agoFix for #1362.
Dave Shawley [Thu, 16 May 2013 15:22:35 +0000 (11:22 -0400)]
Fix for #1362.

`PreparedRequest.prepare_url` incorrectly applied IDNA encoding to the
URLs entire `netloc`.  It should only be encoding the hostname portion
of the URL.  IDNA encoding was limiting the user info, host, and port
segments to be a maximum of 63 characters which causes problems for
all by the most trivial user + password combinations.

- Replaced usage of `urlparse` in `PreparedRequest.prepare_url` with
  `urllib3` equivalent.
- Modified IDNA encoding section so that it only encodes the host
  portion of the URL.

11 years agoAlways percent-encode location headers.
Cory Benfield [Thu, 16 May 2013 10:58:18 +0000 (11:58 +0100)]
Always percent-encode location headers.

11 years agoMerge pull request #1327 from ambv/adapter_order
Kenneth Reitz [Wed, 15 May 2013 16:43:57 +0000 (09:43 -0700)]
Merge pull request #1327 from ambv/adapter_order

Fixes #1320: transport adapters stored in ordered form