<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Well it looks like I'm never seeing compressed numbers, using curl or firebug.<div>Firebug does hav a header for Content-Length, I don't see anything else that</div><div>looks like a compressed length. It always shows the size of the file in the file system.</div><div>For example, for LFChdml.js, I get:</div><div><br></div><div> Content-Length<span class="Apple-tab-span" style="white-space:pre">        </span>345694</div><div><br></div><div>and that's the size of the file.</div><div><br></div><div>And same if I do curl:</div><div><br></div><div><div>$ curl --compressed --dump-header curlheaders.tmp <a href="http://127.0.0.1:8080/trunk-a//lps/includes/lfc/LFCdhtml.js">http://127.0.0.1:8080/trunk-a//lps/includes/lfc/LFCdhtml.js</a> > /dev/null</div><div> % Total % Received % Xferd Average Speed Time Time Time Current</div><div> Dload Upload Total Spent Left Speed</div><div>100 337k 100 337k 0 0 51.8M 0 --:--:-- --:--:-- --:--:-- 80.3M</div><div><br></div><div>337k = 345694 within 1K. (same result without --compressed)</div><div>the curlheaders.tmp shows the same numbers in content length.</div><div><br></div><div>What am I missing...?</div><div><br></div><div>- Don</div></div><div><div><br><div><div>On Sep 3, 2008, at 4:56 PM, P T Withington wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="#FFFFFF"><div>I thought the firebug Net tab gave numbers. Also, Safari's Activity window and it's nifty new developer console have lots of info... Don't know if you've already explored those?<br><br>On Sep 3, 2008, at 4:33 PM, Donald Anderson <<a href="mailto:dda@ddanderson.com">dda@ddanderson.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Here's the reason I found curl unsatisfying when gathering stats last week:</div><div><br></div><div>curl '<a href="http://127.0.0.1:8080/trunk-a/demos/lzpix/app.lzx?lzr=swf8&lzt=html'"></a><a href="http://127.0.0.1:8080/trunk-a/demos/lzpix/app.lzx?lzr=swf8&lzt=html'">http://127.0.0.1:8080/trunk-a/demos/lzpix/app.lzx?lzr=swf8&lzt=html'</a><br class="Apple-interchange-newline"><br></div><div>Wow, only 2492 bytes. Hmmm....</div><div>It does not get:</div><div> <script type="text/javascript" src="/trunk-a/lps/includes/embed-compressed.js"></script><style type="text/css"></div><div><div><br></div><div>or:</div><div> lz.embed.swf({url: 'app.lzx?lzt=swf&lzr=swf8', bgcolor: '#cfcfcf', width: '800', height: '600', id: 'lzapp', accessible: 'false'});</div><div><br></div><div>I can certainly either parse these out and get the next level or hardcode what to get in a script.</div><div>I'll start with hardcoding the commands to get some numbers. This could be put into into a build script,</div><div>with the proviso that it might be a little fragile if things move around.</div><div>Also, this approach has problem retrieving deeper referenced content (e.g. pictures</div><div>loaded programmatically).</div><div><br></div><div>I notice my machine (OSX) has curl, but does not have wget (at least by default).</div><div>My linux box has both, Windows cmd has neither and Windows/cygwin has both. So I'll go with curl.</div><div><br></div><div>As for using firebug, I looked again under the header statistics (for a big DHTML file - LFCdhtml.js) and it only shows</div><div>Content-Length, nothing about a compressed length. Max, let me know if I'm missing something...</div><div><br></div><div>If we needed/wanted the complete picture of the download, we could:</div><div> 1) have a tiny proxy server that proxies to the laszlo tomcat server and monitors/reports the actual byte counts.</div><div> 2) rig up the build script to run firefox (like lzunit does) and hit the proxy server with the rest of the url.</div><div> might take a day or so to do this.</div><div><br></div><div>I'm going to start with the hardcoded scripts to grab just the larger files (app and runtime).</div><div><br></div><div>- Don</div><div><br></div></div><div>--</div><div><br>Don Anderson<br>Java/C/C++, Berkeley DB, systems consultant<br><br>voice: 617-547-7881<br>email: <a href="mailto:dda@ddanderson.com"></a><a href="mailto:dda@ddanderson.com">dda@ddanderson.com</a><br>www: <a href="http://www.ddanderson.com/"></a><a href="http://www.ddanderson.com">http://www.ddanderson.com</a><br></div></div></span></span><br class="Apple-interchange-newline"></div></span></div></span><br class="Apple-interchange-newline"> </div><br></div></blockquote></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">--</div><div><br>Don Anderson<br>Java/C/C++, Berkeley DB, systems consultant<br><br>voice: 617-547-7881<br>email: <a href="mailto:dda@ddanderson.com">dda@ddanderson.com</a><br>www: <a href="http://www.ddanderson.com/">http://www.ddanderson.com</a><br></div></div></span></span><br class="Apple-interchange-newline"></div></span></div></span><br class="Apple-interchange-newline"> </div><br></div></div></body></html>