gopher2html.cgi - gopher2html - AWK script that converts a Gopher response to HTML
HTML hg clone https://bitbucket.org/iamleot/gopher2html
DIR Log
DIR Files
DIR Refs
DIR README
---
gopher2html.cgi
---
1 #!/bin/sh
2
3 case "${QUERY_STRING#gopher://*/}" in
4 0*)
5 export GOPHER2HTML_TYPE="file"
6 echo Content-type: text/plain
7 ;;
8 *)
9 echo Content-type: text/html
10 ;;
11 esac
12 echo
13 curl "$QUERY_STRING" | gopher2html