[OpenLayers-Users] Print problem using maxGetUrlLength and HTTP POST

Glenn Mullett GMullett at lidwala.com
Fri Jan 17 07:47:22 PST 2014


Hi Sven

If you're using Apache2, you can try configuring the server to allow long URLs:

In your VirtualHost config (e.g. in httpd.conf), set LimitRequestFieldSize and LimitRequestLine to something big.

e.g.


<VirtualHost *:80>

        LimitRequestFieldSize 50000

        LimitRequestLine 50000

           #....etc....#

</VirtualHost>


Regards,
Glenn



On 17/01/14 17:15, Sven Schroeter wrote:

Hi,

I'm using the maxGetUrlLength property of the layer's tileOptions option to
send a layer request via post to a custom WMS-Script.
This works fine for me, but I'm not able to print a map with this layers
using HTTP POST (with no browser).
You can test this problem on the example "WMS with POST Requests to Avoid
Long URLs"
http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/wms-long-url.h
tml
If you use  Long URL - POST requests you can't print the map
If you use Short URL - GET requests it's no problem.
Any idea to solve this problem?

Greetings
Sven




_______________________________________________
Users mailing list
Users at lists.osgeo.org<mailto:Users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/openlayers-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140117/c56c169b/attachment.html>


More information about the Users mailing list