doc
generic
packages
tclconfig
tests
multi
all.tcl
basic.tcl
bodyVar.tcl
bufferSize.tcl
command.tcl
cookie.tcl
cookieFile.tcl
curlConfig.tcl
debugProc.tcl
dict.tcl
dupHandle.tcl
encoding.tcl
errorBuffer.tcl
escape.test
failOnError.tcl
file.tcl
fileNoFile.tcl
formGet.tcl
ftp.tcl
ftpList.tcl
ftpUpload.tcl
ftpWildcard.tcl
getInfo.tcl
headNoHead.tcl
header.tcl
headerVar.tcl
http200Aliases.tcl
httpBufferPost.tcl
httpHeader.tcl
httpPost.tcl
httpVersion.tcl
https.tcl
interface.tcl
ipresolve.tcl
netrcfile.tcl
noProgress.tcl
nobody.tcl
ntlm.tcl
pop3.tcl
progressProc.tcl
progressProcPause.tcl
proxy.tcl
proxyPort.tcl
proxyTunnel.tcl
range.tcl
readProc.tcl
referer.tcl
reset.tcl
resume.tcl
share.tcl
smtp.tcl
stderrNoStderr.tcl
strerror.tcl
timeout.tcl
transfer.tcl
upload.tcl
userAgent.tcl
verbose.tcl
version.test
versionInfo.test
writeHeader.tcl
writeProc.tcl
.travis.yml
ChangeLog.txt
Changes.txt
Makefile.in
README.md
ReadMeW32.txt
aclocal.m4
checkAutoPath.tcl
configure
configure.in
license.terms
pkgIndex.tcl.in
20 lines
353 B
Plaintext
20 lines
353 B
Plaintext
|
|
#!/usr/local/bin/tclsh
|
||
|
|
|
||
|
|
package require TclCurl
|
||
|
|
package require tcltest
|
||
|
|
namespace import ::tcltest::*
|
||
|
|
|
||
|
|
test 1.01 {: Test escape} -body {
|
||
|
|
set escaped [curl::escape {What about this?}]
|
||
|
|
return $escaped
|
||
|
|
} -result {What%20about%20this%3F}
|
||
|
|
|
||
|
|
test 1.02 {: Test unescape} -body {
|
||
|
|
return [curl::unescape $escaped]
|
||
|
|
} -result {What about this?}
|
||
|
|
|
||
|
|
|
||
|
|
cleanupTests
|
||
|
|
|
||
|
|
|