HTTP Flashcards
HTTP
Hyper Text Transfer Protocol
Clients
Computer Side. The people seeing it on the web.
Servers
Computers in the cloud. Data centers.
How does HTTP Request and Response work?
- A client (browser) sends an HTTP request to the web.
- A web server receives the request
- The server runs an application to process the request.
- The server returns an HTTP response (output) to the browser
- The client (browser) receives the response
How does the HTTP request circle work? (Load Order)
- The browser requests an HTML page. The server returns an HTML file.
- The browser requests a style sheet. The server returns a CSS file.
- The browser requests an JPG image. The server returns a JPG file.
- The browser requests JavaScript code. The server returns a JS file.
- The browser requests data. The server returns data (in XML or JSON).
XHR is…
XMLHttpRequest Object (XHR)
XHR is a JavaScript object that is used to transfer data between a web browser and a web server.
XHR is often used to request and recieve data for the purpose of modifying a web page.
XHR Object can…
Update a web page without reloading the page
Request data from a server - after the page has loaded
Receive data from a server - after the page has loaded
Send data to a server - in the background
XHR Object is the underlying concept of what?
AJAX and JSON