Ticket #542 (closed defect: fixed)
Leading zeroes not ignored in HTTP version
| Reported by: | evan@… | Owned by: | jan |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | core | Version: | 1.4.10 |
| Severity: | trivial | Keywords: | |
| Cc: | Blocked By: | ||
| Need User Feedback: | Blocking: |
Description
HTTP requires that servers ignore leading zeroes in an HTTP request; see
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.1
"Leading zeros MUST be ignored by recipients and MUST NOT be sent."
A request like "GET / HTTP/01.01" will fail with a 400 Bad Request error.
printf "GET / HTTP/01.01\r\nHost: lighttpd.net\r\n\r\n" | nc lighttpd.net 80
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

