XMLHttpRequest Question:
Download Questions PDF

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

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is status?How do we pass parameters to the server?