&dhucpackage; &dhsection;

&dhpackage;

small http proxy which tidies html

          &dhpackage;
           \-\-host hostname \-p port \-d \-l {1|2} \-\-action {t|v} \-\-tidy\-cmd tidy\-command \-\-validate\-cmd validate command \-\-pid pid\-file

## DESCRIPTION

&dhpackage; is a small proxy server written in perl. using this proxy web-pages are checked for HTML errors with tidy or validate while they are downloaded. The results are displayed on top of that page. &dhpackage; is mainly intended for developing dynamic web-pages.

This manual page was written for the &debian; distribution because the original program does not have a manual page.

## OPTIONS

`\-\-host` *host*

- the host parameter sets the listening address for tidy-proxy. [default: localhost]

`\-p, \-\-port` *port*

- port sets the listening port for tidy-proxy. [default: 9090]

`\-d, \-\-nodaemon`

- run tidy-proxy in foreground

`\-l, \-\-level` *level*

- level sets the filtering level for tidy-proxy 1: Warnings 2: Errors

`\-\-action` *t|v*

- set if to use *t*idy or *v*alidate. [default: tidy]

`\-\-tidy\-cmd` *cmd*

- Command to use for tidy. [default: /usr/bin/tidy]

`\-\-validate\-cmd` *cmd*

- Command to use for validate. [default: /usr/bin/validate]

`\-\-pid` *pid\-file*

- Create a pid file. Works only in daemon mode.

`\-\-dest\-host` *destination host*

- run tidy-proxy in reverse-proxy mode. tidy-proxy acts as normal webserver and forwards every request to *destination host*. If you use this option, you probably want to enable --loc-rewrite.

`\-\-loc\-rewrite`

- rewrite the Location and the Host header in reverse-proxy mode.

`\-\-email` *email@adr.org*

- Send email report, if invalid page is found (instead of reporting it). This option requires Email::Simple, Email::Simple::Creator and Email::Send.

`\-h, \-?, \-\-help`

- Prints help message.

## SEE ALSO

tidy(1), validate(1)

## COPYRIGHT

Copyright (C) 2003-2006: &dhusername; <&dhemail;> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.