[OpenLayers-Dev] HTTP params capitalization

Tim Schaub tschaub at opengeo.org
Thu Nov 24 03:22:40 EST 2011


Case insensitive ESRI WMS:
http://wetlandsfws.usgs.gov/ArcGIS/services/FWS_Wetlands_WMS/MapServer/WMSServer?sTyLeS=&FoRmAt=image%2Fpng&TrAnSpArEnT=true&lAyErS=8&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&vErSiOn=1.1.1&sErViCe=WMS&rEqUeSt=GetMap&sRs=EPSG%3A102113&BbOx=-13901174.252536,2814507.3357644,-3882420.082536,12833261.505764&wIdTh=256&hEiGhT=256

Doesn't mean there aren't broken ones.

I remember something about not duplicating parameters.  This seems to
support that:
https://github.com/openlayers/openlayers/commit/76850371fed848abd139b3c5347fe81981bcef0a

Would make more sense to check in a case-insensitive way and not alter
the case of the user supplied params.

Tim

On Wed, Nov 23, 2011 at 7:50 AM, Eric Lemoine
<eric.lemoine at camptocamp.com> wrote:
> On Wed, Nov 23, 2011 at 4:18 PM, Schuyler Erle <schuyler at nocat.net> wrote:
>> Unless I'm sorely mistaken, don't ESRI servers violate this part of the spec by requiring capitalized parameter names? ISTR that's why we did this.
>
> Thanks for the answer.
>
> Params created internally by OpenLayers (like "service" and "method")
> should remain capitalized. But params provided by the application
> developer ("layers" etc.) shouldn't be transformed by OpenLayers. If
> the user wants them lower-case, they should remain lower-case. And to
> work around ESRI bugs the application developer would just explicitely
> use capital letters for "layers" and friends.
>
> What do you think?
>
>
> --
> Eric Lemoine
>
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
>
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemoine at camptocamp.com
> http://www.camptocamp.com
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>



-- 
Tim Schaub
OpenGeo http://opengeo.org/
Expert service straight from the developers.


More information about the Dev mailing list