display url of http packets

Apr 3, 2014 at 6:37 AM
Hi, does anyone have any idea on how to display the url of the web pages that i load. I managed to display the source and destination address but what about the url. Is there a method to do it? Thanks in advance.
Coordinator
Apr 4, 2014 at 2:20 PM
You can try getting if from packet.Ethernet.IpV4.Tcp.Http, but you will have to only do that for valid HTTP requests.
Apr 5, 2014 at 3:23 PM
Sorry but do you have an example on how to do it? Because I do not know how to use packet.Ethernet.IpV4.Tcp.Http as I keep getting errors.
Coordinator
Apr 12, 2014 at 8:11 AM
You should make sure you only try to parse valid HTTP over TCP over IPv4 over Ethernet packets.