DIM I, JNKCURL, JNKCHTML, JNKCSTATUS, JNKCSERVER
Function chK_ONCLICK ()
Jnkcurl = JNKCINPUT.VALUE
Call getDetail
i = i 1
JNKC_SHOW.INNERHTML = "
" & i & jnkcurl & " font>
" & jnkcstatus & " pre>" & jnkc_show.innerhtmlEND FUNCTION
DIM JNKCXMLHTTP
Sub getdetail
Set jnkcxmlhttp = creteObject ("Microsoft.xmlhttp")
JNKCXMLHTTP.ONREADYSTATECHANGE = GetRef ("getStatus")
JNKCXMLHTTP.Open "Get", Jnkcurl, False
ON Error ResMe next
JNKCXMLHTTP.SEND
Set jnkcxmlhttp = Nothing
End Sub
Sub getStatus
IF jnkcxmlhttp.readystate <> 4 THEN
EXIT SUB
END IF
IF jnkcxmlhttp.status = 404 THEN
JNKCSTATUS = "This page does not exist!"
Elseif Jnkcxmlhttp.status <200 THEN
JNKCSTATUS = "Client error, information:" & cstr (jnkcxmlhttp.status) & "& jnkcxmlhttp.statustext
Elseif Jnkcxmlhttp.status <300 THEN
JNKCSTATUS = "Success, the web page can be accessed."
Elseif Jnkcxmlhttp.status <400 THEN
JNKCSTATUS = "Redirection, Information:" & CSTR (JNKCXMLHTTP.STATUS) & "& jnkcxmlhttp.statustextelseif Jnkcxmlhttp.status <500 THEN
JNKCSTATUS = "Client error, information:" & cstr (jnkcxmlhttp.status) & "& jnkcxmlhttp.statustext
Elseif Jnkcxmlhttp.status <600 THEN
JNKCSTATUS = "server error, information:" & cstr (jnkcxmlhttp.status) & "& jnkcxmlhttp.statustext
Else
JNKCSTATUS = "Domain Names or Network Connection Errors, Information:" & CSTR (JNKCXMLHTTP.STATUS & "& JNKCXMLHTTTP.STATUSTEXT
END IF
IF jnkcxmlhttp.status <600 TEN CALL GETSERVER
End Sub
SUB GetServer
JNKCSERVER = JNKCXMLHTTP.GETRESPONSEHEADER ("Server")
IF JNKCSERVER <> "" ""
JNKCSTATUS = JNKCSTATUS & "
HTTP Server:" & JNKCSERVEREND IF
JNKCSTATUS = "" & jnkcstatus " b>
All Feedback Information:
" & jnkcxmlhttp.GetallResponseheadersEnd Sub
Script>
body>
html>