Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- jquery 레이어
- synology
- AC1300
- Getrows
- ajax
- SQL Injection
- 시놀로지
- 커널
- Injection
- disabled
- jQuery
- println
- readonly
- XMLHTTP
- PHP GCM
- form
- submit
- lsusb
- javascript
- RTL88x2BU
- ASP
- replace
- include
- euc-kr
- FileSystemObject
- 따라다니는 배너
- 크로스 컴파일
- DS718+
- utf-8
- 무선랜카드
Archives
- Today
- Total
아는 것이 좋은 것이다.
[ASP] XMLHTTP GET으로 파일 읽어오기 본문
function GetFileFrom(sURL, sSavepath) on error resume next dim oHTTP, oStream Const adTypeBinary = 1 Const adSaveCreateOverWrite = 2 set oHTTP = Server.CreateObject("Microsoft.XMLHTTP") oHTTP.open "GET", sURL, False oHTTP.send set oStream = Server.Createobject("ADODB.Stream") oStream.type = adTypeBinary oStream.open oStream.write oHTTP.responseBody oStream.savetofile sSavepath, adSaveCreateOverWrite set oStream = nothing set oHTTP = nothing if err.number <> 0 then GetFileFrom = false Else GetFileFrom = true end if end function Call GetFileFrom(sPath, "test11.xml") ' 사용예
'ASP' 카테고리의 다른 글
[ASP] XML 읽어서 출력 (0) | 2014.06.28 |
---|---|
[ASP] 변수로 인클루드(include) 하기 (0) | 2014.06.23 |
[ASP] ASP 쌍따옴표 replace (0) | 2014.06.05 |
[ASP] 랜덤함수 (0) | 2014.05.23 |
[ASP] xml 데이터를 특정URL로 전송, 결과값 받기 (0) | 2014.05.10 |
Comments