RFC-2616– HyperText Transfer Protocol — HTTP/1.1

OSI 7-layer Reference Model and TCP/IP Protocol Layers.

Here Application Layers include 5. Session, 6. Presentation, and 7. Application Layers of OSI Model.

GET /index.html HTTP/1.1 
Host: localhost:8080
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36
Accept: */*
Referer: http://localhost:8080/
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: ja,en-US;q=0.8,en;q=0.6

The first line indicates HTTP Request on the first line above: GET Method to /index.html URL, with HTTP 1.1 version protocol.

The second and to the empty line are the HTTP Request header.

HTTP Request POST method has a header part and a body part following the empty line of the header.

Empty Line

Diagram & Info above from:  https://www.micrium.com/iot/internet-protocols/

HTTP GET and POST requests are on the Application Layer of TCP/IP Model.

HTTP Request Method GET has the structure of : header

Info from:  https://qiita.com/Sekky0905/items/dff3d0da059d6f5bfabf

Other resources:https://www.ntu.edu.sg/home/ehchua/programming/webprogramming/HTTP_Basics.html


物理層の例(Physical and Data Link Layers)

  • Ethernet (10, 100, 1G)
  • WiFi (802.11b, g, n)
  • Serial with PPP (point-to-point protocol)
  • GSM, 3G, LTE, 4G



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s