win32inet.InternetSetOption

InternetSetOption(hInternet, Option, Buffer)

Sets an option for an internet handle

Parameters

hInternet : PyHINTERNET

Internet handle, or None for global defaults

Option : int

The option to set, INTERNET_OPTION_*

Buffer : object

Type is dependent on Option

Option Type of input object


INTERNET_OPTION_CALLBACKPython function called on status change
INTERNET_OPTION_CONTEXT_VALUEAny Python object to be passed to callback function
INTERNET_OPTION_SEND_TIMEOUTInt - timeout in millseconds
INTERNET_OPTION_CONTROL_SEND_TIMEOUTInt - timeout in millseconds
INTERNET_OPTION_RECEIVE_TIMEOUTInt - timeout in millseconds
INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUTInt - timeout in millseconds
INTERNET_OPTION_CODEPAGEInt - Codepage of host part of URL
INTERNET_OPTION_CODEPAGE_PATHCodepage for URL
INTERNET_OPTION_CODEPAGE_EXTRAInt - Codepage for path part of URL
INTERNET_OPTION_CONNECT_RETRIESInt - Number of time to try to reconnect to host
INTERNET_OPTION_CONNECT_TIMEOUTInt - Connection timeout in milliseconds
INTERNET_OPTION_CONNECTED_STATEInt - Connection state, INTERNET_STATE_*
INTERNET_OPTION_ERROR_MASKInt, combination of INTERNET_ERROR_MASK_*
INTERNET_OPTION_FROM_CACHE_TIMEOUTInt - Timeout in ms before cached copy is used
INTERNET_OPTION_IDNInt, INTERNET_FLAG_IDN_*
INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVERInt
INTERNET_OPTION_MAX_CONNS_PER_SERVERInt
INTERNET_OPTION_READ_BUFFER_SIZEInt
INTERNET_OPTION_WRITE_BUFFER_SIZEInt
INTERNET_OPTION_REQUEST_PRIORITYInt
INTERNET_OPTION_DIGEST_AUTH_UNLOADNone
INTERNET_OPTION_END_BROWSER_SESSIONNone
INTERNET_OPTION_REFRESHNone
INTERNET_OPTION_RESET_URLCACHE_SESSIONNone
INTERNET_OPTION_SETTINGS_CHANGEDNone
INTERNET_OPTION_BYPASS_EDITED_ENTRYBoolean
INTERNET_OPTION_HTTP_DECODINGBoolean
INTERNET_OPTION_IGNORE_OFFLINEBoolean
INTERNET_OPTION_USERNAMEString - Username passed to InternetConnect
INTERNET_OPTION_PASSWORDString - Password passed to InternetConnect
INTERNET_OPTION_PROXY_PASSWORDString
INTERNET_OPTION_PROXY_USERNAMEString
INTERNET_OPTION_SECONDARY_CACHE_KEYString
INTERNET_OPTION_USER_AGENTString
INTERNET_OPTION_DATAFILE_EXTString - Extension to use for download cache file
INTERNET_OPTION_PROXYDict representing INTERNET_PROXY_INFO struct
INTERNET_OPTION_HTTP_VERSIONNot yet supported - HTTP_VERSION_INFO
INTERNET_OPTION_PER_CONNECTION_OPTIONNot yet supported (INTERNET_PER_CONN_OPTION_LIST)
INTERNET_OPTION_ALTER_IDENTITYNot supported
INTERNET_OPTION_ASYNCNot supported
INTERNET_OPTION_ASYNC_IDNot supported
INTERNET_OPTION_ASYNC_PRIORITYNot supported
INTERNET_OPTION_CACHE_STREAM_HANDLENot supported
INTERNET_OPTION_CALLBACK_FILTERNot supported
INTERNET_OPTION_CLIENT_CERT_CONTEXTNot supported
INTERNET_OPTION_DATA_RECEIVE_TIMEOUTNot supported
INTERNET_OPTION_DATA_SEND_TIMEOUTNot supported
INTERNET_OPTION_CONNECT_BACKOFFNot supported
INTERNET_OPTION_CONNECT_TIMENot supported
INTERNET_OPTION_DISABLE_AUTODIALNot supported
INTERNET_OPTION_DISCONNECTED_TIMEOUTNot supported
INTERNET_OPTION_IDENTITYNot supported
INTERNET_OPTION_IDLE_STATENot supported
INTERNET_OPTION_KEEP_CONNECTIONNot supported
INTERNET_OPTION_LISTEN_TIMEOUTNot supported
INTERNET_OPTION_OFFLINE_MODENot supported
INTERNET_OPTION_OFFLINE_SEMANTICSNot supported
INTERNET_OPTION_POLICYNot supported
INTERNET_OPTION_RECEIVE_THROUGHPUTNot supported
INTERNET_OPTION_REMOVE_IDENTITYNot supported
INTERNET_OPTION_SEND_THROUGHPUTNot supported
INTERNET_OPTION_CACHE_TIMESTAMPSOnly valid for InternetQueryOption
INTERNET_OPTION_HANDLE_TYPEOnly valid for InternetQueryOption
INTERNET_OPTION_DATAFILE_NAMEOnly valid for InternetQueryOption
INTERNET_OPTION_PARENT_HANDLEOnly valid for InternetQueryOption
INTERNET_OPTION_SECURITY_CERTIFICATEOnly valid for InternetQueryOption
INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCTOnly valid for InternetQueryOption
INTERNET_OPTION_SECURITY_FLAGSOnly valid for InternetQueryOption
INTERNET_OPTION_SECURITY_KEY_BITNESSOnly valid for InternetQueryOption
INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFOOnly valid for InternetQueryOption
INTERNET_OPTION_VERSIONOnly valid for InternetQueryOption
INTERNET_OPTION_EXTENDED_ERROROnly valid for InternetQueryOption
INTERNET_OPTION_REQUEST_FLAGSOnly valid for InternetQueryOption
INTERNET_OPTION_URLOnly valid for InternetQueryOption

Win32 API References

Search for InternetSetOption at msdn, google or google groups.