[TYPO3-core] RFC: #9313: Introduce HTTP_STATUS-Constants

Martin Kutschker masi-no at spam-typo3.org
Mon Sep 8 21:17:42 CEST 2008


Ingo Renner schrieb:
> Steffen Kamper wrote:
>> Hi
>>
>> This is an SVN patch request.
>>
>> Type: Bugfix
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=9313
>>
>> Branches: trunk
>>
>> Description:
>> Now having t3lib_div::redirect it's good to have standard
>> HTTP_STATUS-Header available as class constants.
>> This patch adds them according to Internet RFC 0002616

+1

> As the question came up with the redirect patch: Wouldn't it be better
> to have a class t3lib_http instead of loading more and more stuff into
> t3lib_div? I'd actually prefer to do it this way instead of putting all
> kinds of stuff into t3lib_div...

Yes, but please don't hold this patch. If we create this new class we
can move all the relevant stuff in one sweep.

> Things I could imagine for t3lib_http:
> 
> * these constants
> * redirect() - t3lib_div then uses this class
> * _GET
> * _POST
> * _GP

Maybe we can even get better names :)

> * getRequest() - gets the full http request
> * getHeader()
> * sendHeader()
> * getUserAgent()
> * move all the stuff from t3lib_div that doesn't really belong there
> here (if it has to do with HTTP)
> 
> Even more sofisticated would of course be to have a separate class for a
> http request and http response

Yes, but only if we do real stuff. Currently we have only a lame HTTP
1.0 client.

Masi


More information about the TYPO3-team-core mailing list