<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I'm using a WFS Wrapper written in PHP with following Code (MS
Version 7.x):<br>
...<br>
<br>
try {<br>
$oMap = ms_newMapobj($mymapfile);<br>
} catch (Exception $e) {<br>
echo '<strong>Exception:</strong> ',
$e->getMessage(), "\n";<br>
ms_ioresethandlers();<br>
$oMap->free();<br>
unset($oMap); <br>
exit;<br>
}<br>
<br>
$request = ms_newowsrequestobj();<br>
<br>
<br>
<div class="moz-signature">
foreach ($_GET as $k=>$v) {<br>
$request->setParameter($k, $v);<br>
}<br>
<br>
foreach ($_POST as $k=>$v) {<br>
$request->setParameter($k, $v);<br>
}<br>
<br>
$oMap->owsdispatch($request); <br>
$contenttype = ms_iostripstdoutbuffercontenttype();<br>
<br>
//Objekt reset<br>
$oMap->free();<br>
unset($oMap);<br>
<br>
$buffer = ms_iogetstdoutbufferstring();<br>
header('Content-Type: application/xml; charset=utf-8');<br>
echo $buffer; <br>
<br>
...<br>
<br>
this works fine with GET Request or Post Requests sent from a
form.<br>
I have a problem with data I send over the body of a POST request.<br>
So I can get to the data and hand it over, but how?<br>
$postBody = file_get_contents('php://input'); <br>
<br>
I've already tested it with <br>
<span class="nv">$request</span><span class="o">-></span><span
class="na">loadparams</span><span class="p">();<br>
<br>
Any idea?<br>
Thanks Sven<br>
</span></div>
</body>
</html>