>>>LOCAL HttpRequest AS MSXML2.ServerXMLHTTP60 >>>LOCAL HttpResponseEndPoint AS String >>>LOCAL Reply AS String >>> >>>m.HttpResponseEndPoint = "https://www.levelextreme.com" >>> >>>m.HttpRequest = CREATEOBJECT("MSXML2.ServerXMLHTTP.6.0") >>> >>>m.HttpRequest.Open("GET", m.HttpResponseEndPoint, .F.) >>>m.HttpRequest.Send() >>> >>>m.Reply = m.HttpRequest.Responsetext >>> >>>? m.Reply >>>>>
>>m.HttpRequest = CREATEOBJECT("MSXML2.ServerXMLHTTP.6.0") >>m.HttpRequest.AddParameter("grant_type", "password") >>>>
>m.HttpRequest.Open("POST", m.HttpResponseEndPoint, .F.) >m.HttpRequest.Send("grant_type=password") >>
>m.HttpRequest.SetRequestHeader("HeaderName", "HeaderValue") >I am trying to GET some data from the server. And using your code (above with the Open("GET")) I don't get anything returned by the .Send() method. Should the .Send() return something? Or what am I missing?
m.Reply = m.HttpRequest.ResponsetextI am getting Authorization Denied message. So something is wrong but not with your code. Thank you.