Commit Graph

64 Commits

Author SHA1 Message Date
Shivaram Lingamneni 4d6871d917 Further changes to move cookies to CookieJar 2012-05-01 17:00:19 -07:00
Kenneth Reitz a7da521a62 merge conflict 2012-04-22 22:26:53 -04:00
Shivaram Lingamneni b4eb8663af prefer certifi's bundle to the OS bundle 2012-04-22 18:43:59 -07:00
Shivaram Lingamneni e1528ce3be add the FreeBSD certificate bundle path 2012-04-19 14:27:26 -07:00
Shivaram Lingamneni 9921099546 Try to use the OS's CA certificate bundle for SSL verification 2012-04-16 15:28:31 -07:00
Jonty Wareing 06e4971fe7 Rewrite unquote_unreserved based on urllib.unquote
This is almost entirely taken from the unquote implementation in urllib,
slightly modified for the case in hand. It now deals with invalid %encodings
rather than exploding, and the code is somewhat simpler.
2012-04-11 14:56:19 +00:00
Kenneth Reitz 171b370b0e app engine #498 2012-03-31 03:08:12 -04:00
Kenneth Reitz fff5269d1a Fix app engine error for #498 2012-03-30 23:15:43 -04:00
Kenneth Reitz 0dd6c40205 dict sequence 2012-03-13 16:42:16 -07:00
Kenneth Reitz d078b69aef catch cookie errors that are prone to failure 2012-03-09 08:56:41 -08:00
Kenneth Reitz f0e0a62bbe Merge branch 'develop' of https://github.com/honzajavorek/requests into develop 2012-02-25 23:14:49 -05:00
Kenneth Reitz e18e79d820 python3 fix 2012-02-24 00:44:01 -05:00
Honza Javorek 09c0365255 str is redefined in compat module, but was not imported 2012-02-23 23:51:59 +01:00
Honza Javorek 1661bf6543 get_unicode_from_response returned str instead of unicode 2012-02-23 17:28:56 +01:00
Ben 572c15d049 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.
2012-02-21 15:53:33 -06:00
Kenneth Reitz fd7610dd7a python 3 unicode grr 2012-02-20 16:07:36 -05:00
Kenneth Reitz b0e1865073 netrc fix 2012-02-20 15:43:45 -05:00
Kenneth Reitz 79bb9ee141 netrc parsing 2012-02-20 15:35:19 -05:00
Kenneth Reitz 4f75f1f41d Values can be none #433 2012-02-20 12:30:12 -05:00
Kenneth Reitz fe10eeb5be SCHEMAS 2012-02-20 12:25:53 -05:00
Cory Benfield 640538adcb Fail if unsupported schemas are used.
requests only supports http and https. This change enforces that.
2012-02-16 20:20:20 +00:00
Kenneth Reitz b5212ddc3d remove bunk utils for decoding 2012-02-15 03:09:40 -05:00
Kenneth Reitz e663c77e70 fix bytes 2012-02-15 02:54:00 -05:00
Kenneth Reitz 00b13673e3 simplify 2012-02-15 02:28:58 -05:00
Kenneth Reitz 1b6f1b091c Merge branch '400-header_expand-unicode' of https://github.com/acdha/requests into develop 2012-02-15 01:25:29 -05:00
Matt Giuca b8298b0710 Rename utils.requote_path to requote_uri.
It is now applied to a whole URI, not just the path.
2012-02-15 12:03:08 +11:00
Matt Giuca 1ffce4f7dc Simplify requote_path.
It no longer needs to split on '/' since '/' will not be encoded.
2012-02-14 12:57:49 +11:00
Matt Giuca fcac1c3746 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.
2012-02-14 12:51:03 +11:00
Matt Giuca cf54f60367 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.
2012-02-14 11:50:02 +11:00
Chris Adams 0a17badb21 header_expand: handle Unicode strings (closes #400) 2012-02-13 11:10:05 -05:00
Greg Taylor f8b3141204 Use basestring instead of str to determine when to return headers as-is. This makes sure that unicode instances aren't enumerated. 2012-02-05 13:57:35 -05:00
Kenneth Reitz e7bcc3b332 oh snap 2012-01-23 01:32:09 -05:00
Kenneth Reitz b001fcf968 SimpleCookie 2012-01-23 01:02:16 -05:00
Kenneth Reitz 11c4315da3 good 2012-01-23 00:43:01 -05:00
Kenneth Reitz b0e2e4f284 blah 2012-01-23 00:15:25 -05:00
Johannes Gorset a0ae2e6c7b Default the encoding of "text" media subtypes to "ISO-8859-1"
Ref. RFC2616 (HyperText Transfer Protocol), section 3.7.1 (Canonicalization and Text Defaults).
2012-01-21 11:01:45 +01:00
Chase Sterling 9c6ffc5303 Refactor stream_decode_gzip and _deflate into one function, stream_decompress.
stream_decompress will now iterate over the raw data if there is a problem with decompression
Remove gzip decoding from Response.content, as urllib3 was doing it anyway.
2011-12-30 22:18:08 -05:00
Chase Sterling f80984f377 Implement automatic deflating when using response.iter_content. refs #327
Refactor response.iter_lines to use responset.iter_content.
2011-12-30 18:55:56 -05:00
Nick Hatch a6412b02ba Fix spelling errors, typos. 2011-12-11 01:58:55 -06:00
Kenneth Reitz 6421ec1784 iter_content uses new encoding system 2011-11-19 16:12:38 -05:00
Ryan Kelly f7fdfe8b9a Correct handling of URLs with quoted slashes. 2011-11-17 11:00:02 +11:00
Kenneth Reitz 0086f97b65 Guess filename.
Closes #192
2011-11-13 00:36:22 -05:00
Kenneth Reitz 9966017a49 Add new utilities from werkzeug 2011-10-23 14:46:58 -04:00
travis 055f7c1eb6 Some Doc and doctoring fixes by the Speling Poleece. 2011-10-19 10:00:13 -05:00
Armin Ronacher 0d6773c68c Fail silently if encoding header is missing 2011-09-03 18:04:51 +02:00
Armin Ronacher 41876fd8c6 Implemented content streaming for responses. 2011-09-03 17:59:30 +02:00
Kenneth Reitz 6d25fff3f9 Added Josselin Jacquard to AUTHORS 2011-08-30 23:58:31 -04:00
Josselin Jacquard 1ecb593c7b Fix a bug when content-type is empty 2011-08-30 12:04:48 +02:00
Kenneth Reitz dba7a5a7e2 shortcut strings 2011-08-28 03:22:20 -04:00
Kenneth Reitz 3b9fc987b8 cleanup 2011-08-28 03:09:26 -04:00