Hi all, Well, that route was a short one. Yes, I can call installStdinFromBuffer, but actually reading something via bufferRead:
int msIO_bufferRead( void *cbData, void *data, int byteCount ) { (void)cbData; (void)data; (void)byteCount; /* not implemented yet. */ return 0; } Unless I’m missing something, this isn’t possible, yet. I find it hard to believe no-one uses MapServer to handle WFS Post requests, so I’m pretty sure I’m missing something? Regards, Jelmer Baas From: mapserver-users <mapserver-users-boun...@lists.osgeo.org> On Behalf Of Seth G Sent: donderdag 27 mei 2021 20:35 To: mapserver-users@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@lists.osgeo.org<mailto:mapserver-users%40lists.osgeo.org> https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users