A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,16 @@
|
|||
package require http
|
||||
package require tls
|
||||
|
||||
set cert myCert.p12
|
||||
http::register https 443 [list \
|
||||
::tls::socket -certfile $cert -password getPass]
|
||||
proc getPass {} {
|
||||
return "myPassword"; # Just a noddy example...
|
||||
}
|
||||
|
||||
# Make a secure authenticated connection
|
||||
set token [http::geturl https://verysecure.example.com/]
|
||||
|
||||
# Now as for conventional use of the “http” package
|
||||
set data [http::data $token]
|
||||
http::cleanup $token
|
||||
Loading…
Add table
Add a link
Reference in a new issue