[Mapserver-users] Error 414 (Request-URI Too Long) on IIS
Jan Hartmann
jhart at frw.uva.nl
Wed Apr 9 09:15:31 PDT 2003
This is an annoying problem when you send a map request in an URL and
the URL is very long, like
"http://.../mapserv.exe?map=mymap&extent=-180+-90+180+90&...&...&...").
I know IE truncates this, I think at 1024 characters. I don't know if
Mozilla has the same problem. The only way to get so many data to the
server is to use a form with hidden variables (in other words sending a
"POST" request instead of a "GET" to the server):
<form action="http://.../mapserv.exe" method="post">
<input type="hidden" name="map" value="mymap">
<input type="hidden" name="extent" value "-180 -90 180 90">
...
...
etc
</form>
All "&-separated" name-value pairs that are normally in the URL can be
put as hidden variables in the form. When you submit the form,
everything will be passed to the server. There is no maximum to the
number of characters passed this way. I don't know how MapLab handles
this; in the worst case you have to do it by hand.
HTH
Jan
Hisaji Ono wrote:
> Hello.
>
> I've tried to draw all GTOPO30 maps "as it is" by MapServer 3.6.2 on XP
> Pro's IIS 5.1 using following map file created by MapLab.
>
> LAYER
> NAME "GTOPO30 "
> GROUP "DEM"
> STATUS ON
> DATA "gtopo30/E020N90.DEM"
> TYPE RASTER
>
> CLASSITEM "[pixel]"
> CLASS
> NAME "no data"
> EXPRESSION "-9999"
> COLOR 255 111 48
> END
> CLASS
> NAME "0-100 meter"
> EXPRESSION ([pixel] >0 AND [pixel] <= 100)
> COLOR 0 160 0
> END
> --- omit --------------
> END
>
> However once displayed, I tried to zoom. I've got following errors from
> IIS.
>
> Error 414 (Request-URI Too Long) on IIS
>
> I know this was caused by over limited characters in URI.
>
> Could anyone give me any idea to avoid this error?
>
> Regards.
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
Jan Hartmann
Department of Geography
University of Amsterdam
jhart at frw.uva.nl
More information about the MapServer-users
mailing list