You need to follow this steps:
The only mandatory argument is the MIME type (mp3, avi, etc.) of the files you want to get. You can specify multiple types using commas without spaces:
png,mp4,jpg
If the type is mp3 the extracted files will be renamed using his id3v2 tags.
So, if you want to save the PNG's files from foo.org, you can issue this command:
sudo catch-http png
After that, browse to foo.org, wait until the images are downloaded and do a CTRL+C on the catch-http terminal. Now, you have a set of images on your current directory called file-0.png, file-1.png, etc.
If you want to send the files to your images directory, you can do:
sudo catch-http -d ~/images/ png
Or, if you want to save the PNG's and JPG's:
sudo catch-http -d ~/images/ png,jpg
Please note that the type definitions are separated using a comma without spaces
catch-http tries to get the default network interface to capture the packets, but if you're using another interface to browse, you can specify it with this option.
This option indicates the directory where the extracted files will be moved.
By default, catch-http digs on the HTTP headers to get the real MIME type of the files, but if you want to check the headers only once use this option.
catch-http creates a temporal file on /tmp/ to save the captured connections and deletes it when the job is done, if you don't want to delete the connections directory use this option.
Sometimes, the first line of a HTTP header comes with extra bytes before it. If you're having problems getting the MIME types of the captured files, try to increment this value (the default is 23, so use higher values).
Shows a list of the recognized MIME types used to filter your requests.
Don't displays the informative messages.