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
//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
相关文章推荐
- http请求之of_ordering_http_get
- http请求之of_ordering_json
- android基于开源网络框架asychhttpclient,二次封装为通用网络请求组件
- 本地拦截genymotion或者Android模拟器的网络请求
- NAT穿越-TCP打洞
- Android-Volley网络通信框架(ImageRequest,ImageLoader,NetWorkImageView)
- Linux网络配置(仅主机模式)
- httpd和nginx
- 基于Windows Socket 的网络通信中的心跳机制原理
- http://www.cnblogs.com/dojo-lzz/p/3722003.html
- async-http-client开源库学习笔记(一)
- 桥接网络中检查是否能够上网
- 桥接网络中检查是否能够上网
- HTTP协议 (七) Cookie
- HTTP协议 (六) 状态码详解
- Linux网络编程--文件空间映射mmap函数
- HTTP协议 (五) 代理
- HDFS并行复制Distcp
- HTTP协议 (四) 缓存
- HTTP协议 (三) 压缩