POST data using MSXML

0

I have developed an application in vb.net using an object for the connection with a URL and to communicate by POST Data. I have two computers, Num1 and Num2. On the Num1 everything works well bit this is not the case for the Num2.

I want to clarify that i use the same object on others applications and they work well on both computers. I don't understand what is the problem. The only difference is that this software tries to communicate with an HTTPS protocol.

Why does this work on Num1 but not on Num2?

The code i used is the following:

Dim ObjHTTP = CreateObject("MSXML2.ServerXMLHTTP")
Dim data = "{""UserName"":""" & txtUsername.Text & """,""Password"":""" & txtPassword.Text & """,""IovationBB"":""" & Replace(txtIovation.Text,"IovationBB=", "") & """}"
Dim cUrl = "https://api.##########.com/login"     (I hide the address for privacy)
     ObjHTTP.Open("POST", cUrl, False)
     ObjHTTP.send(data)
     Dim res = ObjHTTP.responseText

The error reported is the following:

************** Testo dell'eccezione ************** System.Runtime.InteropServices.COMException (0x80072F7D): Errore nel supporto per il canale di protezione

post
comexception
serverxmlhttp
asked on Stack Overflow May 25, 2018 by ieiogiallorosso • edited May 25, 2018 by Pearly Spencer

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0