Networking essentialsLesson 4 of 8
Talking to web servers
Fetch pages with curl, read status codes and headers, and find what a website reveals without logging in.
0 of 6 tasks · about 14 min
Step 1
A web page is just text
The web runs on HTTP. A client (a browser, or
curl) sends a request naming a page; the server sends back a response with the page. A URL says where to send the request:http://shop.seaside.example/products └─┬─┘ └───────┬──────────┘└──┬───┘ scheme host pathcurlsends the request and prints the response body, which for a web page is HTML: the text and tags a browser turns into what you see.curl http://shop.seaside.example/What is the page's title (the text between
<title>and</title>)?
5 more steps after this one
Practice lab for "Talking to web servers". Type commands here and press Enter. Run help to list them.