| 50 | === Network analysis === |
| 51 | |
| 52 | Although ''libsoup'' should log everything we need about the network traffic in the GTK port, we may want to use other mechanisms to get that information because, for example, we don't have a build with logging support available in that moment. |
| 53 | |
| 54 | Tools like [http://www.tcpdump.org/ tcpdump] or [https://www.wireshark.org/ WireShark] can be handy in this case. |
| 55 | |
| 56 | This is an example of ''tcpdump'' usage to get all the headers of the HTTP traffic going to an HTTP server running in the port ''8000'' of the ''loopback'' interface: |
| 57 | {{{ |
| 58 | #!sh |
| 59 | $ tcpdump -vvvs 1024 -l -A -i lo0 'tcp port 8000' |
| 60 | }}} |
| 61 | |
| 62 | |