←back to thread

53 points heavensteeth | 1 comments | | HN request time: 0.32s | source
Show context
zoobab ◴[] No.43653287[source]
Python has cgi-bin support, I made a proxy of the poor like this:

$ mkdir cgi-bin $ echo -e "#!/bin/bash\necho -e \"Content-type: text/html\n"curl -s -k http://www.zoobab.com -o -" > cgi-bin/proxy.sh $ python -m http.server --cgi 8000 $ curl http://localhost:8000/cgi-bin/proxy.sh

You should get the html page of http://www.zoobab.com

replies(2): >>43653841 #>>43654809 #
1. whalesalad ◴[] No.43654809[source]
The first startup I ever worked for used Python server pages, .psp file extension.