ssl - Using tcllib's autoproxy with tls -
How TLL's autoprips should work with TLS support? I have read the documentation and taken the following minimum example from it, but I can not get any https connection to it:
#! / Usr / bin / tclsh package requires autoproxy package requires http package: tls :: autoproxy :: init :: http :: register https 443 [list :: autoproxy :: tls_socket -tls1 1] # :: http : Register https 443 [list :: tls :: socket - Tls1 1] Set token [:: http: geturl "https://example.com/" - Validate 1] puts [:: http: Meta $ token]: : Http: cleanup $ token
resulting in:
handshake failed: ":: http: geturl" https://example.com/ " Temporarily unavailable resources during the implementation of "validate 1" set token [: http: geturl "https://example.com/" -validate 1] "from within (file" ./https.tcl " Row 9)
I do not have a proxy server defined via http_proxy envvar and it works fine right when using: :: tls :: socket I tcl 8.6.1, Using tcllib 1.15, and tls 1.6.
Comments
Post a Comment