Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is URL percent-encoding case sensitive?

Tags:

Is %3B treated differently to %3b in an URL?

like image 882
hugomg Avatar asked Nov 03 '11 11:11

hugomg


People also ask

Are URL links case sensitive?

Google's John Mueller clarifies that URLs are case sensitive, so it matters whether the characters are uppercase or lowercase. Variations in cases can make one URL different from another, similar to how a URL with a trailing slash is different from a URL without the slash.

What does %20 in a URL mean?

A space is assigned number 32, which is 20 in hexadecimal. When you see “%20,” it represents a space in an encoded URL, for example, http://www.example.com/products%20and%20services.html.

Are URI case sensitive?

When convenient, lowercase letters are preferred in URI paths since capital letters can sometimes cause problems. RFC 3986 defines URIs as case-sensitive except for the scheme and host components. This URI is fine.

What type of encoding is URL encoding?

Percent-encoding is a mechanism to encode 8-bit characters that have specific meaning in the context of URLs. It is sometimes called URL encoding. The encoding consists of substitution: A '%' followed by the hexadecimal representation of the ASCII value of the replace character.


1 Answers

No, URL percent-encoding is NOT case sensitive. According to RFC 3986:

2.1. Percent-Encoding

[...]

The uppercase hexadecimal digits 'A' through 'F' are equivalent to the lowercase digits 'a' through 'f', respectively. If two URIs differ only in the case of hexadecimal digits used in percent-encoded octets, they are equivalent.

like image 164
Zero Piraeus Avatar answered Oct 11 '22 10:10

Zero Piraeus