[mapserver-users] ArcIMS Emulations
Bruno Gendron
bruno_gendron at yahoo.com
Tue Oct 16 06:40:41 PDT 2001
Hi Paul,
You're right, as of 4.0.6, PHP cannot handle
simultaneously POST and GET requests. You have to
trick your server to re-encode the GET part in the
POST part and redirect this new request to your PHP
script.
However, PHP can read raw POST data, in the variable
$HTTP_RAW_POST_DATA...
--
Bruno
--- Paul Ramsey <pramsey at refractions.net> a écrit : >
Brian Fischer wrote:
> > Is a port to PHP possible?
>
> Upon further research, it appears that the answer is
> "not until PHP
> 4.0.7". ArcXML clients send requests which have data
> URL encoded
> (ServiceName=Blah) simultaneous with sending raw XML
> in the POST.
>
> Firstly, PHP expects you to either POST requests, or
> GET requests (URL
> encoded), but not to do BOTH. I do not know if 4.0.7
> will allow one to
> do this. Maybe.
> Secondly, PHP currently cannot access raw data from
> the POST. It expects
> the data to be in key/value pairs, and ArcXML is
> just a raw lump of XML,
> without a variable name. Apparently version 4.0.7
> will include the
> ability to access raw POST data. At that time, the
> next bridge, getting
> simultaneous URL encoded and posted data, can
> hopefully also be crossed.
>
> Paul
___________________________________________________________
Un nouveau Nokia Game commence.
Allez sur http://fr.yahoo.com/nokiagame avant le 3 novembre
pour participer à cette aventure tous médias.
More information about the MapServer-users
mailing list