Which of the following code snippets will return all HTTP headers?
Answer
Correct Answer: var req = new XMLHttpRequest(); req.open('GET', document.location, false); req.send(null); var headers = req.getAllResponseHeaders().toLowerCase(); alert(headers);
Explanation:
Note: This Question is unanswered, help us to find answer for this one