Play with netcat and cURL to make HTTP request

E Ma
Nov 13, 2020

HTTP stands for Hypertext Transfer Protocol. It is rules for data communication in WWW(Web Wide Web).

Components of a request

In order to make a http request, we need to at least specify:

  1. Request method — what is the type of request we are making.
  2. URI — which resource to apply the request, including protocol and host name.
  3. Header — additional information about the request, client to the server.