Bug Report #3693

HTTP POST requests are allowed to contain a body per RFC2616

Added by Kiall Mac Innes over 1 year ago. Updated over 1 year ago.

Status:Closed Start date:02/04/2011
Priority:Normal Due date:
Assignee:Kiall Mac Innes % Done:

100%

Category:Core
Target version:v3.1.0
Resolution:fixed Points:

Description

HTTP POST Requests are allowed to contain a entity-body per RFC2616

This code in the Request class prevents consistent access to the body.

if ($method !== 'GET' AND $method !== 'POST')
{
    // Ensure the raw body is saved for future use
    $body = file_get_contents('php://input');
}

Associated revisions

Revision 69ebbf2a
Added by Kiall Mac Innes over 1 year ago

Fixes #3693 - HTTP POST requests are allowed to contain a body per RFC2616

History

Updated by Kiall Mac Innes over 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100
  • Resolution set to fixed

Fixed in 69ebbf2

Also available in: Atom PDF