linkcheck
linkcheck copied to clipboard
[Feature Request] - BasicAuth
Adding BasicAuth via direkt Input(https://user:passwort@fqdn
) or extra Header would be a nice option for secure environments.
Being able to add headers would mean most of us would be able to use this tool on secured websites.
linkcheck <url> --headers { token: "plop"}
Hi, this feature would be very helpfull. I'd like to provide a pullrequest but I don't know anything about this programming with dart.
Looks like there have to be cheanges
-
for requests here https://github.com/filiph/linkcheck/blob/8ab5f5b516701f98c18cb2f16a73e5f93ebf7f12/lib/src/worker/worker.dart#L162 or here https://github.com/filiph/linkcheck/blob/8ab5f5b516701f98c18cb2f16a73e5f93ebf7f12/lib/src/worker/worker.dart#L206 and here https://github.com/filiph/linkcheck/blob/8ab5f5b516701f98c18cb2f16a73e5f93ebf7f12/lib/src/worker/worker.dart#L216
-
and handling of the flag
--headers
has to be implemented