What is the semicolon reserved for in URLs?

前端 未结 6 899
梦谈多话
梦谈多话 2020-12-05 04:42

The RFC 3986 URI: Generic Syntax spec lists a semicolon as a reserved (sub-delim) character:

reserved    = gen-delims / sub-delims

gen-delims  = \":\" / \"/         


        
6条回答
  •  無奈伤痛
    2020-12-05 05:03

    The intent is clearer if you go back to older versions of the specification:

      path_segments = segment *( "/" segment )
      segment       = *pchar *( ";" param ) 
    

    Each path segment may include a sequence of parameters, indicated by the semicolon ";" character.

    I believe it has its origins in FTP URIs.

提交回复
热议问题