XMLHttpRequest Vs HttpRequest

前端 未结 1 1622
礼貌的吻别
礼貌的吻别 2021-02-01 23:38

Does anyone know, what an XMLHttpRequest enables a web page to do, which cannot be done using a normal HttpRequest?

相关标签:
1条回答
  • 2021-02-01 23:58

    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.

    0 讨论(0)
提交回复
热议问题