locked
Msxml 6.0 RRS feed

  • Question

  • Hi,

    I was sucessfully using this code in PHP:

    <?php

    $ch = curl_init('https://address/');

    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

    curl_setopt($ch, CURLOPT_POST, true);

    curl_setopt($ch, CURLOPT_POSTFIELDS, array('field1' => 'Andrew'));

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

    // Execute post$

    result = curl_exec($ch);

    var_dump($result);

    // Close the session

    curl_close($ch);

    ?>


    Now I would like to use the MSXML 6.0 but I get error with the certificate.

    Even with the flag option ignoring ssl errors...

    error -2147012727 

    Dim Xmlhttp As New MSXML2.ServerXMLHTTP60

    With Xmlhttp

    .Open sMetodo, sUrl, False   

    .setOption 2, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS   

    .SetRequestHeader "Content-Type", "application/json; charset=utf-8"   

    .Send sString


    MySendHttpRequest = .ResponseText

    End With


    Is there any way to make it work ? Because I have checked with another SSL url's and it's working ok. It is just blocking on the invalid certificate.

    Best regards



    Monday, September 28, 2020 2:00 PM

All replies

  • Hi momceras,

    Thank you for posting here.

    Did you try to use other methods instead of MSXML to do it?

    Check the following reference.

    MSXML in VB.NET

    Hope it could be helpful.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, September 29, 2020 6:21 AM