Does anyone know, what an XMLHttpRequest
enables a web page to do, which cannot be done using a normal HttpRequest
?
XMLHttpRequest
is a standard javascript object that allows you to make HTTP Requests from the browser in javascript.
HttpRequest
is a server side object that represents a request to the server.
In summary - one works in the browser, the other in the web server. They also have completely different roles. XMLHttpRequest
is for fetching web resources within the browser. HttpRequest
represents an incoming request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With