watch> http — 7 packets

HTTP · Protocol

Hypertext Transfer Protocol

ApplicationL7TCPport 80port 443
STEPS
  1. 1CLIENT REQUESTBrowser prepares the request
  2. 2DNS RESOLUTIONFinds the server’s IP address
  3. 3TCP CONNECTIONEstablishes a reliable link
  4. 4HTTP EXCHANGERequest and response messages
  5. 5PAGE RENDERINGBrowser displays the content
NETWORK VIEW
Client192.168.1.10Router192.168.1.1InternetDNS Resolver8.8.8.8Web Server203.0.113.10
STEP 1/5 · 0/7
PACKET FLOWDNSTCPHTTP
STEPTIMESOURCEDESTPROTOINFOSIZE
10.s192.168.1.108.8.8.8DNSStandard query A www.example.com75 B
20.012s8.8.8.8192.168.1.10DNSStandard query response A 203.0.113.1091 B
30.024s192.168.1.10203.0.113.10TCP52344 → 80 [SYN] Seq=066 B
40.041s203.0.113.10192.168.1.10TCP80 → 52344 [SYN, ACK] Seq=0 Ack=166 B
50.058s192.168.1.10203.0.113.10TCP52344 → 80 [ACK] Seq=1 Ack=160 B
60.058s192.168.1.10203.0.113.10HTTPGET / HTTP/1.1484 B
70.076s203.0.113.10192.168.1.10HTTPHTTP/1.1 200 OK (text/html), 9 segments12.8 KB

Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.

LAYERApplication (Layer 7)
DEFAULT PORT80 (HTTPS: 443)
TRANSPORTTCP
DATA FORMATText (headers + optional body)
COMMON METHODSGET, POST, PUT, DELETE, HEAD
DEFINED INRFC 9110, RFC 9112

What is HTTP?

HTTP is how browsers ask for pages: one request, one response, written as readable text. The methods, status codes and headers it defines are still the common language of every web API.

Steps

  1. 1. CLIENT REQUESTBrowser prepares the request
  2. 2. DNS RESOLUTIONFinds the server’s IP address
  3. 3. TCP CONNECTIONEstablishes a reliable link
  4. 4. HTTP EXCHANGERequest and response messages
  5. 5. PAGE RENDERINGBrowser displays the content

Which port does HTTP use?

HTTP primarily uses port 80 and 443.

Which layer does HTTP run at?

HTTP sits at Application (Layer 7).

Where is HTTP defined?

RFC 9110, RFC 9112.

Related ports

Related protocols

About This Tool

This page provides original, human-reviewed information about internet protocols such as HTTP (Hypertext Transfer Protocol), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.