[TYPO3-core] Fix bugtracker issue 3172: MIME type determination crashing (HEAD request)
Michael Stucki
michael at typo3.org
Wed Jun 7 15:55:20 CEST 2006
Hi Martin Kutschker wrote:
>> Description: MIME type determination times out due to incorrect HEAD
>> request (incorrect use of single quotes where double quoting is
>> required).
>
> Looking again at the fix I see that the code for htmlmail is correct.
> But there are issues in getURL.
>
> headersOnly is ignored for CURL (the content should be trimmed in the
> CURL section of the code) and the standard fgets() part could use HEAD
> instead of GET.
Right, getURL cannot fetch headers if CURL is used. You could extend the
function, but unfortunately the documentation for curl_* is not so great in
PHP: http://ch.php.net/curl
There are two constants which may be used, but I can't see which of those is
more adequate:
CURLOPT_HEADER
CURLOPT_HTTPHEADER
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list