rehman932

Microsoft.XMLHTTP POST unable to communicate to HTTPS webservice

2 posts in this topic

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)
        Next
    EndIf

    $tvSvc.send($fvBody)
    Return $tvSvc.responseText
EndFunc

 

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

Its kind of urgent.

Thanks in advance.

 

Share this post


Link to post
Share on other sites



What HTTP status code are you getting with the return?

Share this post


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