5

In a standard URI query string, am I allowed to use an equals (=) sign unencoded within the value part of a query component. In other words, am I allowed another equals sign after the first equals sign but before the & which separates the components? E.g. is the following valid?

index.html?param1=a_value_with_=_sign&param2=12=13

From my reading of What's valid and what's not in a URI query?, which summarises RFC 3986, the use of equals within the component does not "conflict with a reserved character's purpose as a delimiter", as it is clear in this case that only the first equals in each component serves as a delimiter. So I think I should be able to do this.

Community
  • 1
  • 1
user2667066
  • 1,867
  • 2
  • 19
  • 30
  • [Can an equals sign appear after the first equals sign in a query parameter?](http://stackoverflow.com/q/42506034/1591669) – unor Mar 17 '17 at 04:24
  • Thanks. I guess that essentially confirms my interpretation. Sorry I didn't spot this as a dup – user2667066 Mar 17 '17 at 17:04
  • 1
    Does this answer your question? [Can an equals sign appear after the first equals sign in a query parameter?](https://stackoverflow.com/questions/42506034/can-an-equals-sign-appear-after-the-first-equals-sign-in-a-query-parameter) – Sᴀᴍ Onᴇᴌᴀ Jun 03 '22 at 17:53

0 Answers0