1. not a fan of fascism (n00b)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Feb 2003
    Rep Power

    Question that seems to fit in none of the forums

    Well, i couldnt really decide where this question belonged, so i figured i'd just stick it here since this is where i usually find myself...mod plz move to appropriate place if necessary.

    -Ok, i'm wondering if there is anyway to "catch/extract" the HTTP request that my browser sends out when querying a server for a page. When i click on a link or log into an account, is there anyway to view the actual transaction occurring between my browser and the server? The reason i ask is b/c i am trying to learn from example and this would greatly assist me. i am too poor to buy anymore books that have to do with computers... at least till i get some $$$
  2. #2
  3. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Rep Power
    Ethereal. I list a link to it at the bottom of my sockets programming page.

    It's a free packet sniffer, basically a GUI frontend for tcpdump. And it's available for both Linux and Win32 -- We've used it with great success under Windows 98. The GUI has three tiled windows. In the first window, it lists the packets it captured. Then you select a packet and in the second window it breaks the packet down into its different parts, displaying all the fields therein and translating their values into what they mean. Then in the third window it displays the entire packet in hexadecimal. When you click on a field in the second window, it highlights the field's bytes in the hex dump. And when you click on a byte in the hex dump, it highlights the field that contains it. And during the packet capture, you can apply filters (identical to the ones in tcpdump) to specify only certain protocols or certain hosts or certain ports.

    Did I mention that it is free?

    And if a GUI is not your style, you could get WinDump instead; it's a Win32 port of tcpdump, a command-line packet sniffer. Or if your system is Linux, tcpdump should either be installed or on your distribution CDs.

    The link for Ethereal is http://www.ethereal.com/ . Also check out their links page at http://www.ethereal.com/links.html .

    Warning: The actual packet capturing and filtering is done by libpcap on Linux and WinPCap on Windows. Read the installation instructions carefully to be sure that you have everything you need. Even if you only get WinDump, you will still need WinPCap.

    Ever notice those "Powered by vi" labels on some pages? Read the label at the bottom of the Ethereal page:
    "This site powered by cat and ^D
    Editors are for wimps."
    Kind of like the other night when I amazed a fellow student by creating a DOS text file with "copy con test.txt" and closing it with ^Z. We used to call that the "poor man's text editor".

IMN logo majestic logo threadwatch logo seochat tools logo