The browser is the screen that is currently displayed The server is like a big PC that stores various data Displayed in the browser by downloading the file from the server The file contains information such as HTML, CSS, JS, etc.
It looks like this in the figure (Browser) ←←←←←← (Server) File (HTML,CSS,JS) HTTP What is HTTP? How to interact with the browser and server Basically request and response
request →→→→→→ (Browser) (Server) ←←←←←← response
The request throws the desired information to the server and the server returns that information. It is the server-side language that creates the rules for exchanging this request and response.
I want to see this page →→→→→→ (Browser) (Server) ←←←←←← Page information
Save the data →→→→→→ (Browser) (Server) ←←←←←← I saved it
Change the data →→→→→→ (Browser) (Server) ←←←←←← I changed
Erase the data →→→→→→ (Browser) (Server) ←←←←←← I erased it
If you compare it with Twitter View Tweets GET New Tweet Post POST Tweet update PUT (Twitter should not have been possible) Tweet deletion DELETE
An IP address is like an address assigned to data in a server and is managed numerically. What is a domain? The "~~ .com" part Since it is difficult to understand if it is an IP address, a system called DNS links the IP address and domain.
Please tell me the IP address of qiita.com →→→→→→ (Browser) (DNS) ←←←←←← Returns the IP address
GET request to IP address obtained from DNS →→→→→→ (Browser) (Server) ←←←←←← Returns HTML, CSS, JS
It's like this
Recommended Posts