You are here

function lc_GetResponse in Link checker 5

1 call to lc_GetResponse()
lc_DoLinkChecks in ./linkchecker.module

File

./linkchecker.module, line 543
This module periodically check html links referenced by drupal nodes Developed and maintained by Marek Tichy, marek@ecn.cz

Code

function lc_GetResponse($url) {
  $headers = lc_GetHeaders($url);
  if (!$headers) {
    $response = "-1 Unable to connect";
  }
  else {

    // Get status code
    $response = lc_GetStatusCode($headers);
  }
  return $response;
}