X-Git-Url: http://git.sven.stormbind.net/?a=blobdiff_plain;f=tests%2Fhttps.tcl;fp=tests%2Fhttps.tcl;h=c9e85d49864d608bd8619b3d0d51219d6e0b44f0;hb=b0e6fb6e4379fb87fa2854b84a56c5ad49c644da;hp=0000000000000000000000000000000000000000;hpb=c9a5bcd9d76f699909b24e71a2a216d36062ab0b;p=sven%2Ftclcurl.git diff --git a/tests/https.tcl b/tests/https.tcl new file mode 100755 index 0000000..c9e85d4 --- /dev/null +++ b/tests/https.tcl @@ -0,0 +1,13 @@ +package require TclCurl + +if {$tcl_platform(platform)=="windows"} { + set certFile [file join $env(windir) curl-ca-bundle.crt] +} else { + set certFile /usr/local/share/curl/curl-ca-bundle.crt +} + +::curl::transfer -url https://www.paypal.com/ -cainfo $certFile \ + -file paypal.html + + +puts "https://www.paypal.com/ saved in 'paypal.html'"