#98 Error in HTTP code?

resolved
closed-fixed
htnet (8)
5
2002-01-04
2002-01-04
Matthias Emmert
No

Some HTTP server replies may include an line "transfer-
coding = Chunked". This causes a time out error in
htdig, since the document content will not be read
correctly.
htdig code is looking for the value "chunked"
(lowercase) while the HTTP spec (see below) allows
case-insensitivity.

We assume the bug in
$Id: HtHTTP.cc,v 1.15.2.23 2000/12/17 19:00:08 angus
Exp $

Exzerpt from HTTP spec:
...tons of lines omitted...
transfer-coding = "chunked" | transfer-
extension
transfer-extension = token *( ";"
parameter )

Parameters are in the form of attribute/value
pairs.

parameter = attribute "=" value
attribute = token
value = token | quoted-string

All transfer-coding values are case-insensitive.
HTTP/1.1 uses
transfer-coding values in the TE header field
(section 14.39) and in
the Transfer-Encoding header field (section 14.41).
...tons of lines omitted...

Matthias Emmert
START Amadeus, B2B Portal
Matthias.Emmert2@start.de

Discussion

    • milestone: --> resolved
    • assigned_to: nobody --> angusgb
    • status: open --> closed-fixed