Matt Wilson schrieb:
> I'm working with the cherrypy.request.rfile object.
>
> When I call read(), it blocks and then times out. How do I get the
> post body, when the client doesn't specify the content length?
A client which does not supply the content-length for a POST request is
not HTTP 1.0 compliant. From the RFC [1]:
"A valid Content-Length is required on all HTTP/1.0 POST requests. An
HTTP/1.0 server should respond with a 400 (bad request) message if it
cannot determine the length of the request message's content."
For a somewhat related problem see this ticket:
http://trac.turbogears.org/ticket/1953
Chris
[1] http://tools.ietf.org/html/rfc1945#section-8.3
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---