Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8e242ae692fa6c0681384c90fb519269634d4245e7b8be3d04bb5229cdde76b7
Ticket: 8c3de5039a95a1a173c0ddfb7b5d27cae0d20fad
geturl not working with registered protocols except tls
User & Date: anonymous on 2023-10-10 17:09:33
Changes

  1. icomment:
    Hi Ashok,
    
    I see the same error message when executing your script.
    It does work, if I remove the http::register command. 
    
    Added a puts command to print the state(openCmd) value:
    Using http::register  : socket -async -type ::http::1 www.tcl3d.org 80
    Without http::register: ::http::socket -async -type ::http::1 www.tcl3d.org 80
    
    In the latter case, the replacement proc http::socket is called, which uses the token value to store a thread id.
    Maybe there should be a condition, when building the state(openCmd) string, if the called socket command is http::socket or a command specified with http::register?
    
    Paul
    
  2. login: "anonymous"
  3. mimetype: "text/plain"