[issue1491] BaseHTTPServer incorrectly implements response code 100

2013-09-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1491 ___ ___ Python-bugs-list mailing list

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-30 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed and committed in revision 85125. Actually, this changes the behavior of BaseHTTPServer a little and adds two new methods to the code, so I don't think, this should be back-ported to 2.7 and 3.1. If older code were to encounter the

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-22 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1491 ___ ___

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-18 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: Removed file: http://bugs.python.org/file10269/BaseHTTPServer_continue.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1491 ___

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-18 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: Removed file: http://bugs.python.org/file10278/BaseHTTPRequestHandlerTestCase.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1491 ___

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-18 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: Removed file: http://bugs.python.org/file10684/BaseHTTPServer_continue_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1491 ___

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-18 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1491 ___

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-05-31 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1491 ___ ___ Python-bugs-list mailing

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-03-25 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Poking the issue with an updated patch for trunk. -- Added file: http://bugs.python.org/file16652/BaseHTTPServer_continue_3.patch ___ Python tracker rep...@bugs.python.org

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-03-25 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: And a py3k version (although the conversion can be improved). -- Added file: http://bugs.python.org/file16653/BaseHTTPServer_continue_3_py3k.patch ___ Python tracker rep...@bugs.python.org

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-03-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1491 ___ ___ Python-bugs-list mailing

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-06-21 Thread Neil Muller
Neil Muller [EMAIL PROTECTED] added the comment: The attached patch is against recent svn (r64442), and adds samwyse's refactoring of the class. The test for server responses is made less restrictive when the request isn't HTTP/1.1. -- nosy: +Neil Muller Added file:

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-11 Thread Simon Cross
Changes by Simon Cross [EMAIL PROTECTED]: -- nosy: +hodgestar __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1491 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread Jeremy Thurgood
Jeremy Thurgood [EMAIL PROTECTED] added the comment: Added handling for Expect: 100-continue header to BaseHTTPRequestHandler. By default, any request that has this header gets a 100 Continue response (with no other headers) before do_WHATEVER() is called. By overriding handle_expect_100(), you

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread Jeremy Thurgood
Jeremy Thurgood [EMAIL PROTECTED] added the comment: The above patch adds a set of tests for BaseHTTPServer, although the only tests actually written were those around the areas touched by the work done for this issue. __ Tracker [EMAIL PROTECTED]

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread samwyse
samwyse [EMAIL PROTECTED] added the comment: Although any given implementation of an HTTP server is likely to serve up its headers in a predicable, repeatable, order, I don't think that we should specify a particular order in the test suite. Section 4.2 of RFC 2616 specifically states, The

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread samwyse
samwyse [EMAIL PROTECTED] added the comment: In the attached file, I've refactored the entire BaseHTTPRequestHandlerTestCase class. In doing so, I couldn't help but notice that we're expecting HTTP/1.1 responses when sending HTTP/1.0 requests. RFC 2616 is unclear about whether this is

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-01-05 Thread vila
Changes by vila: -- nosy: +vila __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1491 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Something for the bug day on Jan 19. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1491 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1491] BaseHTTPServer incorrectly implements response code 100

2007-12-06 Thread samwyse
samwyse added the comment: Refactoring sounds like a good idea. Someone would need to check how other web servers log this, if at all. You're probably right about the HTTP/0.9 as well. The main reason to send a 100 response is because the client sent an Expect: 100-continue header, and won't

[issue1491] BaseHTTPServer incorrectly implements response code 100

2007-11-26 Thread Guido van Rossum
Guido van Rossum added the comment: I'm not sure I understand why anyone would ever want to send a 100 response anyway. If I were to add support for this, I'd probably refactor send_response() so that there's a lower-level function send_response_only() that *only* sends the response header and

[issue1491] BaseHTTPServer incorrectly implements response code 100

2007-11-23 Thread samwyse
New submission from samwyse: RFC 2616 sec 8.2.3 states, An origin server that sends a 100 (Continue) response MUST ultimately send a final status code, once the request body is received and processed, unless it terminates the transport connection prematurely. The obvious way to do this is to