Results 1 to 6 of 6

Thread: Microsoft XML v6.0 - Updated Alternative???? - No longer supports certain SSL sites

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2020
    Posts
    9

    Microsoft XML v6.0 - Updated Alternative???? - No longer supports certain SSL sites

    I have been using msxml6.dll for many years now to do my http and https html fetching. I noticed about a year ago that many SSL sites started to return NULL and when i dug into it further, I came to the conclusion that they are utilizing a SSL encryption method that is not supported by the old microsoft xml.


    For those increasing number of sites, I have had to turn to making external shell calls to CURL to grab those urls. This was a quick stop gap measure that i know i cannot continue to use.

    I need to be able to post data , fetch url and be able to post via SOAP or JSON etc that i have been utilizing with old microsoft xml.

    Is there an updated DLL that is better to use, or has anyone incorporated CURL via LINKED C binary calls from VB6? or some other method i haven't mentioned.

    I had a record array which included a IXMLHTTPRequest, and i would poll the array for asynchronous requests to fetch my html requests. It is quite slick and use it in many of my programs. But, more and more https sites are no longer accepting any sort of requests from this Microsoft XML DLL.



    Code:
      Private Type XMLrec
      Active As Boolean
      HTM As IXMLHTTPRequest
      URL As String
    ......
    
    Sample Code below ....
    
    
            .open IIf(Post, "POST", "GET"), URL, Async
            If AllowCache = False And Not SkipParameters And Len(JSON) = 0 Then
              .setRequestHeader "Pragma", "no-cache"
              .setRequestHeader "Cache-Control", "no-cache"
              .setRequestHeader "If-Modified-Since", "Sat, 1 Jan 2019 00:00:00 GMT"
            End If
            
            .setRequestHeader "Referrer", URL
            
            If Len(Trim(JSON)) > 0 Then
                .setRequestHeader "Content-Type", "application/json"
            ElseIf Post Then
                .setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
                .setRequestHeader "Content-Length", CStr(Len(postdata))
            Else
                .setRequestHeader "Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
            End If
            
            If Not SkipParameters Then
              .setRequestHeader "User-Agent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0" '"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0"
            End If
        
            .send IIf(Post, postdata, JSON)

  2. #2
    Fanatic Member
    Join Date
    Feb 2019
    Posts
    706

    Re: Microsoft XML v6.0 - Updated Alternative???? - No longer supports certain SSL sit


  3. #3
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,219

    Re: Microsoft XML v6.0 - Updated Alternative???? - No longer supports certain SSL sit

    That's an issue which is usually caused by "too old crypto-libs"
    (without proper support for modern TLS-versions or Cyphers, which modern https-channels require via their new, modern certificates).

    So my guess is, that you're running on XP or Win7...
    (with older versions of the IE-engine, which makes use of basically the same "http-request-objects").

    For Win7, these problems usually go away, after installing IE11.

    For XP-systems the IE8 remains the latest supported IE-engine though...

    Olaf

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Microsoft XML v6.0 - Updated Alternative???? - No longer supports certain SSL sit

    Amazing how many ills of this sort are avoided simply by updating Windows on a reasonable basis.

    Windows 10 even contains tar and curl now.

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2020
    Posts
    9

    Re: Microsoft XML v6.0 - Updated Alternative???? - No longer supports certain SSL sit

    Quote Originally Posted by qvb6 View Post
    Thank you.. That link was perfect for me.. Ill try implementing the ideas in that thread this coming week.

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2020
    Posts
    9

    Re: Microsoft XML v6.0 - Updated Alternative???? - No longer supports certain SSL sit

    Quote Originally Posted by dilettante View Post
    Amazing how many ills of this sort are avoided simply by updating Windows on a reasonable basis.

    Windows 10 even contains tar and curl now.
    Okay, not sure the point of this message. This has NOTHING to do with the windows version, it has everything to do with the component I'm utilizing.

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