Bug #72299 » patch.diff
typo3_src-7.6.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php | ||
---|---|---|
return false;
|
||
}
|
||
$method = $includeHeader == 2 ? 'HEAD' : 'GET';
|
||
$msg = $method . ' ' . (isset($parsedURL['path']) ? $parsedURL['path'] : '/') . ($parsedURL['query'] ? '?' . $parsedURL['query'] : '') . ' HTTP/1.0' . CRLF . 'Host: ' . $parsedURL['host'] . '
|
||
Connection: close
|
||
';
|
||
$msg = $method . ' ' . (isset($parsedURL['path']) ? $parsedURL['path'] : '/') . ($parsedURL['query'] ? '?' . $parsedURL['query'] : '') . ' HTTP/1.0' . CRLF . 'Host: ' . $parsedURL['host'] . CRLF . 'Connection: close' . CRLF . CRLF;
|
||
if (is_array($requestHeaders)) {
|
||
$msg .= implode(CRLF, $requestHeaders) . CRLF;
|
||
}
|
||
$msg .= CRLF;
|
||
fputs($fp, $msg);
|
||
while (!feof($fp)) {
|
||
$line = fgets($fp, 2048);
|