[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] org.conman.parsers.url 2.0.2 released
- From: Sean Conner <sean@...>
- Date: Thu, 4 Jun 2020 21:09:36 -0400
It was thus said that the Great Sean Conner once stated:
> It was thus said that the Great Luiz Henrique de Figueiredo once stated:
> > > query = "q=foo%20bar&lang=en",
> >
> > Shouldn't query be a table?
> >
> > query = { q = "foo bar", lang = "en" }
> >
> > Or are there helper functions for that?
>
> It used to be decoded into a table, but there were issues doing that
> related to CGI scripts (as defined in RFC-3875) where the following is
> legal:
>
> http://example.com/search?look+for+this
>
> (RFC-3875, section 4.4).
Oh, and one other reason related to CGI---the CGI script is expecting an
undecoded query string, which meant re-serializing a parsed table back into
a string. That also influenced my decision---to avoid parsing data that
wasn't going to be used parsed.
-spc