Apache Mod-Python - Resolved: (MODPYTHON-153) Add req.discard_request_body().

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > April 2006 > Resolved: (MODPYTHON-153) Add req.discard_request_body().





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Resolved: (MODPYTHON-153) Add req.discard_request_body().
Graham Dumpleton (JIRA)

2006-04-02, 6:58 pm

[ http://issues.apache.org/jira/brows...ON-153?page=all ]

Graham Dumpleton resolved MODPYTHON-153:
----------------------------------------

Fix Version: 3.3
Resolution: Fixed

New function added, but decision as to whether this function should be called by mod_python.publisher and mod_python.psp for a GET request defered to another time and to be dealt with as separate issue if need be.

> Add req.discard_request_body().
> -------------------------------
>
> Key: MODPYTHON-153
> URL: http://issues.apache.org/jira/browse/MODPYTHON-153
> Project: mod_python
> Type: New Feature


> Components: core
> Reporter: Graham Dumpleton
> Assignee: Graham Dumpleton
> Fix For: 3.3


>
> In HTTP/1.1 any method may include a request body, whereas in HTTP/1.0 only POST and PUT were allowed to. To avoid any potential problems if a handler were trying to emulate in part the default Apache handler for requests, in would be appropriate for a

handler to ensure that any request body is discarded. Apache provides a function specifically for this purpose which is called ap_discard_request_body(). For completeness this function should be available in the request object API as req.discard_request_b
ody().

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com