Please fix sites doing redirects on HEAD requests
-
Hello, I love how this plugin is now being updated to fix some of the long-standing issues.
However one of the issues I’ve struggled with for a long time is that some sites insist on doing a 302 redirect when a HEAD request is received. I’ve even contacted the sites but they insist they are doing nothing wrong, when in fact they are breaking basic http.
I even made a pull request for this, it works on my site but may not be the most elegant solution to the problem:
https://github.com/wpmudev/broken-link-checker/pull/54One example is:
https://wepresent.wetransfer.com/story/courtney-barnett-kurt-vile$ curl -I "https://wepresent.wetransfer.com/story/courtney-barnett-kurt-vile/" HTTP/2 302 content-type: text/html; charset=UTF-8 location: https://wetransfer.com/404/ date: Fri, 07 Feb 2020 12:40:00 GMT server: Apache x-frame-options: SAMEORIGIN via: 1.1 vegur, 1.1 071f9eb2da57909aeed117ffdc09bd88.cloudfront.net (CloudFront) x-cache: Miss from cloudfront x-amz-cf-pop: HEL50-C1 x-amz-cf-id: LLHEZGwdKUseGdcMg48O3sA94gemdeXgCGLFh85OKgtFBNr7pHq9sg==
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Please fix sites doing redirects on HEAD requests’ is closed to new replies.