하얀늑대 :: 하얀늑대의 일상
bloghome Tags |  Guestbook | 
  Tags
타겟층 소스 CEO 위키 mysql 핸드폰 패션 투표 디카 IP vluu nv10 웹브라우져 프린터 컴퓨터 회사가기시러쏭 Rss 인터넷 쇼핑 컨텐츠 tip 조삼모사
banner
하얀늑대 ::
하얀늑대의 일상

Google
내블로그에서 검색
 하얀늑대는?
 Category
allow  모두보기 (253)
spacespace Today Story's (10)
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 (52)
 Tags
SK커뮤니케이션즈 입냄새 우울증 소스 IBM 조개구이 쿠키 아이디어 따뜻한 세상 GetRows 사진 IP sql 2005 server 애완견 vluu nv10 이슈 팝업 시디복구 재테크
  Calendar
<< 2010 March >>
S M T W T F S
28 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 1 2 3
 New Post
line MS-SQL 설치가이드
line Flex asp 연동
line 웹서버 스트레스 툴 사용법
line vb 또는 asp에서 다른 웹페
line MSXML2.ServerXMLHTTP 에러
 New Comment
linesusanna : 08/11/07
replyhey,find <a href=http:
line하얀늑대 : 08/05/22
reply위에 페이지는 한페이지 내
line아아아 : 08/04/26
reply개새끼는너야
line아이니 : 08/02/23
reply《$mode 값이 mailsend 일
linenunbar : 08/02/01
reply제메일로 자세한것좀 보내
 New Tracbacks
lineWeb 1.0 과 Web 2.0
line06/11/18
line괴물 - 2006. 7. 28.
line06/07/29
 New Archive
2009 August (1)
2009 April (2)
2009 March (1)
2009 January (1)
2008 November (1)
...more
  Link Site
올블로그
KOON
태터툴즈
엑스파이더
심프로그
디지털예보
thesimplog.com
feed rss
 Visitor Statistics
Total  :  223359
Today :  178
Yesterday :  209


 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
이전/ 1 2 3 4 [5] 6 7 8 9 10 / 다음 top