5. 6. 7. The Web Flashcards
What is the Web?
A DS for linking together hypertext documents.
A client server architecture with pages hosted by web servers and viewed by client web servers
What is the protocol for communication between client and server?
HTTP, pages written using hyper text markup language
Pros and cons of client server architecture?
Pro: behaviour easy to understand
Con: server is a single point of failure and performance bottleneck
What makes the web reliable?
Statelessness. Every request is independent of every other.
What is a URI
Universal Resource Identifier.
A URI that specifies locations is URL (http://www.example.com). One that specifies name is URN (book code)
What are the eight different methods of HTTP?
GET- request named resource
HEAD- metadata about a resource
POST- client sends data to server
PUT- put information from client to web server
DELETE- delete a resource
TRACE- used for debugging
OPTIONS- which commands a server will respond to
CONNECT- begins communication with resource
What happens when a user decides on a page to view?
Client connects to the appropriate server- Look at protocol, Look at DN, find IP address
Fetches the content- GET
Renders it nicely so the user can see
Disconnects
How can a web application appear to hold state?
GET and POST- client sends info about itself to the server so it can be recognised next time
Cookies- request the client to remember something and pass it back to the server next time
Key Properties of the web?
Single point to point communication Client/server architecture Stateless communication Common port 80 Every transaction is independent of every other as far as protocol is concerned.