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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -