PyHINTERNET = InternetOpenUrl(Internet, Url , Headers , Flags , Context )

Opens a resource specified by a complete FTP, Gopher, or HTTP URL.


Internet : PyHINTERNET

Internet handle as returned by win32inet::InternetOpen

Url : string

A string that contains the URL to begin reading. Only URLs beginning with ftp:, gopher:, http:, or https: are supported.

Headers=None : string

a string variable that contains the headers to be sent to the HTTP server.

Flags=0 : int


Context=None : object

An arbitrary object to be passed to the status callback function


Accepts keyword args.

Return Value

Returns None in async mode (Internet handle created with INTERNET_FLAG_ASYNC). When handle is created, it will be passed to callback function of parent handle.