September 4, 2021 | 23:15
INE WebApp Labs - Introduction
Preparation # Set lab DNS $ sudo sed -i 's/nameserver.*/nameserver 10.100.13.37/' /etc/resolv.conf Cookies These are labs to understand how cookies work.
Lab 1 Test cookie with domain set by default
$ curl -i -s -k -X $'POST' \ -H $'Host: a.correctcookie1.site' \ --data-binary $'username=admin&password=adminpassword' \ $'http://a.correctcookie1.site/login.php' \ | grep "TestCookie" Set-Cookie: TestCookie=Cookie+set+by+default The cookie is set without a domain value and without a path. It is only valid for the same domain, but all paths:
Read more