...
Using GET request can however result in a memory leaks, when validated URLs lead to large downloadable files, because file is downloaded completely and only then response HTTP code is checked.
Solution
- Make HEAD request instead of GET request.
...
- Specify "CURLOPT_NOBODY" option to "kCurlHelper" class before making the HTTP request in the "LinkValidationEventHandler::_validateLink" method.
- When HEAD request fails (some websites block HEAD requests) do a GET request.