Building it
There are few things to do:
./configure
to configure the source for your system. If configure reports any error, the source will very likely not build correctly. Please report bugs to the authors. make
at the command prompt. This should build the client executable in the client directory.make clean
to delete all object files and auto-save files. make stat
outputs a little code statistics. You need the wc
program to use this. flex -i img.lex
make clean; make
client
is: client get full-path-to-file destination-file port
full-path-to-file
is the full URI, like io.iupiter.universe/www/hund.html
. destination-file
is the local file where the downloaded file is to be stored. port
is the port number the server is running on. Usually, this is 80.
For sending mail
client mail mailfile
Where
mailfile
is a filename of a file of the following format:
Downloaded Files
If you download a HTML file, for example www.animals.org/dog/cat/mouse.html, it is stored in the given destination file AND in the cache subdirectory (which is specified in client/src/w3clientconfig.h). The HTML file is scanned for image tags and the corresponding images are downloaded and stored in the cache directory, in this example that could be
cache/www.animals.org/pictures/dog.gif
The HTML pages are stored flatly in cache/, e.g. as
cache/www.animals.org_index.html
The slashes are replaced by underscores. This CAN lead to clashes but that is neglected for this program. In a release version, another mechanism would have to be used.