Commit Graph

159 Commits

Author SHA1 Message Date
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
Kenneth Reitz c0d8e8e846 models cleanup 2011-11-12 12:48:28 -08:00
Kenneth Reitz 7c206c74ba Timeouts for urllib3 2011-11-12 10:01:05 -08:00
Kenneth Reitz d1b6db05a4 prefetch handling for _content_consumed 2011-11-09 17:56:29 -08:00
Kenneth Reitz 87239802c1 proxy pooling! 2011-11-09 17:50:36 -08:00
Kenneth Reitz bd45bc716a add prefetch to main request distpatch 2011-11-09 17:46:19 -08:00
Kenneth Reitz 2131ba4dda check! 2011-11-09 16:26:36 -08:00
Kenneth Reitz 7a1a40e445 ultra cookie compatibility 2011-11-09 16:26:15 -08:00
Kenneth Reitz 52a95cb93a header and cookie fixes for redirects 2011-11-09 16:24:48 -08:00
Kenneth Reitz 0c4b973dcf keep_alive is now disable-able! 2011-11-09 15:54:24 -08:00
Kenneth Reitz 7192b8022e import ConnectionError 2011-11-09 15:47:09 -08:00
Kenneth Reitz 147c24154e better defaults for "models" 2011-11-09 15:46:45 -08:00
Kenneth Reitz 35ed9b5f38 dict(o or []) 2011-11-09 15:44:55 -08:00
Kenneth Reitz 6a51f6b2f8 add 'max_retries' configuration 2011-11-09 15:30:33 -08:00
Kenneth Reitz c48f0d990f Merge branch 'develop' into feature/rewrite
Conflicts:
	requests/__init__.py
	test_requests.py
2011-11-09 15:13:38 -08:00
Kenneth Reitz 498b446f14 Models cleanup 2011-11-09 14:57:00 -08:00
Kenneth Reitz bd562a7ab3 Merge branch 'develop' of https://github.com/davidfischer/requests into develop 2011-11-04 23:28:21 -04:00
Kenneth Reitz f7968b6797 r.content is None of there's an invalid response.
Fixes #236
2011-11-04 23:24:38 -04:00
David Fischer 3efd5dbab4 A cleaner and more complete fix for auth/redirects 2011-11-03 08:05:55 -07:00
David Fischer eaf1264879 Fixes an issue with auth and redirects 2011-11-02 23:29:31 -07:00
Kenneth Reitz b8c55da48d stuff and things and stuff 2011-10-27 01:08:51 -04:00
Kenneth Reitz 8b9f689ecc Merge branch 'develop' into feature/rewrite
Conflicts:
	requests/__init__.py
	requests/models.py
2011-10-24 10:09:36 -04:00
Kenneth Reitz 428fc9c0bd PASS ALL TEH TESTS 2011-10-24 01:46:05 -04:00
Kenneth Reitz d04f31b302 HTTPError 2011-10-23 18:33:27 -04:00
Kenneth Reitz a548b6249d HTTPError 2011-10-23 18:27:54 -04:00
Kenneth Reitz a9822b0bb6 fix content uploads 2011-10-23 18:24:14 -04:00
Kenneth Reitz 3d3f05884f use new system 2011-10-23 18:15:21 -04:00
Kenneth Reitz c108c5300f No mo' HttpError 2011-10-23 17:18:46 -04:00
Kenneth Reitz dac050bf40 New status_code-based errors 2011-10-23 16:36:53 -04:00
Kenneth Reitz b88fbb5e0c KILL THE AUTH HANDLERS 2011-10-23 14:49:59 -04:00