<html><head><title>[OSM-dev] 403 forbidden</title>
</head>
<body>
<span style=" font-family:'Arial'; font-size: 10pt;">In order to prevent suspicious situations in the future, I compiled a modified version of GMAP.NET, in which the controversial definition of the user-agent is eliminated. All apps that use this version must define the user-agent themselves now.<br>
The lines concerned in GMapProvider.cs now look like this:<br>
<br>
//public static string UserAgent = string.Format("Mozilla/5.0 (Windows NT {1}.0; {2}rv:{0}.0) Gecko/20100101 Firefox/{0}.0",<br>
// Stuff.random.Next(DateTime.Today.Year - 1969 - 5, DateTime.Today.Year - 1969),<br>
// Stuff.random.Next(0, 10) % 2 == 0 ? 10 : 6,<br>
// Stuff.random.Next(0, 10) % 2 == 1 ? string.Empty : "WOW64; ");<br>
<br>
// UserAgent must be defined by your app e.g.: GMap.NET.MapProviders.GMapProvider.UserAgent = "YourOwnUserAgentDefinition";<br>
public static string UserAgent = "";<br>
<br>
If someone wants to use these modified GMap.NET.Core.dll and GMap.NET.WindowsForms.dll, please let me know.<br>
All the 20 map providers of Justmapzz work with the new dll's, (except OSM), but I hope this exception will be eliminated soon.<br>
<br>
Rodolfo </body></html>