Hello;<br><br>I&#39;m trying to acces a WMS which doesn&#39;t support format: image/jpeg with the followin javascript<br><br>var map;<br>            <br>            function init(){<br>                map = new OpenLayers.Map(&#39;map&#39;);<br>
                var wms = new OpenLayers.Layer.WMS(&quot;Map&quot;, &quot;<a href="http://server/">http://server/</a>?&quot;, {<br>                    layers: &quot;OLA_Color&quot;,<br>                    format: &quot;image/png&quot;<br>
                       <br>                });<br>                <br>                map.addLayer(wms);<br>                map.addControl(new OpenLayers.Control.MousePosition());<br>                <br>                map.setCenter(new OpenLayers.LonLat(0, 0), 2);<br>
                <br>                <br>            }<br><br>I&#39;m obtaining the pink tiles, so I check the url generated by OpenLayers for one of the tiles and this is the url:<br><br><a href="http://server/?LAYERS=OLA_Color&amp;FORMAT=image%2Fpng&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A4326&amp;BBOX=-90,0,0,90&amp;WIDTH=256&amp;HEIGHT=256">http://server/?LAYERS=OLA_Color&amp;FORMAT=image%2Fpng&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A4326&amp;BBOX=-90,0,0,90&amp;WIDTH=256&amp;HEIGHT=256</a><br>
<br>When I tried this in a browser (IE and Mozilla Firefox) the server give me an error related with the format which i&#39;m asking for. So I change the url in the browser for this one:<br><br><a href="http://server/?LAYERS=OLA_Color&amp;FORMAT=image/png&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG:4326&amp;BBOX=-90,-90,0,0&amp;WIDTH=256&amp;HEIGHT=256">http://server/?LAYERS=OLA_Color&amp;FORMAT=image/png&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG:4326&amp;BBOX=-90,-90,0,0&amp;WIDTH=256&amp;HEIGHT=256</a><br>
<br>And I got the image. Basically, from this I concluded that the problem is with the &quot;%2F&quot; generated by openlayers instead of the &quot;/&quot; and the same with the &quot;%3A&quot; instead of &quot;:&quot;. <br>
<br>Someone knows how I can deal with this problem?<br><br>Thank you for your help....<br><br><br>Camilo V.<br>