Msxml 6.0

  • Thread starter Thread starter momceras
  • Start date Start date
M

momceras

Guest
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...


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

Continue reading...
 

Similar threads

Back
Top