The following file is available for download from the Microsoft Download Center:
For additional information about how to download Microsoft Support Files, click the following article number to view the article in the Microsoft Knowledge Base:
119591
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
Vbhttp.exe contains the following files:
File name | Size |
---|
EULA.txt | 1610 |
Http.frm | 37900 |
Http.txt | 71 |
Mssccprj.scc | 191 |
Vbhttp.vbp | 796 |
Vbhttp.vbw | 89 |
WinInet.bas | 6150 |
The sample demonstrates the following concepts:
- How to use the GET/POST method to send an HTTP/HTTPS request and how to read the response from the server.
This sample uses the same proxy setting in Internet Explorer by passing INTERNET_OPEN_TYPE_PRECONFIG to the InternetOpen function. - How to handle proxy/Web server authentication.
This sample calls InternetSetOption (no UI) to set the credential after it detects the 407 (proxy server) or 401 (Web server) status code. To display the built-in logon dialog box in Internet Explorer, call the InternetErrorDlg function instead. For Web server authentication, you can directly pass the user name and password to the InternetConnect function, if you already have them. - How to handle invalid certificate authority error (12045).
This sample uses InternetSetOption (no UI) to ignore the error after HttpSendRequest fails. You can use the InternetErrorDlg function (with UI) as well.