Questions on INPUT behavior
Sean Conner sean at conman.org
Wed Aug 28 19:57:14 BST 2019
It was thus said that the Great Michael Lazar once stated:
> On Wed, Aug 28, 2019 at 1:16 PM Sean Conner <sean at conman.org> wrote:
> > > Of course, I could write my server to be able to understand and parse these
> > > path components. But it throws the whole "path as a hierarchy" paradigm out
> > > the window. I can only assume that this issue is why query param key-value
> > > pairs were invented in the first place.
> >
> > The path is an abstract reference to a resource. It's only hierarchial in
> > your mind. There is no spoon.
> >
> > -spc
>
> I used to think that way too, but then my gemini proxy got pwned by your torture
> test :-)
Heh. Sorry about that.
> Then I discovered that I had to deal with splitting path components,
> concatenating relative paths, resolving dot-segments, and a bunch of other
> hierarchical junk that I didn't consider before and am probably still
> getting wrong now.
Well, the resolving dot-segments algorithm is mentioned in RFC-3986,
section 5.2.4, and the URL merging algorithm is section 5.2.2. Implement
those (and there are test cases in the RFC) and you should be okay.
> All hail the spoon
-spc (Spoooooooooooooooooooooon!)
Archive home | About this archive