GG(1) General Commands Manual GG(1)

gggemini client

gg [-23Nnq] [-C cert] [-d mode] [-H sni] [-K key] [-P host[:port]] [-T secondsgemini://...

gg (gemini get) fetches the given gemini page and prints it to standard output.

The options are as follows:

Use TLSv1.2.
Use TLSv1.3.
certificate
Use the given client certificate.
mode
Specify what gg should print. mode can be one of:
print only the body of the reply, the default.
print only the response code.
print only the response header.
print only the response meta.
print the whole response as-is.
sni
Use the given sni host name instead of the one deducted by the IRI or proxy.
key
Specify the key for the certificate. It's mandatory if -C is used.
Disables the server name verification.
Check the given IRI for validity, but don't issue any requests.
host[:port]
Connect to the given host and port to do the request instead of the ones extracted by the IRI. port is by default 1965. IPv6 addresses have to be wrapped in braces, for e.g. [::1].
Don't print server error messages to standard error.
seconds
Kill gg after seconds.

The gg utility exits with zero if the response code was in the 2x range. If a failure occurs, it exits with status code 1. Otherwise, the error code reflects the Gemini response code.

gg uses the “Flexible and Economical” UTF-8 decoder written by Bjoern Hoehrmann.

ftp(1), titan(1)

The gg utility was written by Omar Polo <op@omarpolo.com>.

gg doesn't perform TOFU (Trust On First Use) or any X.509 certificate validation beyond the name verification.

gg doesn't follow redirects.

May 29, 2024 OpenBSD 7.6