Have a question about monitoring data transfer.
Our situation would be something similar to
Apache Server <-----> Mobile Device
We need to do 2 things
- Calculate the size of the page/raw data getting sent to the mobile device.
- Calculate the size of the request/raw data coming from the device.
So in our database we'd be able to store like
Device ID | Uploaded | Downloaded
The logic for the saving etc is fine, we just need to know how we'd calculate the size of the requests.
I believe when the device sends the server information, we can use PHP to read $_SERVER['CONTENT_LENGTH'];
to see how big that piece of data is. However not sure how we'd do this the other way around.