I know that NULL is used to terminate a string, but why is it an invalid character in a URL? The Wikipedia page for NULL character states that a NULL character can be placed in a URL code using %00. So doesn’t this mean it is legal?
If the NULL character is present in a URL either in the middle or at the end, won’t it just be acting as a terminating character? Why should it be invalid?
My questions maybe better understood with the following examples:
Example 1: https://a4%00 would mean that the string is essentially “a4”
Example 2: https://a45xxc%00fbbg –> over here, is the string only read till “c”?
Leave an answer