Re: RFC: proxy conventions

Wolfgang Faust <[email protected]> Tue, 17 Jan 2023 20:39:48 -0800
Newsgroups gmane.network.gopher.general
Message-ID <CAJvjBNbxEUJQVS2mVuJ2UciohOUVTiB+ztXYHOgEq9ySqauUYg@mail.gmail.com>
On Tue, Jan 17, 2023 at 8:20 PM Cameron Kaiser <spectre-nb4sah8SP49Wk0Htik3J/[email protected]> wrote:
>
> > How does the proxy knows that it deals with a menu and, consequently, that it
> > needs to rewrite its entries?
>
> Yes, that's the part I'm still pondering. It may just have to be content
> sniffing in that case.

I think you could just do it the same way gopher:// URLs handle this
problem? That is, rewrite our example menu as:

0About the server       @gopher.conman.org/0About:Server proxy.test      70
0About the author       @gopher.conman.org/0About:Me     proxy.test      70
1Gopher Server Source Code      @gopher.conman.org/1Gopher:Src:
proxy.test      70

...and then all the proxy has to do is only rewrite requests to
selectors that have a '1' there, and of course leave off that
character when sending the selector upstream.

>
> --
> ------------------------------------ personal: http://www.cameronkaiser.com/ --
>   Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckaiser-nb4sah8SP49Wk0Htik3J/[email protected]
> -- Put down your guns, it's Weasel Stomping Day! ------------------------------
>