Re: tclkit string size limit?
jemptymethod <[email protected]> Thu, 22 Jul 2010 17:46:15 -0700 (PDT)
| Newsgroups | gmane.comp.lang.tcl.starkit |
|---|---|
| Message-ID | <deadab87-a68f-4d99-9e5f-fe8708109460@q35g2000yqn.googlegroups.com> |
On Jul 22, 5:53=A0pm, Pat Thoyts <[email protected]> wrote: > On 22 July 2010 21:36, jemptymethod <[email protected]> wrote: > > > > Is there some sort of limit on the size of strings when using tclkit? > > I ask because I am able to use the Tcl-based browser hv3 just fine to > > render an html page that uses the script tag and src attribute to > > utilize a Javascript file that is around 70k in size. > > > That is, until I wrap hv3 as a starkit, and then the page won't > > render. =A0 > > There is nothing intrinsic in the tclkit code that would limit string > size. Its just a tcl interpreter with some vfs wrapping. However, more > likely is that it is either a difference in the versions of the http > package or the presence of zlib in the tclkit and this may affect the > downloading of the files. > We need to know the versions of everthing here. But if you fire up > tclkit and try > =A0 set tok [http::geturl $url] > and then > =A0upvar $tok token > =A0set token(body) "" > =A0parray token > you can dump out the metadata for the request and response. I appreciate the response! upvar 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. Your guidance is very much appreciated!! $ ./tclkit-cli pgn4desk.vfs/debug.tcl bad level "::http::1" while executing "upvar $tok token" (file "pgn4desk.vfs/debug.tcl" line 3) --=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