Jump to content
Sign in to follow this  
water

Check HTTP Status Code

Recommended Posts

water

Hi AutoIt gurus,

I would like to check the availability of some of our websites. Right now one of our sites returnes "HTTP 500 - Internal Server Error".

How can I check the HTTP status code?

I tried IE.au3 and looked at _IEGetProperty but couldn't find a way to get the status code.

Thanks in advance

Thomas


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
water

And by using the _IEBodyReadHTML() Function, and then check the Code?

That would be a "workaround" as IE already provides the information I need.

Thomas

BTW: "Küchenkasten"


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
water

sprichst du deutsch?

Wenn der Vorarlberger Dialekt als Deutsch durchgeht, dann ja

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Raindancer

Ich bin schweizer, weshalb ich mit allen möglichen DIalekten eigentlich absolut keine mühe habe, (ausser demjenigen aus dem Wallis).

Wenn man nun herausfinden kann wie man an den Statuscode vom IE herankommt dann wäre dein Problem gelöst.

Jetzt kann ich dir dabei aber leider nicht weiterhelfen.

Im Developersforum hat es einen Thread zur IE.au3 UDF und dort kannst du vieleicht DaleHolm fragen wie du an den Statuscode herankommst ;)


Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer

Share this post


Link to post
Share on other sites
water

Im Developersforum hat es einen Thread zur IE.au3 UDF und dort kannst du vieleicht DaleHolm fragen wie du an den Statuscode herankommst ;)

Gute Idee, mach ich gleich.

Schöne Grüße in die Schweiz


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
seandisanti

Gute Idee, mach ich gleich.

Schöne Grüße in die Schweiz

i'm not having the same issue or anything, but if this was solved, does anybody feel like posting the resolution in english? just incase someone else has the same problem but only speaks english?

Share this post


Link to post
Share on other sites
water

i'm not having the same issue or anything, but if this was solved, does anybody feel like posting the resolution in english? just incase someone else has the same problem but only speaks english?

Hi, we just discovered that we are speaking the same language (kind of german).

I didn't get a solution on how to check the HTTP status code directly but the suggestion in http://www.autoitscript.com/forum/index.php?showtopic=16001 solved my problem.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
seandisanti

Hi, we just discovered that we are speaking the same language (kind of german).

I didn't get a solution on how to check the HTTP status code directly but the suggestion in http://www.autoitscript.com/forum/index.php?showtopic=16001 solved my problem.

cool, thanks for the explanation... sorry i try to learn from other people's issues, and if i don't understand the resolution, i learn nothing.. ;)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.