HTTP: Difference between revisions
Jump to navigation
Jump to search
(Created page with "The '''H'''yper'''T'''ext '''T'''ransfer '''P'''rotocol is used by browsers and other User-Agents to perform actions on the web. HTTP version 1.1 is defined i...") |
|||
Line 3: | Line 3: | ||
== Example == | == Example == | ||
You can communicate with a non-encrypted HTTP 1.1 server using a tool like [https://en.wikipedia.org/wiki/Netcat netcat]. | You can communicate with a non-encrypted HTTP 1.1 server using a tool like [https://en.wikipedia.org/wiki/Netcat netcat]. | ||
> nc example.org 80 | |||
GET / HTTP/1.1 | |||
Host: example.org | |||
Once you send the empty line you should receive the response from the server. | Once you send the empty line you should receive the response from the server. |
Revision as of 17:18, 18 January 2021
The HyperText Transfer Protocol is used by browsers and other User-Agents to perform actions on the web. HTTP version 1.1 is defined in rfc2616.
Example
You can communicate with a non-encrypted HTTP 1.1 server using a tool like netcat.
> nc example.org 80 GET / HTTP/1.1 Host: example.org
Once you send the empty line you should receive the response from the server.