#!/bin/sh URI=$(python -c "import urllib; print urllib.quote('$HTTP_REFERER', '')") echo Status: 307 echo "Location: http://html5.validator.nu/?doc=$URI&showsource=yes" echo Content-Type: text/html; charset=utf-8 echo echo ' echo '