Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to check server status using InetCtls.Inet?

Reply
Thread Tools

How to check server status using InetCtls.Inet?

 
 
Pius
Guest
Posts: n/a
 
      07-02-2003
Set Inet = Server.CreateObject("InetCtls.Inet.1")
Inet.URL = "http://www.yahoo.com/"
Inet.AccessType = icDirect
Inet.Protocol = icHTTP
Inet.RemotePort = 80
Inet.RequestTimeout = 60
response.write(Inet.ResponseCode)

I got this piece of code from some forum on the web. The responsecode
is supposed to return whether the connection is sucessful (ie. got a
response from the web server) or not. However, I am finding that the
responsecode always return 0, like if i use www.yahoo.com or
www.yahoo.csdfsdfsd.

What is the best way to check whether a website is up or not using
ASP?

thanks,
Pius
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Server status check in web page CiRcUiT HTML 4 09-26-2009 10:44 AM
Using python to check the status of a program Kamuela Franco Python 5 12-29-2003 02:19 AM
How do I check if my old company is (mis)using my MCP ID# for 'certified partner status' Nic Microsoft Certification 2 09-19-2003 02:08 PM
How do I check if my old company is (mis)using my MCP ID# for 'certified partner status' Nic MCSE 5 07-18-2003 03:57 PM



Advertisments