Forum Moderators: phranque

Message Too Old, No Replies

HTTP response header

How to determine its size?

         

directrix

1:36 pm on Jul 4, 2004 (gmt 0)

10+ Year Member



Does anyone know how to determine the size of the HTTP response header for a given page? Are there any online tools to measure this?

victor

4:08 pm on Jul 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you could try a script like this:

rebol []
p: open [webmasterworld.com...]
hl: 0
foreach h next first p/locals/headers [
if none <> p/locals/headers/:h [
hl: hl + length? header: rejoin [h ": " (p/locals/headers/:h)]
print header
]
]
print ["headers length....." hl]
close p

It'll print something like:

Date: Sun, 04 Jul 2004 15:23:01 GMT
Server: Apache/1.3.26 (Unix) FrontPage/5.0.2.2510
Content-Type: text/html
Connection: close
Cache-Control: max-age=0
Pragma: no-cache
X-Powered-By: BestBBS v3.15
headers length..... 200

You may need to download the scripting language from [rebol.com...]

coopster

5:14 pm on Jul 4, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, directrix!

If you are familiar with the PHP scripting language you can use the Apache Response Headers:

<?php print_r(apache_response_headers() [php.net]);?>