[*]WS: POST and XML ressource

This commit is contained in:
PrestaEdit
2013-03-18 01:03:43 +01:00
parent e5e6e8c29c
commit 47d3085a4a

View File

@@ -66,8 +66,8 @@ else
// if no XML // if no XML
$input_xml = NULL; $input_xml = NULL;
// if a XML is in PUT // if a XML is in PUT or in POST
if ($_SERVER['REQUEST_METHOD'] == 'PUT') if (($_SERVER['REQUEST_METHOD'] == 'PUT') || ($_SERVER['REQUEST_METHOD'] == 'POST'))
{ {
$putresource = fopen("php://input", "r"); $putresource = fopen("php://input", "r");
while ($putData = fread($putresource, 1024)) while ($putData = fread($putresource, 1024))
@@ -113,4 +113,4 @@ if (isset($result['type']))
} }
} }
ob_end_flush(); ob_end_flush();