Sign in to follow this  
Followers 0
water

Check HTTP Status Code

10 posts in this topic

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



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

Hmm... Then you might find out what COM directive tells you that Code... Hmm... sprichst du deutsch?


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

Share this post


Link to post
Share on other sites

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

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

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

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?

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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

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.. ;)

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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  
Followers 0