Reputation: 342
I want to calculate the size in bytes of the http response headers and data in PHP. Any help would be appreciated
Upvotes: 0
Views: 948
Reputation: 48357
You can't measure the size of the response headers from your PHP code because the webserver may change them before serving them up. Only the webserver can measure this - and you don't say what webserver you are using. With Apache, install mod_logio and start recording %I, %O and %B
Upvotes: 1