[mapserver-users] Mapscript C# and OWSRequest parameters

Jelmer Baas jelmerbaas at nedgraphics.nl
Mon May 31 00:16:34 PDT 2021


Hi Seth,

Thanks for the pointer, I’ll give this a try.
(Your mail got caught in a spam filter; apologies)

Regards,
Jelmer Baas

From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> On Behalf Of Seth G
Sent: donderdag 27 mei 2021 20:35
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Mapscript C# and OWSRequest parameters

Hi Jelmer,

I think you'd have to use mapscript.msIO_installStdinFromBuffer to read data in.
See https://mapserver.org/development/rfc/ms-rfc-16.html#io-hooking although I'm not sure if the approach works or was fully implemented.
Let us know how you get on,

Seth

--
web:http://geographika.co.uk
twitter: @geographika


On Thu, May 27, 2021, at 10:39 AM, Jelmer Baas wrote:

Hello,



For a new project, I’ve decided to pickup MapScript again to function as an internal (back-end) WFS server. I use the OWSRequest class, which works fine when I fill it with loadParamsFromURL() – in the case of Get requests.



I can’t seem to figure out a way to get my POST data into this object, though. It has a loadParams method, but because I’m not running as a CGI application (back-end app without a webserver), this doesn’t do anything. I also tried setting postrequest property and then calling the loadParams, setting Environment variables, etc. No error, no exception, just -1 value from NumParams.



Any suggestions on how to proceed?



Regards,

Jelmer Baas




_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users%40lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210531/6cd2f5da/attachment.htm>


More information about the MapServer-users mailing list