Loding WMS Layer with username and password

Hello everybody,

I am working on an application that uses MapWinGIS and i need to be able to load WMS layer that need authentication with username and password.

With WmsLayer it seems not to be supported or have I missed something?

Regards
Daniel

Hello Daniel,

here an example of an URL we use:

http://user:password@xxxxxxxxxxxxxxxx.com/service?

Hope this helps.

Regards,
Frank

Hi Frank,

Adding it to the URL did not work for me.

But by doing this where i set the login for a given host using the TileClass.
var tiles = new TilesClass();
tiles.SetProxyAuthentication(user, password, host);

Then the WMS Layer is loaded correctly from a password protected service.

Regards
Daniel