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

Sven Schroeter schroeter at netgis.de
Mon Jan 20 00:46:14 PST 2014


Hi Glenn,

thanks for your answer, but it's not a server problem because the picture is
rendered and shown in the client.
I think it's a problem of the client and OpenLayers HTTP-POST implementation
using the maxGetUrlLength property.

Any other ideas?

Sven




Von: Glenn Mullett [mailto:GMullett at lidwala.com] 
Gesendet: Freitag, 17. Januar 2014 16:47
An: Sven Schroeter; openlayers-users at lists.osgeo.org
Betreff: Re: [OpenLayers-Users] Print problem using maxGetUrlLength and HTTP
POST

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
http://lists.osgeo.org/mailman/listinfo/openlayers-users






More information about the Users mailing list