in reply to Determining file size over HTTP connection
Note that this is not fool-proof, but it should work on most servers and urls that reference static files.
If you have the lwp command line tools installed, you can do:
On the command line to see the servers' response.> lwp-request -m HEAD http://example.com
LWP::Simple has an head() function, which returns the content-length as the second return value.
|
|---|