How to calculate total byte sent and received by a website using javascript and jquery -


i'm doing in case of , not giving correct output in chrome.

document.getelementbyid("demo1").innerhtml        = parseint(xhttp.getresponseheader("content-length")); 

content-length returns length of request body in octets (8-bit bytes), why not getting correct value.

refer article


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -