Learning Python Network Programming

(Sean Pound) #1
Chapter 7

In the Interface option, we choose to capture packets passing through any interface.
Now, if you run the preceding TCP client to connect to http://www.linux.org, you can see
the sequence of packets exchanged in Wireshark, as shown in the following screenshot:


As you can see, the first three packets establish the TCP connection by a three-way
handshake process between the client and server. We are more interested in the fourth
packet that makes an HTTP GET request to the server. If you double-click the selected
row, you can see the details of the HTTP request, as shown in the following screenshot:

Free download pdf