rehman932 Posted October 12, 2016 Share Posted October 12, 2016 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. Link to comment Share on other sites More sharing options...
genius257 Posted October 13, 2016 Share Posted October 13, 2016 What HTTP status code are you getting with the return? My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now