[Mapserver-dev] cgi parameters parsing

Yewondwossen Assefa assefa at dmsolutions.ca
Tue Sep 9 09:39:12 EDT 2003


Steve,

In order to support xml encoded post requests (necessary for ogc filter 
encoding and sld support), I need to modify a bit how cgi parameters are 
read and stored.

  Right now all cgi parameters (Get and Post (form-urlencoded)) are 
stores in stricture mapservObj inside the values char **ParamNames; char 
**ParamValues;
int NumParams;

  I would like to intorduce a new global structure sCGIParams that could 
contain all the Get and Post parameters include the xml post encoded 
request. The structure would be something like :

struct
{
     char **ParamNames;  //contains the result of the Get request
    char **ParamValues;
    int NumParams;

     int eTypeOfRequest (an enum containing diffrent types of requests)

     char *pszPostRequest; (contect of the post request)
}

  This structure would be filled by functions indside the cgiutil.c file.


  The current mapservObj would use this new object and requests handling 
routines like (wms, wfs) would be passed this structure to work with.



  Any comments on this ?

Later,


  PS : this request has been entered as bug 426.
-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------






More information about the mapserver-dev mailing list