linkcheck
linkcheck copied to clipboard
.netrc authentication?
👋 thanks for the great library (consuming via mdbook)
Might it be possible to read credentials for external sites via a local .netrc
file (e.g.,) and then pass those to reqwest to use as basic auth? This is for testing links to external sites that require authentication
I've never heard of .netrc
before now. Do you know how it works or if there are existing crates for using them?
@Michael-F-Bryan yes it's fairly trivial to parse as it has a well-defined format https://everything.curl.dev/usingcurl/netrc
There are crates available, e.g., https://docs.rs/netrc/0.4.1/netrc/struct.Netrc.html