http status code
Hi! I'm trying to get the status code of a url. I tried using this code..
<%
Dim xml, strData, url
url = "http://www.google.com"
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
xml.Open "GET", url, false ' the True specifies an asynchronous request
Call xml.Send()
response.write xml.status
%>
But then, I only get a blank screen. When I viewed the source, here's the output:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
How come the status isn't displayed? What else should I do?
Thanks!!!
|