in reply to Content Length

I suggest you study the HEAD script that comes with LWP.

prompt> HEAD http://www.google.com 200 OK Cache-Control: private Connection: close Date: Mon, 11 Nov 2002 14:45:43 GMT Server: GWS/2.0 Content-Length: 2949 Content-Type: text/html ... more