I'm in trouble with a short code I did. It fetches info from a website, but the website is now in https and I cannot connect anymore with my script.
Here is what I did:
Code: Select all
set website "https://my.website.com"
package require http
package require tls
set agent "Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"
http::register https 443 [list ::tls::socket -tls1 1]
proc get {} {
set httpconfig [::http::config -useragent $::agent]
set tok [::http::geturl $::website/index.php]
}
Code: Select all
Currently: error reading "sock8": software caused connection abort
Currently: while executing
Currently: "::http::geturl $::website/index.php"
Currently: (procedure "get" line 28)
Any idea ?