Project

General

Profile

Actions

Feature #54513

closed

linkvalidator: improve tolerance for forbidden HEAD requests

Added by Alexander Stehlik over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Linkvalidator
Target version:
-
Start date:
2013-12-19
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
easy
Sprint Focus:

Description

Currently the linkhandler will first try a HEAD request to check an external link.

If the server returns the correct response code (405 - Method not allowed) it will retry the request using the GET method.

Unfortunately I stumbled over some misconfigured servers that will return 403 - Forbidden response codes when the HEAD method is used. In that case the linkvalidator will report a broken link, even though the GET request would work fine.

Of course it would be nice if all servers are configured correctly but there probably will always be some that are not.

So my suggestion is to also retry the GET request on 403 errors or alternatively make the response codes configurable that trigger a fallback GET request.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #58145: Linkvalidator - HEAD response codesClosed2014-04-24

Actions
Actions

Also available in: Atom PDF