• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

绝望生鱼片

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

URL里的分号';'一定要编码为%3b!!!!

http://en.wikipedia.org/wiki/Query_string

 

The series of pairs is separated by the ampersand, '&' (or semicolon, ';' for URLs embedded in HTML and not generated by a <form>...</form>; see below).

While there is no definitive standard, most web frameworks allow multiple values to be associated with a single field:[3][4]

For each field of the form, the query string contains a pair field=value. Web forms may include fields that are not visible to the user; these fields are included in the query string when the form is submitted

This convention is a W3C recommendation.[5] W3C recommends that all web servers support semicolon separators in addition to ampersand separators[6] to allowapplication/x-www-form-urlencoded query strings in URLs within HTML documents without having to entity escape ampersands.

 

 

在HTML规范里,分号是可以当&用的!!!擦!陷阱啊!!!

传的时候一定要URLENcode!!!

posted on 2013-07-08 19:56  绝望生鱼片  阅读(5085)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3