So... file: URLs can have a query, like file:///foo/bar.txt?blah
But why? Is there anything that would handle that?
So... file: URLs can have a query, like file:///foo/bar.txt?blah
But why? Is there anything that would handle that?
@jamesh hehe, I haven't really learned how hostnames play with UNC paths or if they are even related.
@federicomena That seems to be an evolution of generic URI syntax (https://www.rfc-editor.org/rfc/rfc3986). That is, rules designed to let you parse arbitrary URLs.
It doesn't mean that every component is meaningful for every scheme. For instance, you could construct a file URI with a hostname that isn't empty or "localhost" and it would parse according to the generic rules, but wouldn't be meaningful.
@federicomena The query component isn't part of the syntax described in https://www.rfc-editor.org/rfc/rfc8089.html#section-2
@jamesh https://url.spec.whatwg.org/#url-parsing seems to disagree 🤷♂️
@federicomena SQLite uses it https://www.sqlite.org/uri.html
@federicomena if you open the file in a web browser, and it's html or even JS, the JS code can access the query parameters. Same with anchors `#`
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.