Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Describe various methods used in XMLHttpRequest
Home
AJAX
Describe various methods used in XMLHttpRequest
0
votes
asked
Aug 8, 2023
in
AJAX
by
sharadyadav1986
Describe various methods used in XMLHttpRequest
xmlhttprequest
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 8, 2023
by
sharadyadav1986
The XMLHttpRequest methods are explained below:
abort() – Used to cancel current request.
getAllResponseHeaders() – Set of all the HTTP headers are returned as a string.
getResponseHeader(header_name) – Returns specific HTTP header value.
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.
send(content) – Used to send the request to the server.
setRequestHeader(label, value) – label-value pair is added to HTTP header to be sent.
...