Dedicated Windows Server Hosting Specialist LiveZilla Live Help
Sales: sales@databasemart.com
Support: support@databasemart.com
Phone: 409-877-4238



How To Setup Windows Scheduled Task To Access a Web Page (.htm, .asp, .aspx, ...) Periodically?

Problem

Sometimes you need to access a web page periodically in your Windows 2008/2003 server.

Solution

You can write a .vbs script file and schedule it as Windows task (CScript C:\YourScript.vbs //H:CScript).

YourScript.vbs

        Call Send_HTTP_Request()

        Sub Send_HTTP_Request()

                'Force the script to finish on an error.
                On Error Resume Next

                'Declare variables
                Dim objRequest
                Dim URL

                Set objRequest = CreateObject("Microsoft.XMLHTTP")

                'Put together the URL link appending the Variables.
                URL = "http://www.yourdomain.com/your_page.aspx"

                'Open the HTTP request and pass the URL to the objRequest object
                objRequest.open "POST", URL , false

                'Send the HTML Request
                objRequest.Send

                'Set the object to nothing
                Set objRequest = Nothing

        End Sub
    

Navigator

Other How-Tos

Express Windows Server

CPU: Intel Core 2 Duo E8400
CPU Speed: 3.00GHz
Cache: 6MB
RAM: 4GB RAM
Disk: 2x320GB SATA
RAID: RAID 1
Bandwidth: 1000GB
Windows 2008/2003: Free
IP Addresses: 8
Monthly: $149.00

Detail...

Standard Windows Server

CPU: Quad-Core Xeon E5410
CPU Speed: 2.33GHz
Cache: 12MB
RAM: 4GB RAM
Disk: 2x146GB SCSI
RAID: RAID 1
Bandwidth: 1500GB
Windows 2008/2003: Free
IP Addresses: 8
Monthly: $259.00

Detail...