//http協議
ls_xmlhttp[1] = "Msxml2.XMLHTTP.6.0"
ls_xmlhttp[2] = "Msxml2.XMLHTTP.5.0"
ls_xmlhttp[3] = "Msxml2.XMLHTTP.4.0"
ls_xmlhttp[4] = "Msxml2.XMLHTTP.3.0"
ls_xmlhttp[5] = "Msxml2.XMLHTTP"
//http訪問物件
lole_token = CREATE oleobject
//lole_token.ConnectToNewObject("Microsoft.XMLHttp")
FOR ll_flag = 1 TO UpperBound(ls_xmlhttp)
lole_token.ConnectToNewObject(ls_xmlhttp[ll_flag])
NEXT
//入參
ls_data = '{"userName":"' + ls_uname + '","password":"' + ls_password + '"}'
//訪問http
lole_token.Open("POST",ls_url,FALSE)
lole_token.setRequestHeader("Content-type", "application/json")
lole_token.setRequestHeader('Content-Length',String(Len(ls_data)))
lole_token.Send(ls_data)
執行時報錯:
Error: Error calling external object function send at line 99
通過介面測驗工具測驗,介面是通的,但是pb中運行時,send()報錯
這個有什么辦法可以獲取到具體的錯誤原因嗎?
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/97748.html
標籤:控件與界面
上一篇:用phpstudy搭建dvwa
