하얀늑대 :: 하얀늑대의 일상
bloghome Tags |  Guestbook | 
  Tags
타켓층 애인 window 다운로드 CEO 사랑 블루레이 사진 ASP 아이디어 괴물 인수 sql 웹사이트구축 부적 프린터 역발상 php 재테크
banner
하얀늑대 ::
하얀늑대의 일상

Google
내블로그에서 검색
 하얀늑대는?
 Category
allow  모두보기 (275)
spacespace Today Story's (11)
spacespace 핫이슈 (19)
spacespace 디카질 (4)
spacespace Javascript (15)
spacespace 2000 server (9)
spacespace 2003 server (3)
spacespace 리눅스 (3)
spacespace UCC (6)
spacespace 컴퓨터 Tip (15)
spacespace IT news (65)
spacespace 웹 접근성 (3)
 Tags
아이디어 mysql 다운로드 SK커뮤니케이션즈 창업 paypal 인수 속도개선 소스 DVD 패션 미용 이슈 위키 엑셀 타겟층 쇼핑몰 선거 textarea 홍보
  Calendar
<< 2012 February >>
S M T W T F S
29 30 31 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 1 2 3
 New Post
line 중국 오픈마켓 시장 진출
line 중국 오픈마켓 시장 진출
line 중국 인터넷 시장의 국제화
line 중국 인터넷 쇼핑몰 시장의
line 중국 인터넷, 바이러스 마
 New Comment
lineselee2000 : 10/10/27
reply멋진데요.
line클럽4242 : 10/08/26
reply사랑에상처는 사랑으로 치
linesusanna : 08/11/07
replyhey,find <a href=http:
line하얀늑대 : 08/05/22
reply위에 페이지는 한페이지 내
line아아아 : 08/04/26
reply개새끼는너야
 New Tracbacks
lineWeb 1.0 과 Web 2.0
line06/11/18
line괴물 - 2006. 7. 28.
line06/07/29
 New Archive
2011 April (13)
2011 March (2)
2011 January (1)
2010 December (1)
2010 November (1)
...more
  Link Site
올블로그
KOON
태터툴즈
엑스파이더
심프로그
디지털예보
thesimplog.com
feed rss
 Visitor Statistics
Total  :  325493
Today :  98
Yesterday :  147


 Google



blog bar tagsbar guest loginbarlogoutbarX-inbar
line MSXML2.ServerXMLHTTP 에러처리
Today Story's | 09/01/07 | 하얀늑대
오류가 발생할경우 해당 오류를 처리할수 있는 방법을 설명하고 있습니다. 즉,

 

sUrl = "http://www.request.com/request.php"
set oHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
 '오류가 발생할경우 무시하고 다음 처리구문으로 이동함

on error resume next    

oHttp.Open "GET", sUrl, False
oHttp.Send ""
'지정한 경로의 서버상태값을 가지고 옵니다. (200, 404, 500 등)

status = oHttp.status

 

'오류가 있거나 (오류가 없을경우 err.number가 0 값을 돌림) status 값이 200 (로딩 성공) 이 아닐경우

if err.number <> 0 or status <> 200 then
      if status = 404 then

            Response.Write "존재하지 않는 페이지 입니다.(404)"

      elseif status >= 401 and status < 402 then

            Response.Write "접근이 금지된 페이지 입니다.(401)"

      elseif status >= 500 and status <= 600 then
            Response.Write "내부 서버 오류 입니다.(500)"

      else

            Response.Write "서버가 다운되었거나 올바른 경로가 아닙니다."

      end if

 

'오류가 없음 (문서를 성공적으로 로딩함)

else

      Response.Write oHttp.ResponseText

end if

 

Set oHttp = Nothing

 


태그: MSXML2.ServerXMLHTTP
bullet관련글0 | 댓글0
Name :   Pass :  URL :
비밀글로 등록  submit
이전/ 22 23 24 25 26 [27] 28 29 30 31 / 다음 top