#!/bin/bash echo 'Content-Type: text/plain' echo URI=$(printf $(echo $QUERY_STRING | sed 's/%/\\x/g')) if echo "$URI" | egrep '^http://' &> /dev/null then lynx --dump "$URI" | sed 's/\[[0-9]*\]//g' | tr -d '\n' else echo 'Only supports fully fledged URIs, e.g. ".o web http://news.bbc.co.uk/"' fi