Saving totalbytes of an ASP file

Results 1 to 2 of 2

Thread: Saving totalbytes of an ASP file

  1. #1
    Michael P Guest

    Default Saving totalbytes of an ASP file

    NOTE this is for use in a VB Webclass, but an ASP solution can be ported to VB easily.<BR>I&#039ve tried the request.totalbytes method, but since I use request.form, the totalbytes blows up. Is there another easy way to see how big a page is? Basically I&#039m trying to build some statistics and I don&#039t want to use the IIS logs. I want to see the exact amoutn of data sent out for each page.

  2. #2
    Jason Miller Guest

    Default RE: Saving totalbytes of an ASP file

    Ugly Solution: Buffer your entire page into a string and then simply len(string). This will probably kill your site performance, but it will work...<BR><BR>Addendum: for every "src=" in your document, extract the url and use the FSO to get the file size. Then you get a page, attachements and all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts