Error during SESSION activate. I got the message
invalid command name "::request::global"
invalid command name "proc"
    while executing
"proc init {} {
	# Set up the map for quoting chars. RFC3986 Section 2.3 say percent
	# encode all except: "... percent-encoded octets in the ranges of..."
    (in namespace eval "::http" script line 29)
    invoked from within
"namespace eval http {
    # Allow resourcing to not clobber existing data

    variable http
    if {![info exists http]} {
	array set http {
	    -ac..."
    (file "/enadisk/commun/linux/local/ActiveTcl-8.6.11/lib/tcl8/8.6/http-2.9.5.tm" line 16)
    invoked from within
"source -encoding utf-8 /enadisk/commun/linux/local/ActiveTcl-8.6.11/lib/tcl8/8.6/http-2.9.5.tm"
    ("package ifneeded http 2.9.5" script)
    invoked from within
"package require http"
    (in namespace eval "::request" script line 6)
    invoked from within
"namespace eval ::request $script"
    ("::try" body line 12)

OUTPUT BUFFER:

### # Tool to download file from the web # Enhacements to http ### package provide http::wget 0.1 package require http ::namespace eval ::http {} ### # topic: 1ed971e03ae89415e2f25d20e59b765c # description: this proc contributed by Donal Fellows ### proc ::http::_followRedirects {url args} { while 1 { set token [geturl $url -validate 1] set ncode [ncode $token] if { $ncode eq "404" } { error "URL Not found" } switch -glob $ncode { 30[1237] {### redirect - see below ###} default {cleanup $token ; return $url} } upvar #0 $token state array set meta [set ${token}(meta)] cleanup $token if {![info exists meta(Location)]} { return $url } set url $meta(Location) unset meta } return $url } ### # topic: fced7bc395596569ac225a719c686dcc ### proc ::http::wget {url destfile {verbose 1}} { set tmpchan [open $destfile w] fconfigure $tmpchan -translation binary if { $verbose } { puts [list GETTING [file tail $destfile] from $url] } set real_url [_followRedirects $url] set token [geturl $real_url -channel $tmpchan -binary yes] if {[ncode $token] != "200"} { error "DOWNLOAD FAILED" } cleanup $token close $tmpchan }