Skip to content
Tcl Source Code History Of Ticket 1589887
Login

History Of Ticket 1589887

Artifacts Associated With Ticket 1589887

  1. Ticket change [050ccc8d7b] (rid 88984) by kaitzschu on 2006-11-03 12:38:28:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Currently when using http::geturl with a server that 
      does not send required headers (but starts sending 
      data right away) http::Event stays in state=header and 
      after command returns there is effectively nothing 
      received (unless by accident some line happens to look 
      like HTTP-header).
      
      This behaviour rises from missing else clause in 
      http::Event (last statement is elseif).
      
      Suggested behaviour is that if in state=header there 
      is a nonempty line that does not match any of 
      expressions so far that line is considered to be first 
      line of data and treated as such.
      
      This implementation can't handle requests that use -
      handler option, as socket buffer can't be unread (at 
      least not at script level). Also encodings have slight 
      chance of misbehaviour, as line is read before socket 
      has been fconfigured. That should be possible to fix 
      (except -binary configuration, where carriage return 
      can be lost due translation=auto). Progress callbacks 
      are likely to be problematic, too, especially with 
      callbacks relying on fixed chunk sizes.
      
      But most of these problems (excluding -handler) are to 
      be expected as currently you wouldn't get anything at 
      all to process.
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "kaitzschu"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to:
      Read headerless (very specific/broken) servers data
      
    12. type initialized to: "RFE"
  2. Ticket change [f2d3e590be] (rid 109624) by kaitzschu on 2006-11-03 19:38:29:

    1. icomment:
      
      
      File Added - 201267: noheaders.patch
      
      
      
    2. login: "kaitzschu"
    3. mimetype: "text/plain"
    4. username: "kaitzschu"
  3. Add attachment "noheaders.patch" [3cd82e8b5d] (rid 120981) by kaitzschu on 2006-11-03 19:38:29.

  4. Ticket change [789e4eded7] (rid 89994) by kaitzschu on 2006-11-03 19:42:05:

    1. priority changed to: "3 Low"
  5. Ticket change [101f7c6f5e] (rid 201369) by kjnash on 2022-05-30 22:18:03:

    1. assignee changed to: "aku"
    2. closer changed to: "nobody"
    3. comment changed to:
      Currently when using http::geturl with a server that 
      does not send required headers (but starts sending 
      data right away) http::Event stays in state=header and 
      after command returns there is effectively nothing 
      received (unless by accident some line happens to look 
      like HTTP-header).
      
      This behaviour rises from missing else clause in 
      http::Event (last statement is elseif).
      
      Suggested behaviour is that if in state=header there 
      is a nonempty line that does not match any of 
      expressions so far that line is considered to be first 
      line of data and treated as such.
      
      This implementation can't handle requests that use -
      handler option, as socket buffer can't be unread (at 
      least not at script level). Also encodings have slight 
      chance of misbehaviour, as line is read before socket 
      has been fconfigured. That should be possible to fix 
      (except -binary configuration, where carriage return 
      can be lost due translation=auto). Progress callbacks 
      are likely to be problematic, too, especially with 
      callbacks relying on fixed chunk sizes.
      
      But most of these problems (excluding -handler) are to 
      be expected as currently you wouldn't get anything at 
      all to process.
      
    4. icomment:
      A server response with no status line or headers, but only a response body, is the "Simple-Response" of HTTP/0.9 and 1.0.  The relevant text of RFC 1945 Section 6 is:
      
         If a client sends an HTTP/1.0 Full-Request and
         receives a response that does not begin with a Status-Line, it should
         assume that the response is a Simple-Response and parse it
         accordingly. Note that the Simple-Response consists only of the
         entity body and is terminated by the server closing the connection.
      
      Appendix A of RFC 7230 states:
      
         HTTP/1.1 has been designed to make supporting previous versions easy.
         A general-purpose HTTP/1.1 server ought to be able to understand any
         valid request in the format of HTTP/1.0, responding appropriately
         with an HTTP/1.1 message that only uses features understood (or
         safely ignored) by HTTP/1.0 clients.  Likewise, an HTTP/1.1 client
         can be expected to understand any valid HTTP/1.0 response.
      
      This suggests that our HTTP/1.1 client should be able to understand a valid HTTP/1.0 "Simple-Response", even though the "Simple-Response" is not valid as a HTTP/1.1 response.  The typical origin of a "Simple-Response" is an ancient HTTP/1.0 server.
      
    5. login: "kjnash"
    6. mimetype: "text/plain"
    7. severity changed to: "Minor"
  6. Ticket change [deb76627dd] (rid 201371) by kjnash on 2022-05-31 00:16:52:

    1. login: "kjnash"
    2. mimetype: "text/plain"
    3. title changed to:
      Read headerless response (HTTP/0.9, 1.0 Simple-Response)
      
  7. Ticket change [3fe3b78d01] (rid 204028) by kjnash on 2022-09-09 17:11:37:

    1. icomment:
      Ideally a fix would have to be compatible with -handler and also with -channel.
      
    2. login: "kjnash"
    3. mimetype: "text/plain"