Java Reference
In-Depth Information
Cookies always have a name. This cookie is named test-cookie . Remember this
name! It will allow you to locate the correct packet in the network monitor.
Before clicking anything, start WireShark. If the cookie was already set, ensure you click
“Clear Cookie” before continuing. Begin capturing packets and return to the web browser.
Once back at the web browser, select “Set Cookie”. Enter a value for the cookie, such as
“Hello”, and you will be taken back to the page shown in Figure 2.12. However, this time, the
value previously set to the cookie to should be displayed.
Select WireShark and stop capturing packets. Filter to just HTTP packets in WireShark
and look for the HTTP response just after the POST 1/2/cookies-set.php re-
quest. Figure 2.13 shows this.
Figure 2.13: Cookie as Part of a HTTP Response
Search WWH ::




Custom Search