Closed nutjob4life closed 3 years ago
FYI @jordanpadams https://foobar.com/ isn't a nonsensical URL! It's a real website that just happens to have an invalid SSL certificate 😝
In any case, try the latest commit on for size: 06f97ac0234c3e2c263bfee594c71c09f7f50fef
📜 Summary
This resolves #102 by adding a URL validator (a singleton utility) whose job is to check generated URLs for well-formedness and retrievability. It checks only the first such URL presented to it and fails (early) if it's not well-formed and the resource it describes cannot be resolved and exactly 1 byte of it successfully retrieved. (Normally we would do this with an HTTP
HEAD
request to save network usage butfile:
style URLs don't supportHEAD
.)Merging this PR also adds:
🩺 Test Data and/or Report
🧩 Related Issues
102