Re: RFC: proxy conventions
On Tue, Jan 17, 2023 at 8:20 PM Cameron Kaiser <spectre@floodgap.com> 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@floodgap.com
> -- Put down your guns, it's Weasel Stomping Day! ------------------------------
>
Reply to: