<html>
<body>
<script src="something"></script>
<img src="something">
<script>
window.onload = function () {
//code logic here
}
</script>
</body>
</html>
I want to access the http response headers for all the http requests of this page so that I can determine their status.
例如第一个脚本请求的响应头和随后的其他请求。
换句话说,我想数数。响应状态为错误的请求数。