Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a609ef0e2887e56b69e889f20268ceb53ecad77e
Ticket: 2964525fffffffffffffffffffffffffffffffff
geturl doesn't complete properly
User & Date: nurdglaw on 2010-03-05 21:42:17
Changes

  1. assignee changed to: "patthoyts"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Using http version 2.7.2 from the ActiveTcl teapot, the command [http::geturl https://www.ebu.co.uk/members/api/api.net] doesn't complete properly.
    
    On completion [http::code] returns an emptry string.
    
    The problem appears to occur because when http::Event is entered the first time, with state(state) = connecting, [gets] returns -1. This means that state(http) is set to an empty string, and when the last header has been read, the code returns immediately without setting state(state) to body.
    
    I changed the code at the top of Event so that it doesn't set state to header if [gets] returns -1 and that seems to work OK for this url and one other url that I tried.
    
    The problem doesn't occur with http 2.7 which doesn't use the state "connecting"
    
    I'm running Ubuntu 8.04
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  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: "nurdglaw"
  10. subsystem changed to: "29. http Package"
  11. title changed to: "geturl doesn't complete properly"
  12. type changed to: "Bug"