win32inet.InternetSetOption
InternetSetOption(hInternet, Option, Buffer)
Sets an option for an internet handle
Parameters
Option | Type of input object |
INTERNET_OPTION_CALLBACK | Python function called on status change |
INTERNET_OPTION_CONTEXT_VALUE | Any Python object to be passed to callback function |
INTERNET_OPTION_SEND_TIMEOUT | Int - timeout in millseconds |
INTERNET_OPTION_CONTROL_SEND_TIMEOUT | Int - timeout in millseconds |
INTERNET_OPTION_RECEIVE_TIMEOUT | Int - timeout in millseconds |
INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT | Int - timeout in millseconds |
INTERNET_OPTION_CODEPAGE | Int - Codepage of host part of URL |
INTERNET_OPTION_CODEPAGE_PATH | Codepage for URL |
INTERNET_OPTION_CODEPAGE_EXTRA | Int - Codepage for path part of URL |
INTERNET_OPTION_CONNECT_RETRIES | Int - Number of time to try to reconnect to host |
INTERNET_OPTION_CONNECT_TIMEOUT | Int - Connection timeout in milliseconds |
INTERNET_OPTION_CONNECTED_STATE | Int - Connection state, INTERNET_STATE_* |
INTERNET_OPTION_ERROR_MASK | Int, combination of INTERNET_ERROR_MASK_* |
INTERNET_OPTION_FROM_CACHE_TIMEOUT | Int - Timeout in ms before cached copy is used |
INTERNET_OPTION_IDN | Int, INTERNET_FLAG_IDN_* |
INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER | Int |
INTERNET_OPTION_MAX_CONNS_PER_SERVER | Int |
INTERNET_OPTION_READ_BUFFER_SIZE | Int |
INTERNET_OPTION_WRITE_BUFFER_SIZE | Int |
INTERNET_OPTION_REQUEST_PRIORITY | Int |
INTERNET_OPTION_DIGEST_AUTH_UNLOAD | None |
INTERNET_OPTION_END_BROWSER_SESSION | None |
INTERNET_OPTION_REFRESH | None |
INTERNET_OPTION_RESET_URLCACHE_SESSION | None |
INTERNET_OPTION_SETTINGS_CHANGED | None |
INTERNET_OPTION_BYPASS_EDITED_ENTRY | Boolean |
INTERNET_OPTION_HTTP_DECODING | Boolean |
INTERNET_OPTION_IGNORE_OFFLINE | Boolean |
INTERNET_OPTION_USERNAME | String - Username passed to InternetConnect |
INTERNET_OPTION_PASSWORD | String - Password passed to InternetConnect |
INTERNET_OPTION_PROXY_PASSWORD | String |
INTERNET_OPTION_PROXY_USERNAME | String |
INTERNET_OPTION_SECONDARY_CACHE_KEY | String |
INTERNET_OPTION_USER_AGENT | String |
INTERNET_OPTION_DATAFILE_EXT | String - Extension to use for download cache file |
INTERNET_OPTION_PROXY | Dict representing INTERNET_PROXY_INFO struct |
INTERNET_OPTION_HTTP_VERSION | Not yet supported - HTTP_VERSION_INFO |
INTERNET_OPTION_PER_CONNECTION_OPTION | Not yet supported (INTERNET_PER_CONN_OPTION_LIST) |
INTERNET_OPTION_ALTER_IDENTITY | Not supported |
INTERNET_OPTION_ASYNC | Not supported |
INTERNET_OPTION_ASYNC_ID | Not supported |
INTERNET_OPTION_ASYNC_PRIORITY | Not supported |
INTERNET_OPTION_CACHE_STREAM_HANDLE | Not supported |
INTERNET_OPTION_CALLBACK_FILTER | Not supported |
INTERNET_OPTION_CLIENT_CERT_CONTEXT | Not supported |
INTERNET_OPTION_DATA_RECEIVE_TIMEOUT | Not supported |
INTERNET_OPTION_DATA_SEND_TIMEOUT | Not supported |
INTERNET_OPTION_CONNECT_BACKOFF | Not supported |
INTERNET_OPTION_CONNECT_TIME | Not supported |
INTERNET_OPTION_DISABLE_AUTODIAL | Not supported |
INTERNET_OPTION_DISCONNECTED_TIMEOUT | Not supported |
INTERNET_OPTION_IDENTITY | Not supported |
INTERNET_OPTION_IDLE_STATE | Not supported |
INTERNET_OPTION_KEEP_CONNECTION | Not supported |
INTERNET_OPTION_LISTEN_TIMEOUT | Not supported |
INTERNET_OPTION_OFFLINE_MODE | Not supported |
INTERNET_OPTION_OFFLINE_SEMANTICS | Not supported |
INTERNET_OPTION_POLICY | Not supported |
INTERNET_OPTION_RECEIVE_THROUGHPUT | Not supported |
INTERNET_OPTION_REMOVE_IDENTITY | Not supported |
INTERNET_OPTION_SEND_THROUGHPUT | Not supported |
INTERNET_OPTION_CACHE_TIMESTAMPS | Only valid for InternetQueryOption |
INTERNET_OPTION_HANDLE_TYPE | Only valid for InternetQueryOption |
INTERNET_OPTION_DATAFILE_NAME | Only valid for InternetQueryOption |
INTERNET_OPTION_PARENT_HANDLE | Only valid for InternetQueryOption |
INTERNET_OPTION_SECURITY_CERTIFICATE | Only valid for InternetQueryOption |
INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT | Only valid for InternetQueryOption |
INTERNET_OPTION_SECURITY_FLAGS | Only valid for InternetQueryOption |
INTERNET_OPTION_SECURITY_KEY_BITNESS | Only valid for InternetQueryOption |
INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO | Only valid for InternetQueryOption |
INTERNET_OPTION_VERSION | Only valid for InternetQueryOption |
INTERNET_OPTION_EXTENDED_ERROR | Only valid for InternetQueryOption |
INTERNET_OPTION_REQUEST_FLAGS | Only valid for InternetQueryOption |
INTERNET_OPTION_URL | Only valid for InternetQueryOption |
Win32 API References