linkcheck icon indicating copy to clipboard operation
linkcheck copied to clipboard

Some sites only accept `GET` method while denying `HEAD`

Open tw4452852 opened this issue 4 years ago • 0 comments

I think it would be nice to have GET as a fallback if HEAD failed. I encountered this issue many times. For example this link: https://gsuitetips.com/tips/chrome/restart-chrome-without-losing-tabs/

> curl -I  https://gsuitetips.com/tips/chrome/restart-chrome-without-losing-tabs/
HTTP/1.1 200 Connection established

HTTP/2 404
...

> curl https://gsuitetips.com/tips/chrome/restart-chrome-without-losing-tabs/
HTTP/1.1 200 Connection established

HTTP/2 200
...

tw4452852 avatar Sep 29 '21 02:09 tw4452852