Lecture 1 Flashcards
What are “Clients”?
Computers that use the services on a server
What are “Servers”?
Computers that run a server program (i.e. Apache, IIS, Node.js)
How do client computers talk to servers?
Web browsers
What kind of services can servers provide?
Email, web pages, file storage, etc
What layers are included in the 4 layer model based on the ISO OSI 7-layer network?
Application, Transport, Internet, and Link. The other 3 layers are Network, Data Link, and Physical
As developers, we mainly work with the ______ layer of the 4 layer model
Application
What is the formal definition of HTTP?
An application-level protocol that is generic and stateless for distributed, collaborative, and hypermedia information systems. It can be used for many tasks beyond hypertext, such as name servers and distributed object management systems
How does HTTP circumvent the fact that previous request/response cycles are not stored in data (How do you remain logged into Facebook after you close your browser) and when was this introduced?
Through client cookies and the Keep-Alive connection, which was introduced via HTTP/1.1 in 1995
______ is a language to design static web pages
HTML (HyperText Markup Language)
What is a static web page?
A web page that is an HTML document that is stored on the web server and does not change in response to user input
How does a client reach a static web page?
The web browser sends a HTTP request for a static web page and the web server sends a HTTP response message with the requested page
What is a dynamic web page?
A web page created by using server side scripts. This allows interactivity
How does a client reach a dynamic web page?
Once the server receives a dynamic web request, it uses a specific program to interpret the request. The script will process data from the user and the database and then generate a HTML page to send back to the client
What is the purpose of a database?
A database stores the information of a specific client and the web server recalls this information as needed
What property of Node.js is considered to be an advantage and disadvantage?
The property that it is both the server as well as the scripting language packaged into one