Use the global functions WebBrowserSet and WebBrowserGet to configure the path, user agent and proxy settings for the WebBrowser control.
Path settings:
-
CachePath -- The folder that stores the web page cache, cookies etc.
-
UserDataPath -- The folder that stores the user data dictionary.
-
DownloadPath -- The default download path.
User agent settings:
-
UserAgent -- The User-Agent request header that contains a characteristic string that allows the network protocol peers to identify the application type, operating system, software vendor or software version of the requesting software user agent.
Proxy settings:
-
ProxyAuto -- Whether to use auto proxy detection. WebBrowser supports auto proxy detection, PAC (proxy auto configuration) file setting, and manual proxy settings. The priority order of the settings is: auto proxy detection > PAC file setting > manual proxy settings. By default the IE proxy is used.
-
ProxyPacUrl -- The URL of the server where the PAC file is located.
-
ProxyAddress -- The address of the proxy server.
-
ProxyPort -- The port of the proxy server.
-
ProxyUser -- The user name that will be authenticated by the proxy server.
-
ProxyPassword -- The password that will be authenticated by the proxy server.