• Is there some curl-like tool for gemini?

    From Croma@nobody@nowhere.invalid to comp.infosystems.gemini on Wed Jun 10 12:08:21 2026
    From Newsgroup: comp.infosystems.gemini

    Hi!

    I'm pretty much new to the gemini universe, one thing I think would be
    useful would be some sort of tooling where I could "poke" my server,
    something like "curl".

    I've seen curl devs refused to implement it in another post, but what is
    the alternative besides using a browser?

    Am I overthinking it? What do you guys do when you want to play sending requests to a development server?
    --
    Croma
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From yeti@yeti@tilde.institute to comp.infosystems.gemini on Wed Jun 10 17:50:09 2026
    From Newsgroup: comp.infosystems.gemini

    Croma <nobody@nowhere.invalid> wrote:

    Hi!

    I'm pretty much new to the gemini universe, one thing I think would be
    useful would be some sort of tooling where I could "poke" my server, something like "curl".

    I've seen curl devs refused to implement it in another post, but what is
    the alternative besides using a browser?

    Am I overthinking it? What do you guys do when you want to play sending requests to a development server?

    What do you need?

    Just request a page to trigger some action on the server?

    ------------------------------------------------------------------------
    $ printf 'gemini://geminiprotocol.net/docs/specification.gmi\r\n' \
    | ncat --ssl geminiprotocol.net 1965 \
    | fmt | head
    # Project Gemini specifications

    In late March 2024, the official Gemini specification was refactored into
    two separate documents, one which addresses only the network protocol
    and one which addresses only the markup format. Both specifications are intended to be more formal and less ambiguous than the combined document
    which historical served as a "speculative specification".

    protocol-specification.gmi Gemini network protocol specification gemtext-specification.gmi Gemini hypertext format ("gemtext")
    $ rue
    ------------------------------------------------------------------------
    --
    RESIST AND UNSUBSCRIBE
    <https://www.resistandunsubscribe.com/>
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Croma@nobody@nowhere.invalid to comp.infosystems.gemini on Wed Jun 10 15:06:08 2026
    From Newsgroup: comp.infosystems.gemini

    yeti <yeti@tilde.institute> writes:


    What do you need?

    Just request a page to trigger some action on the server?

    Yes, something like that. Like when you use curl to poke an HTTP
    service during development.

    For now, what you showed is enough, thanks.

    I've been testing with gnutls-cli, so something like:

    $ printf 'gemini://geminiprotocol.net/docs/specification.gmi\r\n'
    | gnutls-cli --insecure geminiprotocol.net:1965

    works fine for my current needs.
    --
    Croma
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From yeti@yeti@tilde.institute to comp.infosystems.gemini on Wed Jun 10 19:01:47 2026
    From Newsgroup: comp.infosystems.gemini

    Croma <nobody@nowhere.invalid> wrote:

    I've been testing with gnutls-cli, so something like:

    $ printf 'gemini://geminiprotocol.net/docs/specification.gmi\r\n'
    | gnutls-cli --insecure geminiprotocol.net:1965

    works fine for my current needs.

    \o/ Yayyyy!
    --
    KNORKATOR
    Rette sich wer kann (OFFICIAL VIDEO)
    <https://youtu.be/9kum37s7qus>
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From news@news@zzo38computer.org.invalid to comp.infosystems.gemini on Wed Jun 10 11:45:36 2026
    From Newsgroup: comp.infosystems.gemini

    Croma <nobody@nowhere.invalid> wrote:
    I've seen curl devs refused to implement it in another post, but what is
    the alternative besides using a browser?

    There are multiple such programs (unfortunately not curl itself, although
    in my opinion they should; you can use the -k switch to disable checking
    the certificate if needed).

    One of them is a program I wrote myself, which supports other protocols
    as well (including Titan, and also limited support for HTTP).

    However, you can also use "echo | ncat --ssl | tail-n+2", so you do not
    need specialized software for this use.
    --
    Don't laugh at the moon when it is day time in France.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Christopher Howard@christopher@librehacker.com to comp.infosystems.gemini on Thu Jun 11 11:45:17 2026
    From Newsgroup: comp.infosystems.gemini

    Hi, is gmni what you are looking for?

    ```
    christopher@theoden ~$ guix show gmni
    name: gmni
    version: 1.0
    outputs:
    + out: everything
    systems: x86_64-linux i686-linux
    dependencies: bearssl@0.6 pkg-config@0.29.2 scdoc@1.11.4
    location: gnu/packages/web-browsers.scm:737:2
    homepage: https://sr.ht/~sircmpwn/gmni
    license: GPL 3+, non-copyleft
    synopsis: Minimalist command line Gemini client
    description: The gmni package includes:
    +
    + * A CLI utility (like curl): gmni
    +
    + * A line-mode browser: gmnlm
    ```
    --
    Christopher Howard
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Croma@nobody@nowhere.invalid to comp.infosystems.gemini on Thu Jun 11 23:35:41 2026
    From Newsgroup: comp.infosystems.gemini

    Christopher Howard <christopher@librehacker.com> writes:

    Hi, is gmni what you are looking for?

    ```
    christopher@theoden ~$ guix show gmni
    name: gmni
    version: 1.0
    outputs:
    + out: everything
    systems: x86_64-linux i686-linux
    dependencies: bearssl@0.6 pkg-config@0.29.2 scdoc@1.11.4
    location: gnu/packages/web-browsers.scm:737:2
    homepage: https://sr.ht/~sircmpwn/gmni
    license: GPL 3+, non-copyleft
    synopsis: Minimalist command line Gemini client
    description: The gmni package includes:
    +
    + * A CLI utility (like curl): gmni
    +
    + * A line-mode browser: gmnlm
    ```

    Thanks, cool project!
    --
    Croma

    What we see now is like a dim image in a mirror.
    Then we shall see face to face.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From =?UTF-8?Q?Benjamin_Kwiecie=C5=84?=@benk@tilde.team to comp.infosystems.gemini on Thu Jul 16 16:14:26 2026
    From Newsgroup: comp.infosystems.gemini

    I don't know if this could be useful to you, but the client I use,
    diohsc, is made to be able to invoke requests from the command line non-interactively. With tinkering able to do some tricks like send
    submissions while using a client certificate, and I use that in bash
    scripts.

    Ben
    --- Synchronet 3.22a-Linux NewsLink 1.2