initial checkin of TclCurl

This commit is contained in:
Steve Havelka
2014-02-05 16:43:59 -08:00
commit 639b49517b
95 changed files with 30934 additions and 0 deletions

26
tests/pop3.tcl Executable file
View File

@ -0,0 +1,26 @@
package require TclCurl
set curlHandle [curl::init]
# This just checks the server for messages, if you want to download them
# you need: -url "pop3://pop3.telefonica.net:110/1", -url "pop3://pop3.telefonica.net:110/2", etc
$curlHandle configure -url "pop3://pop3.telefonica.net:110"
$curlHandle configure -username "fandom\$telefonica.net"
$curlHandle configure -password "XXXXXXXX"
$curlHandle configure -bodyvar recieved
$curlHandle configure -verbose 1
$curlHandle perform
$curlHandle cleanup
puts "Recieved:"
puts \n$recieved\n\n