PB使用MSXML2.ServerXMLHTTP方式send数据时失败
oleobject iole_http
iole_http = create oleobject
iole_http.connecttonewobject("MSXML2.ServerXMLHTTP")
iole_http.settimeouts(10000,10000,10000,60000)
try
iole_http.open("POST",ls_url,false)
iole_http.setrequestheader("Content-type","application/x-www-form-urlencoded")
iole_http.setrequestheader("Content-Length",string(ll_length))
iole_http.send(lblb_args)
catch(runtimeerror rte)
ls_err = "请求异常:" + rte.getmessage()
end try
在执行时,如果与服务器网络不通时,send会超时失败,请问这时要如何获取这个失败的原因?我用rte.getmessage()获取到的是说我的send函数调用失败,像下面这样:Error: Error calling external object function send at line 23 in function of_put_json of object n_pos_pay_le.
而不是俱体的错误内容,这个俱体的错误内容有什么办法可以获取到吗?