It's based on jhttptunnel ( http://www.jcraft.com/jhttptunnel/ )