Results 1 to 3 of 3

Thread: Get HTTPS Method Issues

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2018
    Posts
    57

    Thumbs up Get HTTPS Method Issues

    I have been using the following procedure to read data from webpages on HTTP for years.

    Code:
        Dim strReturn                   ' As String
        Dim objHTTP                     ' As MSXML.XMLHTTPRequest
        Dim strURL 
        If Len(strURL) = 0 Then Exit Function
        Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")
        strURL = "https://www.codebankers.com/secure1.html"
        objHTTP.Open "GET", strURL, False
        objHTTP.send                    'Get it.
        strReturn = objHTTP.responseText
        Set objHTTP = Nothing
        GetHTMLCode = strReturn
    But since my Hosting company have forced HTTPS on all domains, the procedure no longer works and give me an error of "An error occurred in the secure channel support"

    Please i need help on a procedure that can work for HTTPS.

  2. #2

  3. #3
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,167

    Re: Get HTTPS Method Issues

    Quote Originally Posted by Tobyy View Post
    Please i need help on a procedure that can work for HTTPS.
    Btw, for anything less than Win10 you can use Http Request Replacement class from here. This implements TLS 1.3 support in VB6 and works on NT4/Win98 or better.

    cheers,
    </wqw>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width