[Answered ]-Server response terminal line analysis. What is the last part on the response line?

2πŸ‘

βœ…

The last part represents the size of the object sent back to the client. This is the detailed in standard Apache log format documentation:

The last part indicates the size of the object returned to the client,
not including the response headers. If no content was returned to the
client, this value will be β€œ-β€œ.


To supplement: In the Django development server I’m running it says 0
if the server responds with status code 301

The last part will only log the size of the body and does not include the headers. Since 301 is a permanent redirect; it has no body. The reason you are seeing 0 and not - is configurable at the log format string.

The default format string is "%h %l %u %t \"%r\" %>s %b"; if you replace %b with %B, it will log 0 instead of - for those requests that have no body.

πŸ‘€Burhan Khalid

Leave a comment