Opened 16 years ago

Last modified 14 years ago

#2681 new enhancement

No MapScript mechanism to process POST requests when not using cgi

Reported by: warmerdam Owned by: warmerdam
Priority: low Milestone:
Component: MapScript-SWIG Version: 5.0
Severity: normal Keywords: wxs mapscript
Cc: tomkralidis

Description

Currently in non-cgi mapscript environments (such as when using php or python as a loaded module in Apache), it is not possible to process post requests because there is no mechanism to push the posted xml document into the msio subsystem.

To implement this, we would need to actually implement the msIO_bufferRead() function in mapio.c, and add a function to push data into this buffer (something roughly like msIO_getStdoutBufferString() and msIO_getStdoutBufferBytes() from mapscript/swiginc/msio.i but in the opposite direction).

While I understand what needs to be done, I'm not prepared to spend the time doing it since the need seems somewhat limited.

Change History (3)

comment:1 by warmerdam, 16 years ago

NOTE: This issue only affects someone wanting to use POST requests to WxS services from mapscript in a non-cgi environment (like mod_php or mod_python).

comment:2 by tomkralidis, 16 years ago

Cc: tomkralidis added

Frank: feel free to ping me for testing/etc.

comment:3 by keithmoss, 14 years ago

Ditto. If you want to work on implementing this I'm available for debugging and testing.

Note: See TracTickets for help on using tickets.