[mapserver-dev] R: Re: loadWeb(): Unknown identifier

francescoboccacci at libero.it francescoboccacci at libero.it
Sun Mar 10 15:31:18 PDT 2013


Hi Jeff,
i tried to remove :

'<input type="hidden"
>name="map_web_imagepath" value="/var/www/mapserver/tmp/">



 <!-- MapServer Template -->
<html>
<head><title>MapServer Hello World</title></head>
<body>
<form method="GET" action="/cgi-bin/mapserv">
<input type="submit" value="Click Me">
<input type="hidden" name="map" value="/var/www/mapserver/hello.map">
</form>
<IMG SRC="[img]" width=400 height=300 border=0>
</body>
</html>


and change method from POST to GET and it  works.
If i use method POST it seems it doesn't works.


<!-- MapServer Template -->
<html>
<head><title>MapServer Hello World</title></head>
<body>
<form method="POST" action="/cgi-bin/mapserv">
<input type="submit" value="Click Me">
<input type="hidden" name="map" value="/var/www/mapserver/hello.map">
</form>
<IMG SRC="[img]" width=400 height=300 border=0>
</body>
</html>


msOWSPreParseRequest(): OWS error. POST request is empty. 

Any suggestions?

Thanks

Francesco



>----Messaggio originale----
>Da: jmckenna at gatewaygeomatics.com
>Data: 10/03/2013 22.12
>A: <mapserver-dev at lists.osgeo.org>
>Ogg: Re: [mapserver-dev] loadWeb(): Unknown identifier
>
>On 2013-03-09 11:48 AM, francescoboccacci at libero.it wrote:
>> during a test i receive the follow error:
>> 
>> loadWeb(): Unknown identifier. Parsing error near 
(/var/www/mapserver/tmp/):
>> (line 1) 
>
>I hit this issue very often.  Error line 1 is a sign that there is a
>problem with the way the old CGI template is passing parameters to
>mapserv.  This has to do with changes made to MapServer 5.0 in how to
>pass parameters (give a good read to:
>http://www.mapserver.org/cgi/controls.html#using-mapserver-version-5)
>
>You might try even removing your whole line '<input type="hidden"
>name="map_web_imagepath" value="/var/www/mapserver/tmp/">' or changing
>it to match the correct syntax.
>
>Happy sunny Sunday to all.
>
>-jeff
>
>-- 
>Jeff McKenna
>MapServer Consulting and Training Services
>http://www.gatewaygeomatics.com/
>
>
>
>
>_______________________________________________
>mapserver-dev mailing list
>mapserver-dev at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>




More information about the mapserver-dev mailing list