Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 050ccc8d7b6d25a8af729cb0c28f1f5669b76946
Ticket: 1589887fffffffffffffffffffffffffffffffff
Read headerless response (HTTP/0.9, 1.0 Simple-Response)
User & Date: kaitzschu on 2006-11-03 12:38:28
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  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. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kaitzschu"
  10. subsystem changed to: "29. http Package"
  11. title changed to:
    Read headerless (very specific/broken) servers data
    
  12. type changed to: "RFE"