Hello,
here below a skeleton that you can adapt following what suggested by Renè.
Cheers,
Marco
--------------
String ls_get_url
String ls_response_text, ls_status_text
long ll_status_code
OleObject loo_xmlhttp
ls_get_url = "https://localhost/helloworld/filename"
try
loo_xmlhttp = CREATE oleobject
If loo_xmlhttp.ConnectToNewObject("Msxml2.XMLHTTP.4.0") <> 0 Then Return
// Trust the SSL Certificate
loo_xmlhttp.setOption(2,'13056')
loo_xmlhttp.open ("GET",ls_get_url, false)
loo_xmlhttp.send()
//Get response
ls_status_text = loo_xmlhttp.StatusText
ll_status_code = loo_xmlhttp.Status
if ll_status_code >= 300 then
MessageBox("HTTP GET Request Failed", ls_response_text)
else
ls_response_text = loo_xmlhttp.ResponseText
end if
loo_xmlhttp.DisconnectObject()
catch (RuntimeError rte)
end try
This was really helpful, thank you all.
It would be great if Appeon could revamp the current INet implementation to support all these stuff natively, something similar in funtionality to .NET's WebRequest would be great.