Commit Graph

188 Commits

Author SHA1 Message Date
Ronny Pfannschmidt 5cfbb0aaf5 insanity for chunked iteration 2012-01-17 13:16:09 +01:00
Ronny Pfannschmidt 29271a4100 make Response.iter_lines yield the pending buffer if its actually a complete line 2012-01-17 12:47:22 +01:00
Piotr Dobrogost bbbeedb0a2 fixes issue #349 2012-01-10 16:47:21 +01:00
Ben Edwards a25141f9f4 Fix syntax error in last commit. 2012-01-06 13:52:49 -07:00
Jonas Obrist 3415e6de0b Give a more useful error message when the URL supplied does not contain a schema. 2012-01-06 16:20:33 +01:00
Kenneth Reitz c6fc7d99b5 Merge branch 'develop' of https://github.com/gazpachoking/requests into develop 2012-01-06 01:08:06 -05:00
Bryan Helmig 459a91c54f highway to the danger_mode 2012-01-05 12:50:44 -06:00
Bryan Helmig 115b51e68c add eager mode for raising errors immediately 2012-01-04 22:08:01 -06:00
Chase Sterling 5174ab4325 Make sure newlines at chunk borders do not get dropped using iter_lines. 2012-01-03 00:38:59 -05:00
Chase Sterling 95911f059a Refactor r.iter_lines to retrieve more than one byte at a time.
Fixes universal line ending handling, but takes away ability to specyfy
custom line endings.
2012-01-02 16:19:35 -05: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
Kenneth Reitz 544a5fea59 more info 2011-12-28 02:51:49 -05:00
Kenneth Reitz 5184f0c5a9 SSL support! 2011-12-28 02:43:13 -05:00
Ori Livneh e1615e0f1e Make safe_mode handle exceptions more consistently 2011-12-23 16:14:46 -05:00
Ori Livneh 716d29c49c fix iteration on null responses in safe_mode 2011-12-22 21:10:43 -05:00
Ori Livneh a7223f86a9 Undo stupid change to while loop 2011-12-22 17:51:22 -05:00
Ori Livneh 2c0ff95d4d Revert "Revert "Make safe_mode play nice with timeout (fixes #312)""
This reverts commit 91766548d1.
2011-12-22 17:50:43 -05:00
Ori Livneh 91766548d1 Revert "Make safe_mode play nice with timeout (fixes #312)"
This reverts commit 805c4db55413c96c5d6e0f95560119c000f660c9.
2011-12-22 17:42:57 -05:00
Ori Livneh 12f3c65e5a Make safe_mode play nice with timeout (fixes #312) 2011-12-22 16:52:29 -05:00
Kenneth Reitz f5e421e880 1 instead of True
#313
2011-12-22 11:55:55 -05:00
Ori Livneh f214b91d77 fix bug that causes iter_lines to truncate content
Currently, if the response does not terminate with a newline, iter_lines
truncates the trailing remainder.
2011-12-20 02:01:37 -05:00
Christopher Davis 4e2ecd6987 Fixed some tab/spaces mixed issues 2011-12-17 13:48:40 -06:00
Christopher Davis 814e0520ad Add Proxy Authorization support 2011-12-17 13:40:04 -06:00
Kenneth Reitz 6fb2674446 iter_lines! 2011-12-14 10:37:40 -05:00
Kenneth Reitz fad9abfd77 Merge remote-tracking branch 'origin/develop' into develop 2011-12-11 11:26:16 -05:00
Kenneth Reitz a5f79712bb Fix for #303 2011-12-11 11:26:13 -05:00
Nick Hatch a6412b02ba Fix spelling errors, typos. 2011-12-11 01:58:55 -06:00
Kenneth Reitz c7b99f7819 Set Response.sent to True
Fixes #291
2011-11-27 11:29:52 -05:00
Kenneth Reitz a7a619ba5c Merge branch 'auth_callables' of https://github.com/idangazit/requests into develop
Conflicts:
	requests/models.py
2011-11-26 10:14:14 -05:00
Robert Gieseke 8ae4b440e3 Display full URL when logging. 2011-11-20 10:14:51 +01:00
Idan Gazit 1933d3c707 Added support for HTTP Basic Auth credentials in 2-tuple 2011-11-19 23:59:27 +02:00
Kenneth Reitz 296d8cc097 new (elegant) request decoding model.
Closes #282
2011-11-19 16:09:20 -05:00
Kenneth Reitz bbf1021156 import cleanup 2011-11-19 15:45:45 -05:00
Kenneth Reitz 8ffe17cb09 use monkey patched cookies 2011-11-19 15:43:46 -05:00
Kenneth Reitz 5309ad005f cookies are oreos 2011-11-19 15:15:51 -05:00
Kenneth Reitz 16aa01420b Merge branch 'develop' of https://github.com/darkrho/requests into develop 2011-11-18 15:33:20 -05:00
Ryan Kelly 3900243297 Dont use requote_path when dealing with redirects.
This was breaking redirect locations with a query string, by quoting the
question-mark.  Since the path will be passed through requote_path on
the next request anyway, doing it here seems unnecessary.
2011-11-18 09:03:28 +11:00
Idan Gazit 7fdb09b766 Converted auth to use callable objects instead of tuples.
My attempt to address #275 on kennethreitz/requests.
2011-11-17 13:44:13 +02:00
Ryan Kelly f7fdfe8b9a Correct handling of URLs with quoted slashes. 2011-11-17 11:00:02 +11:00
Rolando Espinoza La fuente 89241c525e use ";" instead "\r\n" as separator for cookies as is better supported
in odd web servers.
2011-11-16 00:04:48 -04:00
Rolando Espinoza La fuente bf499a80de added support for explicit filenames in files parameter.
files = {
    "files[]": ("myfile", open("foo")),
}
2011-11-16 00:03:19 -04:00
Kenneth Reitz 4504953212 Only send URL path to servers
Closes #256
2011-11-15 09:52:42 -05:00
ben 7c66e6f267 fixed: 301 request does not use proxy. 2011-11-15 15:53:38 +08:00
ben 35b0c5e16e fixed proxy 2011-11-15 10:59:39 +08:00
Raymond Penners f0edd4a3e0 Pass along timeout when following redirects (closes #263) 2011-11-14 10:04:07 +01:00
Kenneth Reitz bcc48a9607 whatespace 2011-11-13 00:43:14 -05:00
Kenneth Reitz 0086f97b65 Guess filename.
Closes #192
2011-11-13 00:36:22 -05:00
Kenneth Reitz 2584c48e8d python2.5 cookie support 2011-11-12 16:47:40 -05:00
Kenneth Reitz 6a23625c11 give Request session reference for parameter+redirects 2011-11-12 12:57:32 -08:00