xmlhttp請求一個URL,並執行.

Posted on 2006-09-12 16:13  零度海洋  阅读(302)  评论(1)    收藏  举报
Function ExecUrl(jobno,datestr) '改變mysql數據庫,使與本系統數據庫同步操作
set xmlhttp = CreateObject("Microsoft.XMLHTTP")
 xmlhttp.open "post","http://192.168.2.7:8080/web/usenddate.do",false
 stra="jobno="&jobno&"&senddate="&datestr
 xmlhttp.setrequestheader "content-length",len(stra)
 xmlhttp.setrequestheader "content-type","application/x-www-form-urlencoded"
 xmlhttp.send stra
 set xmlhttp=nothing
End Function

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3