How to make Apache return file size info?

Alles, was den Apache betrifft, kann hier besprochen werden.

How to make Apache return file size info?

Postby stevenkain » 19. June 2008 08:50

Does anybody know how to configure Apache 2.2.x so it returns file size information to the browser/download manager when downloading a file?
I tried looking everywhere, read everything, googled it, nobody knows!
stevenkain
 
Posts: 1
Joined: 19. June 2008 08:48

Postby Nobbie » 28. June 2008 12:36

There is nothing to do for Apache (or any other Webserver), as the file size information is part of the Standard HTTP Protocoll.

The value is part of the header and is stored in the "CONTENT-LENGTH" field of each GET Request.

If you want to find out the size without downloading the whole file, you may also send an HEAD Request (instead of GET).

See http://www.apacheweek.com/features/http11 or any other document about HTTP Protocoll.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 30 guests