[OpenLayers-Users] Problem with maximum URL length

Lars Lingner gislars+list at googlemail.com
Thu Jun 9 15:54:43 EDT 2011


Am 09.06.2011 18:12, schrieb Andreas Neumann:
> Hi all,
> 
> I have a project with many WMS layers which have rather long layer
> names. Now I seem to be hitting a maximum URL length restriction of IE
> in the GetFeatureInfo request. See also
> http://support.microsoft.com/kb/208427
> 
> Do you have any ideas for a workaround? Would a post request work with
> OpenLayers.Control.WMSGetFeatureInfo ?
> 
> My project has >50 layers with rather long names and while debugging I
> saw that the URL was around 3000 characters long. IE just cut the URL
> off at 2047 characters and my WMS server resulted in a 500 error code.
> 
> Any ideas?

I would try to use OpenLayers.Layer.WMS.Post and see if the GFI request
is also using POST... but I never tried it myself.

http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Layer/WMS/Post-js.html


Lars


More information about the Users mailing list