[prev in list] [next in list] [prev in thread] [next in thread]
List: mapserver-users
Subject: [mapserver-users] Re: Post body is short
From: Håkon_Åmdal <hawk () aamdal ! com>
Date: 2011-12-18 21:35:36
Message-ID: 1324244136008-7106576.post () n2 ! nabble ! com
[Download RAW message or body]
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. \
_______________________________________________ mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic