[Laszlo-dev] application/lfc file size

Donald Anderson dda at ddanderson.com
Wed Sep 3 13:33:16 PDT 2008


Here's the reason I found curl unsatisfying when gathering stats last  
week:

curl 'http://127.0.0.1:8080/trunk-a/demos/lzpix/app.lzx?lzr=swf8&lzt=html'

Wow, only 2492 bytes.  Hmmm....
It does not get:
   <script type="text/javascript" src="/trunk-a/lps/includes/embed- 
compressed.js"></script><style type="text/css">

or:
   lz.embed.swf({url: 'app.lzx?lzt=swf&lzr=swf8', bgcolor: '#cfcfcf',  
width: '800', height: '600', id: 'lzapp', accessible: 'false'});

I can certainly either parse these out and get the next level or  
hardcode what to get in a script.
I'll start with hardcoding the commands to get some numbers.  This  
could be put into into a build script,
with the proviso that it might be a little fragile if things move  
around.
Also, this approach has problem retrieving deeper referenced content  
(e.g. pictures
loaded programmatically).

I notice my machine (OSX) has curl, but does not have wget (at least  
by default).
My linux box has both, Windows cmd has neither and Windows/cygwin has  
both.  So I'll go with curl.

As for using firebug, I looked again under the header statistics (for  
a big DHTML file -  LFCdhtml.js) and it only shows
Content-Length, nothing about a compressed length.  Max, let me know  
if I'm missing something...

If we needed/wanted the complete picture of the download, we could:
   1) have a tiny proxy server that proxies to the laszlo tomcat  
server and monitors/reports the actual byte counts.
   2) rig up the build script to run firefox (like lzunit does) and  
hit the proxy server with the rest of the url.
  might take a day or so to do this.

I'm going to start with the hardcoded scripts to grab just the larger  
files (app and runtime).

- Don

--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080903/fad0c036/attachment.html


More information about the Laszlo-dev mailing list