Search code examples
phpapacheapache2php-5.3apache2.2

Does Apache pass a malformed HEAD request to PHP?


Please consider the below request from apache access log.

119.63.193.131 - - [03/Oct/2013:19:22:19 +0000] "HEAD /blah/blahblah/ HTTP/1.1" 301 - "-" "\"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)\""

Does this request comply with the RFC / standard?

Would Apache pass malformed HEAD requests to PHP?

My configuration is Apache 2.2.15, mod_fcgid 2.3.7, PHP 5.3.3, Linux 2.6.32.60-40 x64, CentOS 6.4


Solution

  • I see nothing obviously wrong about the request in that log entry. It has an unusual user agent (with double quotes in it), but that doesn't make it malformed - it's perfectly valid, and Apache would certainly pass it on to PHP.