Skip to content

Day 3: HTTP headers and cookies

The same URL, same data sent, but different content?

How did they give you cookies? Why did they give you cookies? You may have wondered this when you open a website and they ask to “accept cookies”. Here is your answer - cookies is an http header that gets sent with the information websites stored on your computer. But now what is an HTTP header? find out -

Theory

HTTP headers and cookies

Objective: Understand how webpages are generated and given to users.

HTTP headers Read here

cookies Read here

sessions Read here

Practice

Hands-On Exercise

try mimicking a request sent from your computer to any website that uses sessions and cookies using cURL