classic asp
[classic asp] HTTP URL 파일 다운로드
콩배
2021. 10. 29. 11:14
set http = Server.CreateObject("Chilkat_9_5_0.Http")
' Download a .zip
localFilePath = Server.Mappath(".")"/temp/file.zip"
success = http.Download("http://test.co.kr/file.zip",localFilePath)
If (success <> 1) Then
Response.Write "<pre>" & Server.HTMLEncode( http.LastErrorText) & "</pre>"
Response.End
End If