added testing program from book-cgi_decode.c