Secured Sockets Layer is a protocol used to send information to a website using encryption services. When you call websites from a Visual Basic 6 application, you must use the "HTTPS" prefix, which means you access the website using SSL. You can open any website in your VB6 project, but any website that contains private information or sensitive data must use the SSL protocol.
- Skill level:
Other People Are Reading
Click the Windows "Start" button and select "All Programs." Click "Microsoft Visual Basic," then click "Visual Basic" to open the programming software.
Click "File," then click "Open" to open your project. Double-click the project in the list of files to open the code. When the code opens, place the cursor on the location where you want to call the SSL website.
Create a variable that opens the website. This variable opens the website in the application, and all the website code is saved to the variable. Type the following code into your VB6 project file:
Dim sslwebsite As Stream = wc.OpenRead("https://mywebsite.com/index.aspx")
Notice the "https" prefix for the website. This calls the website using SSL.
Print out the results. You can manipulate the website code in any way to show results to the user. In this example, the HTML code is printed for you to verify that the code worked. Enter the following code into your project file:
Click the "Save" button at the top of the project software window. Click "Run" to run the code and review the results.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for