Kenneth Reitz
ce595d4da7
Merge pull request #983 from jszakmeister/allow-strict
...
Add the ability to turn off HTTP 0.9 support.
2012-12-02 08:43:31 -08:00
John Szakmeister
ed642cfb6d
Add the ability to turn off HTTP 0.9 support.
...
While debugging an issue I discovered requests was coming back with 200
response, when it really shouldn't have. It turns out this happened for
two reasons: the jetty server running the app was rather lame and
didn't fail the request as a Bad Request, and httplib was happy to let
malformed data through and call it success.
It turns out httplib's strict flag controls this behavior of whether or
not to validate the status line. The underlying urllib3 supports the
concept as well. There was a bug there to that is now fixed upstream.
The last step is exposing this through requests. This introduces a
supports_http0.9 flag to help control this behavior. It defaults to
to True to preserve the current behavior. Setting it to False will
allow the underlying HTTPConnection to validate the status line.
2012-12-02 11:25:18 -05:00
Kenneth Reitz
f553857beb
remove safe mode
2012-11-27 12:42:11 -08:00
Kenneth Reitz
71898bb793
chardet2 is magic
2012-11-27 12:36:29 -08:00
Kenneth Reitz
1b70385d4a
change default accept-encoding
...
http://blogs.operationaldynamics.com/andrew/software/research/testing-re
stful-apis-with-httpie
2012-09-23 12:41:54 -05:00
Alan Hamlett
861e63ce8e
fixed typo in docs
2012-09-09 01:56:32 -07:00
Donald Stufft
21f60fe8df
Move the user agent generation into it's own utility function
2012-07-08 00:47:24 -04:00
Donald Stufft
523433f26c
Readd default that was accidently removed
2012-07-08 00:37:23 -04:00
Donald Stufft
11433d942d
Include the system name and version in the default user agent
2012-07-07 16:13:39 -04:00
Donald Stufft
982268a201
Include the implementation and implementation version number in the default User-Agent
2012-07-07 16:08:22 -04:00
Arup Malakar
b28673368b
Issue #505 : Changed the store_cookie configuration to be part of the config dict, instead of being a new argument
2012-05-23 14:12:18 -07:00
Kenneth Reitz
e831947be4
strict mode for #269
2012-03-30 23:15:31 -04:00
Kenneth Reitz
e15ae8f9a7
v0.10.8
2012-03-09 07:55:54 -08:00
Kenneth Reitz
946f7ec579
percent encoded
2012-03-07 16:50:02 -08:00
Kenneth Reitz
cf5ddecc4c
encode_uri
2012-03-07 16:28:04 -08:00
Kenneth Reitz
09b6aef835
encode urls setting
2012-03-07 16:13:34 -08:00
Kenneth Reitz
fe10eeb5be
SCHEMAS
2012-02-20 12:25:53 -05:00
Kenneth Reitz
efd2b57b92
cleanup docs for request defaults
2012-01-21 01:44:57 -05:00
Kenneth Reitz
6d071f4331
kill decode_unicode config
2012-01-21 01:23:35 -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
Nick Hatch
a6412b02ba
Fix spelling errors, typos.
2011-12-11 01:58:55 -06:00
Kenneth Reitz
02408973c6
keep-alive as config option only
...
better defaults
2011-11-12 12:47:11 -08:00
Kenneth Reitz
50279dd83c
Remove timeout configuration
2011-11-12 10:00:30 -08:00
Kenneth Reitz
ce42b338f4
Configurations
2011-11-09 17:16:03 -08:00
Kenneth Reitz
e725f30625
document defaults
2011-11-09 16:52:27 -08:00
Kenneth Reitz
0c4b973dcf
keep_alive is now disable-able!
2011-11-09 15:54:24 -08:00
Kenneth Reitz
99f0ef4766
add safe_mode for @bitprophet :)
2011-11-09 15:46:01 -08:00
Kenneth Reitz
6a51f6b2f8
add 'max_retries' configuration
2011-11-09 15:30:33 -08:00
Kenneth Reitz
5b54b3e53f
Merge branch 'develop' into feature/rewrite
...
Conflicts:
requests/__init__.py
2011-10-27 00:57:03 -04:00
Kenneth Reitz
6140fac6aa
Default Accept header, a la curl
2011-10-25 16:10:49 -04:00
Kenneth Reitz
28a9534383
add pool configurations to defaults
2011-10-23 18:15:02 -04:00
Kenneth Reitz
4916b1c2ce
pep8
2011-10-23 14:44:26 -04:00
Kenneth Reitz
1a4dfad52d
mod string formatting for 2.5
2011-10-22 21:33:00 -04:00
Kenneth Reitz
0ee6c1fa68
kill accept_gzip config
2011-10-22 20:55:46 -04:00
Kenneth Reitz
4dc48b6521
_config => defaults
2011-10-22 20:25:27 -04:00