What are the valid URLs that can be used in a query variable?

What are the valid characters that can be used in a URL request variable?

I ask because I would like to create a GUID of the smallest string length using the largest character set if they can be passed as a URL query variable (www.StackOverflow.com?query=guiddaf09834fasnv)

Edit

If you want to encode the UUID / GUID or any other information presented in an array of bytes into a string convenient for the URL, you can use this method in the Apache Commons Code Library :

Base64.encodeBase64URLSafeString(byte[])
+3
source share
1 answer

, RFC.

. , URL-.

"2.2. URL-"

... alphanumerics, "$ -_. +! * '()," , , URL-.

+7

Source: https://habr.com/ru/post/1748700/


All Articles