httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Chelidze <gcheli...@magticom.ge>
Subject Re: Header with trailing space in field name passed to CGI script
Date Tue, 14 Apr 2015 13:04:11 GMT
> Have you test-driven any other web server or proxy software with this? 
A quick update:

I have made some tests with lighttpd/1.4.31 and below are the results:

1. Trailing SPACE between the field name and the colon is translated to 
the underscore in CGI environment:

so for X-MSISDN : test you get HTTP_X_MSISDN_=test in the environment.

2. Invalid HTTP Version is handled differently:

with apache 2.4.12

GET / HTTP
Host: localhost

HTTP/1.1 200 OK
Date: Tue, 14 Apr 2015 12:51:45 GMT
Server: Apache/2.4.12 (Unix)
Last-Modified: Mon, 11 Jun 2007 18:53:14 GMT
ETag: "2d-432a5e4a73a80"
Accept-Ranges: bytes
Content-Length: 45
Connection: close
Content-Type: text/html

with lighttpd 1.4.31

GET / HTTP
Host: localhost

HTTP/1.0 400 Bad Request
Content-Type: text/html
Content-Length: 349
Connection: close
Date: Tue, 14 Apr 2015 12:52:33 GMT
Server: lighttpd/1.4.31

Thanks,

-- 
George Chelidze


Mime
View raw message