Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

  1. Make HEAD request instead of GET request.

...

  1.  Specify "CURLOPT_NOBODY" option to "kCurlHelper" class before making the HTTP request in the "LinkValidationEventHandler::_validateLink" method.
  2. When HEAD request fails (some websites block HEAD requests) do a GET request.

Related Tasks