i got this little problem within my wget tcl procedure when calling http::get to reach one ssl server. Works fine if i remove the ssl from the URL (-https +http).
here's is a bit of the script
Code: Select all
package require http
package require tls
http::register https 443 [list ::tls::socket -require 0 -request 1]
proc s:wget { url } {
catch {set token [http::geturl $url -binary 1 -timeout 10000]} error
.....
if {[http::ncode $token] != 200} {
s:debug "[http::ncode $token] HTTP error"
return 0
}
}
.errorInfo
can't read "state(sock)": no such element in array
while executing
"fileevent $state(sock) writable {}"
Thanks in advance.