wapget



wapget is a tiny programm largely based on a libwsp example originally written by Olivier Bonenfant. It fetches an URL via WAP using a specified gateway in connectionless mode and outputs it on stdout. The result is usually compiled WML, so for a convenient way to decompile it you might want to apply the tiny patch (available below) to wmld from the wml-tools to be able to pipe wapget's output to it.

I think I will add support for libwbxml so the use of the non-free wml-tools is no longer needed and no fiddling with pipes, either.

Compilation

Compile it with the command

export LD_LIBRARY_PATH=/opt/libwsp/lib/
g++ -o wapget wapget.cpp -I /opt/libwsp/include/libwsp/ \
    -L /opt/libwsp/lib/ -lwsp -Wno-deprecated


(change /opt/libwsp to your installation of libwsp).

Download wapget

wapget.cpp

The code of wapget

4.7 K

wapget.cpp.asc

GnuPG signature

234

wmld-stdin-stdout.diff

Patch to wmld to allow for in/output on stdin/stdout

496