Algorithm (Hack:-)) for Computing HTTP Reply Header Sizes

From: CNL Squid Users List <squid-users@dont-contact.us>
Date: Tue, 27 Jul 1999 11:55:38 +0530

Hi!

        I need the average HTTP reply header size.
        A distribution would be better.
        
        My current hack is to:

        1. for all files in the cache directory
                skip first 60 bytes of the files
                skip bytes till you encounter \0 \b
                        that was the URL
                count the number of bytes from
                current position till \r\n\r\n.
                        that was the number of bytes
                        in the HTTP header
                
        
        Is this okay? Please let me know if you have a
        better solution?

        Thanks.

Dinesh
Received on Tue Jul 27 1999 - 00:28:06 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:34 MST