How to Use SSL With VB6

Written by jim campbell
  • Share
  • Tweet
  • Share
  • Email

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


  1. 1

    Click the Windows "Start" button and select "All Programs." Click "Microsoft Visual Basic," then click "Visual Basic" to open the programming software.

  2. 2

    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.

  3. 3

    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("")

    Notice the "https" prefix for the website. This calls the website using SSL.

  4. 4

    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:

    MsgBox sslwebsite.ReadInnerHTML

  5. 5

    Click the "Save" button at the top of the project software window. Click "Run" to run the code and review the results.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.