Man Linux: Main Page and Category List

NAME

       httest - test HTTP driven application

SYNOPSIS

       httest [OPTIONS] scripts

DESCRIPTION

       httest  is  a  script  based  tool  for  testing  and  benchmarking web
       applications, web servers, proxy servers and web browsers.  httest  can
       emulate  clients  and  servers in the same test script, very useful for
       testing proxys.

OPTIONS

       -V --version
              Print version number and exit

       -h --help
              Display usage information (this message)

       -n --suppress
              do no print start and OK|FAILED

       -s --silent
              silent mode

       -e --error
              log level error

       -w --warn
              log level warn

       -d --debug
              log level debug

       -L --list-commands
              List all available script commands

       -C --help-command
              Print help for specific command

       -T --timestamp
              Time stamp on every run

       -S --shell
              Shell mode

EXAMPLES

       httest script.htt

       httest -Ts script.htt

SCRIPT SAMPLES

       Cut and past from a HTTP stream, i.e we cut the apache host  to  access
       it in the second request.

       CLIENT
       _REQ www.google.ch 80
       __GET /search?hl=de&q=apache&btnG=Google-Suche&meta=&aq=f&oq= HTTP/1.1
       __Host: www.google.ch
       __
       _MATCH body ’\<a href="http://([^\/]*)/" class=l\>Welcome! - The \<em\>Apache\</em\> HTTP Server Project’ APACHE_HOST
       _WAIT

       _REQ $APACHE_HOST 80
       __GET / HTTP/1.1
       __Host: $APACHE_HOST
       __
       _WAIT
       END

AUTHOR

       Written by Christian Liesch

REPORTING BUGS

       Report bugs to http://sourceforge.net/projects/htt

COPYRIGHT

       Copyright © 2006 Free Software Foundation, Inc.
       This is free software; see the source for copying conditions.  There is
       NO warranty; not even for MERCHANTABILITY or FITNESS FOR  A  PARTICULAR
       PURPOSE.