Changeset 796 for trunk/lib/Utilities.inc.php
- Timestamp:
- Jul 13, 2023 3:13:57 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Utilities.inc.php
r793 r796 1736 1736 $headers = get_headers($url, 1, $context); 1737 1737 $app =& \App::getInstance(); 1738 $app->logMsg( getDump($headers, true, SC_DUMP_JSON), LOG_DEBUG, __FILE__, __LINE__);1738 $app->logMsg(sprintf('HTTP response headers for %s %s: %s', strtoupper($method), $url, getDump($headers, true, SC_DUMP_JSON)), LOG_DEBUG, __FILE__, __LINE__); 1739 1739 if (empty($headers)) { 1740 1740 return false; … … 1745 1745 $final_http_status_key = end($http_status_keys); // E.g., `1` 1746 1746 $final_http_status = $headers[$final_http_status_key]; // E.g., `HTTP/1.1 200 OK` 1747 $app->logMsg(sprintf(' $final_http_status: %s', $final_http_status), LOG_DEBUG, __FILE__, __LINE__);1747 $app->logMsg(sprintf('Last HTTP status code: %s', $final_http_status), LOG_DEBUG, __FILE__, __LINE__); 1748 1748 if ($headers && preg_match(sprintf('/\b(%s)\b/', join('|', $valid_response_codes)), $final_http_status)) { 1749 1749 $headers = array_change_key_case($headers, CASE_LOWER);
Note: See TracChangeset
for help on using the changeset viewer.