XMLHttpRequest Question:

Explain setRequestHeader("label", "value")?

Tweet Share WhatsApp

Answer:

The setRequestHeader("label", "value") method is used to assign a label/value pair to the header to be sent with a request.

Download XHR2 PDF Read All 28 XHR2 Questions
Previous QuestionNext Question
What is status?How do we pass parameters to the server?