본문 바로가기

classic asp

[classic asp] HTTP URL 파일 다운로드

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

'classic asp' 카테고리의 다른 글

[classic asp] 숫자관련 함수  (0) 2021.11.07
[classic asp] base64 인코딩/디코딩  (0) 2021.11.03
[classic asp] JWT Web Token  (0) 2021.04.26
[classic asp] AES256 암호화, 복호화  (1) 2021.04.26
[classic asp] 엑셀(xls)로 저장  (0) 2021.02.22