XMLHttpRequest Vs HttpRequest XMLHttpRequest Vs HttpRequest ajax ajax

XMLHttpRequest Vs HttpRequest


XMLHttpRequest in 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.