Re: Re: tclkit string size limit?
Pat Thoyts <[email protected]> Mon, 26 Jul 2010 13:43:46 +0100
| Newsgroups | gmane.comp.lang.tcl.starkit |
|---|---|
| Message-ID | <[email protected]> |
On 23 July 2010 01:46, jemptymethod <[email protected]> wrote: > I appreciate the response! =A0upvar is one of those concepts that I have > not fully internalized, and when I try the following code: > > package require http > set tok [http::geturl http://localhost:1565/pgn4desk.htm] > upvar $tok token > set token(body) "" > parray token > > I get the following error. =A0Your guidance is very much appreciated!! > > $ ./tclkit-cli pgn4desk.vfs/debug.tcl > bad level "::http::1" > =A0 =A0while executing > "upvar $tok token" > =A0 =A0(file "pgn4desk.vfs/debug.tcl" line 3) % package require http 2.7.5 % set tok [http::geturl $url] ::http::1 % upvar #0 $tok state % set state(body) [string length $state(body)] 2164 % parray state % parray state state(-binary) =3D false state(type) =3D text/html ... and so on. The meta element holds a list of key:value pairs that preserve the HTTP response headers and has lots of interesting stuff like the encodings used and so on. --=20 You received this message because you are subscribed to the "starkit" group= . To post to this group, send email to [email protected] To unsubscribe from this group, send email to starkit-unsubscribe@googlegro= ups.com For more options, visit this group at http://groups.google.com/group/starki= t?hl=3Den