Home > Mobile >  What does the @ symbol mean in a URL?
What does the @ symbol mean in a URL?

Time:09-17

Does the @ symbol have a special meaning in REST URLs?

For example https://host/students/{id}/@classes

CodePudding user response:

RFC 3986

   pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"

which means that it is just another character that can be used in a path segment.

A local routing implementation might do something clever when it sees a URI with an unescaped U 0040 in the path, but to a general purpose HTTP component it is just a letter.


Note that in the authority element of a URI, U 0040 does have special meaning as a delimter

   URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

   hier-part     = "//" authority path-abempty
                 / path-absolute
                 / path-rootless
                 / path-empty

   authority     = [ userinfo "@" ] host [ ":" port ]
  •  Tags:  
  • rest
  • Related