[PLUG] http / curl data decoding problem

Tom Sharples tsharples at qorvus.com
Tue Jul 1 17:40:17 UTC 2008


This was very helpful, thanks!

----- Original Message ----- 
From: "Russell Senior" <russell at personaltelco.net>
To: "Tom Sharples" <tsharples at qorvus.com>
Cc: "General Linux/UNIX discussion and help; civil and on-topic" 
<plug at lists.pdxlinux.org>
Sent: Sunday, June 29, 2008 4:10 PM
Subject: Re: [PLUG] http / curl data decoding problem


>>>>>> "Tom" == Tom Sharples <tsharples at qorvus.com> writes:
>
> Tom> Hello, We're experiencing an annoying problem and hope someone
> Tom> out here has a suggestion.
>
> Tom> Background: we're trying to load a series of settings into a
> Tom> black-box device that's hooked up via ethernet to our embedded pc
> Tom> running a slack distro under a 2.4.23 kernel.  This black-box
> Tom> device is normally set up manually via html, using the built-in
> Tom> server / GUI that's accessable via e.g. Firefox. If you do the
> Tom> setup that way, everything works fine.  However, we are trying to
> Tom> do the html setup in batch using a script that's using CURL to
> Tom> emulate the actions of the Firefox browser. No matter what we
> Tom> try, we can't quite get the batch setup process to "take"
>
> Tom> I think we could readily troubleshoot this problem if we could
> Tom> easily compare the HTML data to and from the black-box when we're
> Tom> using Firefox, to the HTML data to and from the black box when
> Tom> we're using CURL.  We've tried tcpdump and the output is not only
> Tom> asyncronous, but comes in a very unfriendly format with all sort
> Tom> of un-wanted "extra" stuff that makes the result quite difficult
> Tom> to parse and decipher.  My question - is there a tool that we
> Tom> could install on our embedded PC that would let us monitor (and
> Tom> store for later analysis) these HTML strings / data packets in a
> Tom> user-friendly and human-readable form?
>
> Capture whole packets with tcpdump[1], load the result into wireshark[2] 
> and
> filter away the traffic you don't care about.
>
> [1] tcpdump -i <iface> -s 1500 -w /tmp/capture.pcap
> [2] wireshark capture.pcap
>
>
> -- 
> Russell Senior, Secretary
> russell at personaltelco.net 




More information about the PLUG mailing list