I've recently noticed that
HttpStatus() is not working as it used to. The statuses of active URLs return 200 as expected, but the issue appears when testing against redirected URLs and / or broken pages (see #1 & #2 below). I've tried the following:
- Applying all 5 request methods as the 3rd parameter
- Turning cache on and off from GlobalSettings
- Increasing / randomizing delays between requests
- Running from different computers (one on a public network and one on a company VPN)
- Reviewing previous posts such as HttpStatus on Amazon, etc
I've been using SeoTools v126.96.36.199 since March 22, but I wasn't paying close attention to know if that's when this started.
#1. Redircted Pages — When testing URLs with known redirects, it appears that
HttpStatus() is only returning the status of the final URL, not the status of the URL in the argument.
For example, the following URL is definitely a redirect (a chain, in fact), but
HttpStatus() is reporting it as a 200:
=HttpStatus( "https://www.penfed.org/personal" ) = 200 OK (should be 301)
RedirectCount(), are all working correctly and report the expected results. Unfortunately, none of these provide the important status codes that I'm needing.
#2: Broken Pages — When testing URLs that are known 404's,
HttpStatus() is returning an Excel error, rather than 404 Not Found.
For example, the following URLs do not exist, but instead of returning 404 Not Found, all result in #VALUE! errors:
=HttpStatus( "https://www.penfed.org/bogus-url" ) = #VALUE! (should be 404)
=HttpStatus( "https://www.amazon.com/bogus-url" ) = #VALUE! (should be 404)
=HttpStatus( "https://www.ebay.com/bogus-url" ) = #VALUE! (should be 404)
For reference, here are my current settings: