[TYPO3-core] RFC: Various improvements to t3lib_div::getURL

Martin Kutschker Martin.Kutschker at blackbox.net
Sun Feb 19 09:40:23 CET 2006


Michael Stucki <michael at typo3.org> writes on 
Sat, 18 Feb 2006 12:47:39 +0100 (MET):

> Hi Martin,
> 
> 
> >> Merge the getHeader functionality into t3lib_div::getURL().
> > 
> > Isn't the Host:-header only part of HTTP/1.1?
> 
> To be honest, I have no idea. Are you talking of this line:
> 
> $msg = 'GET '.$parsedURL['path'].($parsedURL['query'] ?
> '?'.$parsedURL['query'] : '')." HTTP/1.0\r\nHost:
> ".$parsedURL['host']."\r\n\r\n";
> 
> In this case there is no need to change it because I simply
> moved this part from the indexer class (as you can notice a
> few lines down...)


I noticed, but just because it there has been a sloppy use of a standard in the past that doesn't mean it has to be continued in the future.

I stick to the saying that you have to be relaxed on inout but strict on output.

Masi 



More information about the TYPO3-team-core mailing list