[mapserver-users] Re: Post body is short

Håkon Åmdal hawk at aamdal.com
Sun Dec 18 16:35:36 EST 2011


Hi all,

I found a solution, actually quite simple: Adding all the parameters
manually.

           $oRequest = new OWSRequestObj();
	foreach ($_REQUEST as $k=>$v) {
	    $oRequest->setParameter($k, utf8_decode($v));
	}
	ms_ioinstallstdouttobuffer();
	$oMap->owsdispatch($oRequest);
	$strContType = ms_iostripstdoutbuffercontenttype();
	if ($strContType == 'image/png') {
		header('Content-type: image/png');
	}
	
	if($_REQUEST['encode']) {
		echo utf8_encode(ms_iogetstdoutbufferstring());
	} else {
		ms_iogetStdoutBufferBytes();
	}
	ms_ioresethandlers();

Hope this helps other people with the same problem :)

Hawk

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Post-body-is-short-tp7061122p7106576.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list