Revision 3521 trunk/libraries/libRemoteServices/src/org/gvsig/remoteClient/wms/WMSProtocolHandler.java

View differences:

WMSProtocolHandler.java
254 254
    {
255 255
		String req = new String();
256 256
		String host = getHost();
257
		if (!host.endsWith("?"))
257
		if ((!host.endsWith("?"))&&(host.indexOf("?")==-1))			
258 258
			req = req + getHost() + "?REQUEST=GetCapabilities&SERVICE=WMS&";
259 259
		else
260
			req = req + getHost() + "REQUEST=GetCapabilities&SERVICE=WMS&";
260
		{
261
			String symbol = (host.endsWith("&")) ? "" : "&";
262
			req = req + getHost() + symbol + "REQUEST=GetCapabilities&SERVICE=WMS&";
263
		}
261 264
		req = req + "VERSION=" + getVersion();
262 265
		req += ("&EXCEPTIONS=XML");
263 266
		return req;

Also available in: Unified diff