// Do not bother with further operations if we already know that we
429
// have no chance.
430
$result->error = t("The server can't issue HTTP requests");
431
return $result;
432
}
433
}
434
418
435
419
// Parse the URL and make sure we can handle the schema.
436
420
$uri = parse_url($url);
468
452
// clash with the HTTP status codes.
469
453
$result->code = -$errno;
470
454
$result->error = trim($errstr);
455
456
// Mark that this request failed. This will trigger a check of the web
457
// server's ability to make outgoing HTTP requests the next time that
458
// requirements checking is performed.
459
// @see system_requirements()
460
variable_set('drupal_http_request_fails', TRUE);
461
471
462
return $result;
472
463
}
473
464
684
675
*
685
676
* Special variables called "placeholders" are used to signal dynamic
686
677
* information in a string which should not be translated. Placeholders
687
* can also be used for text that may change from time to time
688
* (such as link paths) to be changed without requiring updates to translations.
678
* can also be used for text that may change from time to time (such as
679
* link paths) to be changed without requiring updates to translations.
689
680
*
690
681
* For example:
691
682
* @code
701
692
* $message[] = t("If you don't want to receive such e-mails, you can change your settings at !url.", array('!url' => url("user/$account->uid", array('absolute' => TRUE))));
702
693
* @endcode
703
694
*
704
* - @variable, which indicates that the text should be run through check_plain,
705
* to escape HTML characters. Use this for any output that's displayed within
706
* a Drupal page.
695
* - @variable, which indicates that the text should be run through
696
* check_plain, to escape HTML characters. Use this for any output that's