WININET_HTTPOpenRequest_Flags Enumerated List
See Also Example Applies To
This enumerated list is used in the HTTPOpenRequest function to set up the function flags.
These constants come from Microsoft Knowledge Base Article - Q185519,
msdn.microsoft.com/workshop/networking/wininet/reference/constants/api_flags.asp and
msdn.microsoft.com/workshop/networking/wininet/reference/functions/httpopenrequest.asp
INTERNET_FLAG_CACHE_IF_NET_FAIL
Value &H10000 - Returns the resource from the cache if the network request for the resource fails due to an ERROR_INTERNET_CONNECTION_RESET or ERROR_INTERNET_CANNOT_CONNECT error.
INTERNET_FLAG_HYPERLINK
Value &H400 - Forces a reload if there was no Expires time and no LastModified time returned from the server when determining whether to reload the item from the network.
INTERNET_FLAG_IGNORE_CERT_CN_INVALID
Value &H1000 - Disables Win32 Internet function checking of SSL/PCT-based certificates that are returned from the server against the host name given in the request. Win32 Internet functions use a simple check against certificates by comparing for matching host names and simple wildcarding rules.
INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
Value &H2000 - Disables Win32 Internet function checking of SSL/PCT-based certificates for proper validity dates.
INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
Value &H8000 - Disables the ability of the Win32 Internet functions to detect this special type of redirect. When this flag is used, Win32 Internet functions transparently allow redirects from HTTPS to HTTP URLs.
INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
Value &H4000 - Disables the ability of the Win32 Internet functions to detect this special type of redirect. When this flag is used, Win32 Internet functions transparently allow redirects from HTTP to HTTPS URLs.
INTERNET_FLAG_KEEP_CONNECTION
Value &H400000 - Uses keep-alive semantics, if available, for the connection.
This flag is required for Microsoft Network (MSN), NT LAN Manager (NTLM), and other types of authentication.
INTERNET_FLAG_NEED_FILE
Value &H10 - Causes a temporary file to be created if the file cannot be cached.
INTERNET_FLAG_MUST_CACHE_REQUEST
Value INTERNET_FLAG_NEED_FILE - Identical to the preferred value, INTERNET_FLAG_NEED_FILE. Causes a temporary file to be created if the file cannot be cached.
INTERNET_FLAG_NO_AUTH
Value &H40000 - Does not attempt authentication automatically.
INTERNET_FLAG_NO_AUTO_REDIRECT
Value &H200000 - Does not automatically handle redirection.
INTERNET_FLAG_NO_CACHE_WRITE
Value &H4000000 - Does not add the returned entity to the cache.
INTERNET_FLAG_DONT_CACHE
Value INTERNET_FLAG_NO_CACHE_WRITE - Does not add the returned entity to the cache. This is identical to the preferred value, INTERNET_FLAG_NO_CACHE_WRITE.
INTERNET_FLAG_NO_COOKIES
Value &H80000 - Does not automatically add cookie headers to requests, and does not automatically add returned cookies to the cookie database.
INTERNET_FLAG_NO_UI
Value &H200 - Disables the cookie dialog box.
INTERNET_FLAG_PRAGMA_NOCACHE
Value &H100 - Forces the request to be resolved by the origin server, even if a cached copy exists on the proxy.
INTERNET_FLAG_RELOAD
Value &H80000000 - Forces a download of the requested file, object, or directory listing from the origin server, not from the cache.
INTERNET_FLAG_RESYNCHRONIZE
Value &H800 - Reloads HTTP resources if the resource has been modified since the last time it was downloaded. All FTP and Gopher resources are reloaded.
INTERNET_FLAG_SECURE
Value &H800000 - Uses secure transaction semantics. This translates to using Secure Sockets Layer/Private Communications Technology (SSL/PCT) and is only meaningful in HTTP requests.
|