Hi all, I found the answer in previous (albeit old !) e-mail exchanges in this mailing list.
The solution is quite simple : just send overly large parameters in the request body, and set the 'Content-Type' header to 'application/x-www-form-urlencoded'. Geoserver will read these as if they were sent through the URL. When using OpenLayers, one can configure it to send POST WMS requests instead of GET by overriding the imageLoadFunction/tileLoadFunction as shown here : https://stackoverflow.com/questions/29826627/how-to-make-ol-source-imagewms-send-post-request Best regards, Louis Johanet De : Louis JOHANET <louis.joha...@kleegroup.com> Envoyé : jeudi 7 novembre 2019 18:22 À : geoserver-users@lists.sourceforge.net Objet : [Geoserver-users] Sending overly large viewparams in a GetMap request Hi, I am sending large GetMap WMS requests (> 15kb) to Geoserver with numerous viewparams, which causes HTTP errors as it exceeds the container's configuration. I would like to avoid modifying this config as I would have to do it in many places, thus I am looking for another way to send these viewparams. · It appears that although the GetMap endpoint supports POST XML requests (as seen here<https://www.how2map.com/2013/10/geoserver-getmap-with-http-post.html>), it does not support sending viewparams · Posting viewparams as form-data in the GET request does not seem to work. I can't find the related source code, but I assume that these are not handled when parsing the request This question has been partially answered here<http://osgeo-org.1560.x6.nabble.com/Pass-SQL-View-Param-in-GetMap-POST-request-td5277413.html>, suggesting that I could do a « GET-like request by submitting a form ». I struggle to see how this would work, as an XML would be expected in this case. Has anyone ever had to deal with overly large viewparams ? If so, how did you do it ? Best regards, Louis Johanet
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users