Hi all, I am new to using wireshark. I captured network activity while loading a simple text based webpage and selected the option "Follow TCP data". I can see the HTTP request and response in plain text, but the data part is completely scrambled. It is simple http request so I expected the data part to be readable as well. Where am I going wrong? Please let me know. asked 15 Dec '14, 11:27 nckr |
One Answer:
The HTTP response is most certainly using compression, like the example below: As "Follow TCP Stream" does not support HTTP decompression, you won't see the HTTP response in cleartext. We would need something like "Follow HTTP Stream", which does not yet exist. You can look at the response in cleartext within the packet bytes pane and the packet details pane, as the HTTP dissector does decompression of the HTTP data.
Regards answered 15 Dec ‘14, 12:07 Kurt Knochner ♦ edited 15 Dec ‘14, 12:11 |
If I select a single TCP packet and look at its TCP segment data (which in my case has 1452 bytes), in the packet details pane, it has 4 columns. Is the 4th column ASCII representation of the data? If so is it clear text or still some compressed form for a simple http request? I expected it to be clear text since it is not https, but it looks scrambled as well.
please select the frame with the HTTP response in the info column, as that’s the frame where the HTTP dissector has seen all TCP segments required to re-assemble the whole HTTP response and where it is able to do decompression.
If you select the TCP segment data in that frame, you will still only see compressed data!!
However, if you select the HTTP data (or the reassembled TCP segments), you should see the HTTP response in cleartext. See also the tabs at the bottom of the window.
As the HTTP response can spread over several TCP segments (as in my example), that’s how the HTTP dissector (in combination with the TCP dissector) shows the combined data of the response.
Regards
Kurt
Thanks a lot for your response! I am now able to see the uncompressed data in clear text!