Jump to content
Sign in to follow this  

Check HTTP status code

Recommended Posts


Is there any function out there to retrieve the HTTP Status code of a webpage?

I want to check every ten minutes or so if my website is still online.

I thought of using Ping but this function doesnt seems to return lot of infos...



Edited by Dieuz

Share this post

Link to post
Share on other sites

Also you can try this udf too http://www.autoitscript.com/forum/index.php?showtopic=84133

#include "WinHTTP.au3"
$nOffset = 1

$input=InputBox("Enter Site URL","ENTER SITE URL","","")
$hOpen = _WinHttpOpen()

$hConnect = _WinHttpConnect($hOpen, $input)

$hRequest = _WinHttpOpenRequest($hConnect, "GET", "/")



If _WinHttpQueryDataAvailable($hRequest) Then
    $header = _WinHttpQueryHeaders($hRequest)








[size="5"] [/size]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this