1 febfcde8 2022-01-13 op .\" Copyright (c) 2021, 2022 Omar Polo <op@omarpolo.com>
3 5c7abf01 2021-12-29 op .\" Permission to use, copy, modify, and distribute this software for any
4 5c7abf01 2021-12-29 op .\" purpose with or without fee is hereby granted, provided that the above
5 5c7abf01 2021-12-29 op .\" copyright notice and this permission notice appear in all copies.
7 5c7abf01 2021-12-29 op .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 5c7abf01 2021-12-29 op .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 5c7abf01 2021-12-29 op .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 5c7abf01 2021-12-29 op .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 5c7abf01 2021-12-29 op .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 5c7abf01 2021-12-29 op .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 5c7abf01 2021-12-29 op .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 d78dbe8d 2022-01-30 op .Dd $Mdocdate: January 30 2022$
19 5c7abf01 2021-12-29 op .Nd gemini client
24 5c7abf01 2021-12-29 op .Op Fl C Ar cert
25 5c7abf01 2021-12-29 op .Op Fl d Ar mode
26 5c7abf01 2021-12-29 op .Op Fl H Ar sni
27 5c7abf01 2021-12-29 op .Op Fl K Ar key
28 febfcde8 2022-01-13 op .Op Fl P Ar host Ns Oo : Ns Ar port Oc
29 5c7abf01 2021-12-29 op .Op Fl T Ar seconds
30 5c7abf01 2021-12-29 op .Ar gemini://...
32 5c7abf01 2021-12-29 op .Sh DESCRIPTION
34 5c7abf01 2021-12-29 op .Pq gemini get
35 5c7abf01 2021-12-29 op fetches the given gemini page and prints it to standard output.
37 5c7abf01 2021-12-29 op The options are as follows:
38 5c7abf01 2021-12-29 op .Bl -tag -width Ds
40 5c7abf01 2021-12-29 op Accept only TLSv1.2.
42 5c7abf01 2021-12-29 op Accept only TLSv1.3.
43 5c7abf01 2021-12-29 op .It Fl C Ar certificate
44 5c7abf01 2021-12-29 op Use the given client
45 5c7abf01 2021-12-29 op .Ar certificate .
46 5c7abf01 2021-12-29 op .It Fl d Ar mode
51 5c7abf01 2021-12-29 op can be one of:
52 5c7abf01 2021-12-29 op .Bl -tag -width header -compact
54 5c7abf01 2021-12-29 op print only the body of the reply
56 5c7abf01 2021-12-29 op print only the response code
58 5c7abf01 2021-12-29 op print only the response header
60 5c7abf01 2021-12-29 op print only the response meta
62 5c7abf01 2021-12-29 op print the whole response as-is.
64 5c7abf01 2021-12-29 op .It Fl H Ar sni
67 5c7abf01 2021-12-29 op host name instead of the one deducted by the IRI or proxy.
68 5c7abf01 2021-12-29 op .It Fl K Ar key
69 5c7abf01 2021-12-29 op Specify the key for the certificate.
70 5c7abf01 2021-12-29 op It's mandatory if
74 5c7abf01 2021-12-29 op Disables the server name verification.
76 5c7abf01 2021-12-29 op Check that the given IRI is valid, but don't make any requests.
77 d78dbe8d 2022-01-30 op .It Fl P Ar host Ns Oo : Ns Ar port Oc
78 5c7abf01 2021-12-29 op Connect to the given
82 5c7abf01 2021-12-29 op to do the request instead of the ones extracted by the IRI.
84 5c7abf01 2021-12-29 op is by default 1965.
85 5c7abf01 2021-12-29 op .It Fl T Ar seconds
91 5c7abf01 2021-12-29 op .Sh EXIT STATUS
94 5c7abf01 2021-12-29 op utility exits with zero if the response code was in the 2x range.
95 5c7abf01 2021-12-29 op .Sh ACKNOWLEDGEMENTS
98 5c7abf01 2021-12-29 op .Dq Flexible and Economical
99 5c7abf01 2021-12-29 op UTF-8 decoder written by
100 5c7abf01 2021-12-29 op .An Bjoern Hoehrmann .
105 5c7abf01 2021-12-29 op utility was written by
106 5c7abf01 2021-12-29 op .An Omar Polo Aq Mt op@omarpolo.com .
109 5c7abf01 2021-12-29 op doesn't do any TOFU
110 5c7abf01 2021-12-29 op .Pq Trust On First Use
111 5c7abf01 2021-12-29 op or any X.509 certificate validation beyond the name verification.
114 5c7abf01 2021-12-29 op doesn't follow redirects.