This is a copy of TCL Bug 8c3de5039a
Attached script worked with http versions 2.9.8 and 2.10a1 and using tls or twapi for https sockets.
Current http version does not work with twapi anymore.
Error message is as follows:
Invalid option '-type'.
Must be one of -myaddr, -myport, -async, -socketcmd, -server, -peersubject, -requestclientcert, -credentials, -verifier
This seems to be caused by the new option "-type $token" when creating the openCmd:
set state(openCmd) [list {*}$defcmd {*}$sockopts -type $token {*}$targetAddr]
If I remove the "-type" option, geturl works with twapi and tls:
set state(openCmd) [list {*}$defcmd {*}$sockopts {*}$targetAddr]
Paul
Anonymous
Closing. Tested successfully with twapi 5.0.2 under Tcl 8.6.15 and 9.0.0
I think the fix was in the http package as twapi itself did not change in this respect.