I'm developing a WinForm application using Visual Studio 2015 (.Net 4.5). It's a Front-End with Microsoft Access Database 2016 "In development stage" [I will use Sql Server later in Testing and Production stages.] At some level, the project uses Google Drive Api v3 and DropBox Api to backup the user's Database in a shared folder. At first, I was not able to use the built-in Web Browser at all, then I figured out away to do so by :
Implementing the built-in Web Browser Control Class itself :
- Using this Function
Public Shared Sub ChangeUserAgent()
Dim userAgent As List(Of String) = New List(Of String)()
Dim ua As String = "Googlebot/2.1 (+http://www.google.com/bot.html)"
UrlMkSetSessionOption(URLMON_OPTION_USERAGENT, ua, ua.Length, 0)
End Sub
- Then, by using Custom Headers, like this:
Dim Headers As String = _
"Accept: */*" & Chr(10) & Chr(13) & _
"Referer: " & "https://www.google.com/" & _
Chr(10) & Chr(13) & "User-Agent: " & _
"My Program User Agent" & Chr(10) & Chr(13)
Now, it's working with no problems when I test it as the developer. But I want to make sure, before I reach another level of the project, that is nothing left to do concerning this matter. So, my question really is :
Are there any precautions concerning using the implemented built-in web browser, to consider before continuing to develop my project ?