Chapter 4: HYPERTEXT TRANSFER PROTOCOL (HTTP)

0.0(0)
studied byStudied by 4 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

11 Terms

1
New cards

Hypertext Transfer Protocol (HTTP) Overview

  • HTTP is a client-server protocol used by web browsers to interact with servers over TCP/IP networks.

  • It follows a request/response paradigm with message headers and a body.

  • Stateless: Each request-response is treated independently.

  • Some transactions requiring state maintenance can use proxies and cookies.

2
New cards

HTTP Versions

  • HTTP uses a <major>.<minor> version numbering scheme.

  • HTTP/1.1, defined in RFC 2616, is widely supported and focuses on persistent connections.

  • HTTP/2.0 (2015) introduced binary format, multiplexing, and header compression.

  • Persistent connections in HTTP/1.1 reduce Round Trip Times (RTT) compared to non-persistent.

3
New cards

HTTP Connections

  • HTTP connections can be persistent or non-persistent.

  • Non-persistent (HTTP/1.0) requires a new TCP connection for each object.

  • Persistent (HTTP/1.1) keeps the connection open for multiple objects, reducing RTT.

  • Persistent connections save CPU time, reduce latency, and support pipelining.

4
New cards

HTTP Communication Model

  1. Handshaking: Opening a TCP connection to the web server.

  2. Client request: HTTP client sends an HTTP Request message specifying the resource.

  3. Server response: Server reads the request, takes action, and creates an HTTP response.

  4. Closing: Optional step for closing the connection.

5
New cards

HTTP Request Message

  • Start Line: Request method, Request URI, HTTP version.

  • Headers: General, request, and entity headers.

  • Request methods include GET, POST, PUT, DELETE, etc.

6
New cards

HTTP Response Message

  • Status Line: HTTP version, Status Code, Status Phrase.

  • Headers: General, response, and entity headers.

  • Status codes categorized into 1xx, 2xx, 3xx, 4xx, and 5xx groups.

7
New cards

HTTPS (Secure HTTP)

  • HTTPS combines HTTP with SSL/TLS protocols for secure communication.

  • SSL layer verifies direct communication and ensures data confidentiality.

  • Used for secure transactions, HTTPS encrypts and decrypts data during transmission.

8
New cards

Cookies for State Retention

  • Cookies are small pieces of information sent from the server to the client.

  • They retain state in the stateless HTTP protocol.

  • Cookies have a lifespan, are stored on the client, and sent back to the server with each request.

9
New cards

Creating Cookies

  • Set-Cookie header is sent from the server to create cookies.

  • Cookies are sent back with subsequent requests to the same server.

  • Cookies can have expiration, domain, and path specifications.

10
New cards

HTTP Cache

  • Caching optimizes performance by storing reusable responses.

  • Types of caching include browser cache, intermediary caching proxies, and reverse cache.

  • Advantages include decreased network costs, improved responsiveness, and increased performance.

11
New cards

Cache Consistency

  • Cache consistency ensures cached copies are eventually updated.

  • Pull method: Cached pages have expiration times; fresh copies obtained on expiration.

  • Push method: Server sends update requests to web proxies when a page is modified.

Explore top flashcards

E1 Ortho- Cervical
Updated 344d ago
flashcards Flashcards (102)
Government - Unit 4
Updated 794d ago
flashcards Flashcards (69)
Level G Unit 11
Updated 1167d ago
flashcards Flashcards (20)
عكس - G3
Updated 873d ago
flashcards Flashcards (24)
chesmisty
Updated 949d ago
flashcards Flashcards (28)
grammar - phrases
Updated 58d ago
flashcards Flashcards (41)
graphic design :(
Updated 1138d ago
flashcards Flashcards (127)
E1 Ortho- Cervical
Updated 344d ago
flashcards Flashcards (102)
Government - Unit 4
Updated 794d ago
flashcards Flashcards (69)
Level G Unit 11
Updated 1167d ago
flashcards Flashcards (20)
عكس - G3
Updated 873d ago
flashcards Flashcards (24)
chesmisty
Updated 949d ago
flashcards Flashcards (28)
grammar - phrases
Updated 58d ago
flashcards Flashcards (41)
graphic design :(
Updated 1138d ago
flashcards Flashcards (127)