Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to WinHTTPClientMBS class.
WinHTTPClientMBS.Close as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS Win Plugin | 14.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS Win Plugin | 14.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
WinHTTPClientMBS.GetProxyForUrl(URL as string, AutoProxyOptions as WinHTTPClientAutoProxyOptionsMBS, byref ProxyInfo as WinHTTPClientProxyInfoMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS Win Plugin | 14.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Url: Contains the URL of the HTTP request that the application is preparing to send.
AutoProxyOptions: Specifies the auto-proxy options to use.
ProxyInfo: Receives the proxy setting.
If the function succeeds, the function returns true.
If the function fails, it returns false. Lasterror is set.
This function implements the Web Proxy Auto-Discovery (WPAD) protocol for automatically configuring the proxy settings for an HTTP request. The WPAD protocol downloads a Proxy Auto-Configuration (PAC) file, which is a script that identifies the proxy server to use for a given target URL. PAC files are typically deployed by the IT department within a corporate network environment. The URL of the PAC file can either be specified explicitly or GetProxyForUrl can be instructed to automatically discover the location of the PAC file on the local network.
GetProxyForUrl supports only ECMAScript-based PAC files.
GetProxyForUrl must be called on a per-URL basis, because the PAC file can return a different proxy server for different URLs. This is useful because the PAC file enables an IT department to implement proxy server load balancing by mapping (hashing) the target URL (specified by the lpcwszUrl parameter) to a certain proxy in a proxy server array.
GetProxyForUrl caches the autoproxy URL and the autoproxy script when auto-discovery is specified in the dwFlags member of the pAutoProxyOptions structure. For more information, see Autoproxy Cache.
see also
http://msdn.microsoft.com/en-us/library/windows/desktop/aa384097(v=vs.85).aspx
WinHTTPClientMBS.Open(UserAgent as string, AccessType as Integer, ProxyName as string = "", ProxyByPass as string = "") as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS Win Plugin | 14.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
lUserAgent: Specifies the name of the application or entity calling the WinINet functions. This name is used as the user agent in the HTTP protocol.
AccessType: Type of access required. This parameter can be one of the following values.
Value | Meaning |
INTERNET_OPEN_TYPE_DIRECT | Resolves all host names locally. |
INTERNET_OPEN_TYPE_PRECONFIG | Retrieves the proxy or direct configuration from the registry. |
INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY | Retrieves the proxy or direct configuration from the registry and prevents the use of a startup Microsoft JScript or Internet Setup (INS) file. |
INTERNET_OPEN_TYPE_PROXY | Passes requests to the proxy unless a proxy bypass list is supplied and the name to be resolved bypasses the proxy. In this case, the function uses INTERNET_OPEN_TYPE_DIRECT. |
Value | Meaning |
INTERNET_FLAG_ASYNC | Makes only asynchronous requests on handles descended from the handle returned from this function. |
INTERNET_FLAG_FROM_CACHE | Does not make network requests. All entities are returned from the cache. If the requested item is not in the cache, a suitable error, such as ERROR_FILE_NOT_FOUND, is returned. |
INTERNET_FLAG_OFFLINE | Identical to INTERNET_FLAG_FROM_CACHE. Does not make network requests. All entities are returned from the cache. If the requested item is not in the cache, a suitable error, such as ERROR_FILE_NOT_FOUND, is returned. |
The items on this page are in the following plugins: MBS Win Plugin.