For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2007 > Re: [PEAR] HTTP_reqesut addHeader() makes header's name lowercase









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] HTTP_reqesut addHeader() makes header's name lowercase
Massimiliano Arione

2007-05-23, 8:01 am

Massimiliano Arione wrote:
> addHeader method, at row 479 in HTTP/Request.php
>
> function addHeader($name, $value)
> {
> $this->_requestHeaders[strtolower($name)] = $value;
> }
>
> Is there a reason for this?
> What if I need to send an all uppercase header's name?


Never mind.
I found that RFC 2616 requires header's names to be case insensitive.

--
Massimiliano Arione

http://garakkio.altervista.org
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com