kassner / log-parser

PHP Web Server Log Parser Library
Apache License 2.0
334 stars 64 forks source link

responseBytes missing (-) #54

Closed MediaMaquina closed 3 years ago

MediaMaquina commented 3 years ago

Hello, i wonder if someone could help me figure this out: When a file is downloaded via PHP script Apache doesn't log "responseBytes" instead it shows "-" How could i make Apache log it properly?

kassner commented 3 years ago

This issue isn't related to this library directly, as it's a problem of how the log is generated, not parsed, so you'll get better help asking on Stack Overflow.

As guidance though, your script is likely sending the Transfer-Encoding: chunked response header or missing the Content-Length header, which doesn't allow Apache to know the size of the response before transmitting it.