您的位置:首页 > 理论基础 > 计算机网络

http请求之of_ordering_http_post

2015-08-20 12:53 465 查看
//Public function of_ordering_http_post (string as_vipsj,string as_url) returns string
//string as_vipsj
//string as_url
long ll_temp
string ls_ref
string responsetext=""
string ls_temp
string ls_writh
string ls_err
oleobject http
//runtimeerror er1

ls_ref = as_url
http = CREATE oleobject
http.connecttonewobject("Microsoft.XMLHTTP")
http.open("post",ls_ref,FALSE)
TRY
http.setrequestheader("If-Modified-Since","0")
CATCH (runtimeerror er1)
END TRY
http.send(as_vipsj)
ll_temp = http.readystate
IF ll_temp <> 4 THEN
DESTROY http
ls_err = ""
ELSE
responsetext = http.responsetext
ls_temp = gfunc.uf_getmiditem(responsetext,",",responsetext)
ls_writh = gfunc.uf_getmiditem(ls_temp,":",ls_temp)
ls_err = mid(ls_temp,2,1)
END IF
IF isvalid(http) = FALSE THEN DESTROY http
RETURN ls_err
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: