initial checkin of TclCurl
This commit is contained in:
13
tests/https.tcl
Executable file
13
tests/https.tcl
Executable file
@ -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'"
|
Reference in New Issue
Block a user