Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Support For Redirects #20

Open
sprankhub opened this issue May 8, 2022 · 0 comments
Open

Better Support For Redirects #20

sprankhub opened this issue May 8, 2022 · 0 comments

Comments

@sprankhub
Copy link
Contributor

If I run the checker on a password-protected page, where I defined redirects for some pages, I get the following output:

simon@simonpad-t470s ~ > ./http-statuscode-checker.phar check url-list.csv -f url-list-result-2022-05-08.csv -d 10 -b https://user:[email protected]
                              
    __    __  __                   __        __                            __                __              __            
   / /_  / /_/ /_____        _____/ /_____ _/ /___  ________________  ____/ /__        _____/ /_  ___  _____/ /_____  _____
  / __ \/ __/ __/ __ \______/ ___/ __/ __ `/ __/ / / / ___/ ___/ __ \/ __  / _ \______/ ___/ __ \/ _ \/ ___/ //_/ _ \/ ___/
 / / / / /_/ /_/ /_/ /_____(__  ) /_/ /_/ / /_/ /_/ (__  ) /__/ /_/ / /_/ /  __/_____/ /__/ / / /  __/ /__/ ,< /  __/ /    
/_/ /_/\__/\__/ .___/     /____/\__/\__,_/\__/\__,_/____/\___/\____/\__,_/\___/      \___/_/ /_/\___/\___/_/|_|\___/_/     
             /_/                                                                                                           
                   by elgentos
v1.1.1
Validating 6245 URLs...
Processing 6245 URLs...
+--------------------------------------------------------------------------+-------------+
| URL                                                                      | Status Code |
+--------------------------------------------------------------------------+-------------+
| https://user:[email protected]/                                            | 200         |
| https://user:[email protected]/adfafhidsfhddf.html                         | 401         |
| https://user:[email protected]/sdfjsjfdhsdfsdsdfss.html                    | 401         |
| https://user:[email protected]/sdfsdfsdfsdfsdda.html                       | 401         |
| https://user:[email protected]/we/                                         | 200         |
+--------------------------------------------------------------------------+-------------+

So a 401 (Unauthorized) is logged for all redirected pages, which is okay, but not perfect :) Wouldn't I usually be interested in the end status code after all redirects? I'd say the tool should either:

  1. Blindly follow all redirects and only log the last status code.
  2. Inform about redirects and additionally log the last status code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant