I've been browsing around here and Google but to no success. I'm currently developing a small page that works on the user's local computer (I guess it would be called a web app) that uses AJAX's get
and post
methods. However I want to find out how much data each get and post uses.
So far, I've found a page here that helps me calculate the size of data after I JSON.stringify
the json it returns with get
. How many bytes in a JavaScript string?
However I came across some thoughts about this. I presume the size of the URL get and post does also costs data. Since it uses an https protocol, I imagine the size be different.
Issue I'm stuck with is the URL with query (the ?something=value
stuff on end of URL) size.
I be using jQuery later just a note if it measures differently.
Any help would be appreciated.
Edit: Just to avoid confusion, I mean web data.