Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
SRP_Com returns status 0
After we upgraded our SRP Utilities to version 2.0.2, we have code that uses SRP_Com that isn't working anymore. Previously it would return status 200, but now it returns 0. When we open the URL in the browser, it works fine.
I created this test code so you can verify.
I created this test code so you can verify.
// This returns status 0
URL = "https://www.google.com"
res = srp_com(api,'CREATE','MSXML2.XMLHTTP')
res = srp_com(api,'CALL',"Open", "GET", URL, 0)
res = srp_com(api,'CALL',"Send")
status = srp_com(api,'GET','Status')
if status eq 200 then
// Do stuff
end
// This returns status 200
oHTTP = Olecreateinstance("MSXML2.XMLHTTP")
cres = Olecallmethod(oHTTP,"Open","GET", Url,0)
res = Olecallmethod(oHTTP,"Send" )
status = Olegetproperty(oHTTP, "Status")
Comments