Jump to content

Microsoft.XMLHTTP POST unable to communicate to HTTPS webservice

Recommended Posts

I am trying to send a message to my Windows server 2012 hosting a webservice with TLS-1.2 enabled but i am not getting any message on the server.

Initially with HTTP website and TLS-1.2 disabled the connection was properly working and the message was being received properly.

I am using :

$fvURL: HTTPS:\\url to my server\

Func CallWebSvc($fvURL, $fvVerb="POST", $fvBody="", $fvHeaders="")
    $tvSvc = ObjCreate("Microsoft.XMLHTTP")
    $tvSvc.open($fvVerb, $fvURL, False)

    If IsArray($fvHeaders) Then
        For $tvIt = 0 to UBound($fvHeaders) - 1
            $tvHName = StringLeft($fvHeaders[$tvIt], StringInStr($fvHeaders[$tvIt], "=") - 1)
            $tvHVal = StringTrimLeft($fvHeaders[$tvIt], StringInStr($fvHeaders[$tvIt], "="))
            $tvSvc.setRequestHeader($tvHName, $tvHVal)

    Return $tvSvc.responseText


Can someone please suggest any change or what i might be doing wrong?

Its kind of urgent.

Thanks in advance.


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...