Commit Diff


commit - 31a4993a9478d17776d45ab9041001a4ced37c17
commit + ce06cdc5bd41229755ebd136441eb98076d1ddd0
blob - e421dcd4784863a46a96fa49725a430cc67c2122 (mode 755)
blob + /dev/null
--- regress/gg.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python3
-
-# GeminiGet, aka gg
-# USAGE: ./gg path [port]
-
-import os
-import socket
-import ssl
-import urllib.parse
-import sys
-
-hostname = 'localhost'
-path = sys.argv[1]
-
-port = 1965
-if len(sys.argv) > 2:
-    port = int(sys.argv[2])
-
-s = socket.create_connection((hostname, port))
-context = ssl.SSLContext()
-context.check_hostname = False
-context.verify_mode = ssl.CERT_NONE
-s = context.wrap_socket(s, server_hostname = hostname)
-s.sendall(("gemini://" + hostname + ":" + str(port) + path + "\r\n").encode('UTF-8'))
-
-try:
-    fp = s.makefile("rb")
-    for line in fp.read().splitlines():
-        print(line.decode('UTF-8'))
-except:
-    pass