0 votes
in AJAX by
Describe various methods used in XMLHttpRequest

1 Answer

0 votes
by

The XMLHttpRequest methods are explained below:

  1. abort() – Used to cancel current request.
  2. getAllResponseHeaders() – Set of all the HTTP headers are returned as a string.
  3. getResponseHeader(header_name) – Returns specific HTTP header value.
  4. open(method,URL) – Various HTTP parameters such as GET, POST, HEAD, PUT and DELETE can be used as method. URL is the location of page on server where request should be sent.
  5. send(content) – Used to send the request to the server.
  6. setRequestHeader(label, value) – label-value pair is added to HTTP header to be sent.
...