home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
17_11.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
300b
|
19 lines
#
# Example 17-11
# HttpCopyDone is used with fcopy.
#
proc HttpCopyDone {url bytes {error {}}} {
upvar #0 $url state
if {[string length $error]} {
set state(status) error
lappend state(headers) [list error $error]
} else {
set state(status) ok
}
close $state(sock)
close $state(fd)
}