【问题标题】:@ sign as url parameter separator?@ 符号作为 url 参数分隔符?
【发布时间】:2014-04-08 21:33:13
【问题描述】:

在浏览新的 Google 地图时,我看到他们使用 @ 符号而不是 ? 将 url-path 与查询参数分开,例如:

https://www.google.com/maps/@38.1158476,-96.2044115,6z

@ 之后的坐标会随着您在地图上导航而改变,但无需刷新浏览器。书签可以正常使用。

Wikipedia does not mention 关于此的任何信息,RFC3986 仅显示 @ 符号作为用户名/密码身份验证的可能性。

这是标准化功能还是专有浏览器功能?此功能使用安全吗?如何正确使用?

【问题讨论】:

    标签: url standards url-parameters


    【解决方案1】:

    @38.1158476,-96.2044115,6z不是query component。它仍然是path component 的一部分。

    @ character can be used in the path, even without percent-encoding it

    所以从 URI 标准的角度来看,这个 URI 没有什么特别之处。可以使用任何其他(或没有)字符。

    我假设 Google 在这里使用 @,因为用户可能会将其读作“at”,这适用于“at ”。

    【讨论】:

      猜你喜欢
      • 2011-03-29
      • 2016-11-21
      • 2011-04-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-22
      • 1970-01-01
      相关资源
      最近更新 更多