Hi,
After both Opening and Sending a request, some of the propertes of a WinHttpRequest are displaying errors.
After both Opening and Sending a request, some of the propertes of a WinHttpRequest are displaying errors.
Code:
On Error Resume Next
Set objHTTP = CreateObject( "WinHttp.WinHttpRequest.5.1" )
Request_s = "GET"
objHTTP.Open Request_s, Url_s, False
objHTTP.setRequestHeader "Content-type", "application/x-[URL unfurl="true"]www-form-urlencoded"[/URL]
objHTTP.SetCredentials User_s, Password_s, HTTPREQUEST_SETCREDENTIALS_FOR_SERVER
objHTTP.Send Credentials_s
'// BELOW, Status (and ResponseBody and ResponseText, etc.) are showing that the request hasn't been sent, even though it just was.
'// ALSO, the Option property says that the Open method must be called.
Status_n = objHTTP.Status
Status_Text_s = objHTTP.StatusText
HTML_s = objHTTP.ResponseText