I am currently writing code to validate URIs. While I was working on it, I realized that using percent-encoding would, theoretically speaking, enable people to insert binary data into the URI: i.e. %00.
W3C's document on this matter is ambiguous: it does not mention binary data specifically but does comment on non-ASCII characters, but in the context of actual character encodings.
This leads me to believe that binary data is not meant to be transferred via HTTP GET. This also implies that the URI should be well-formed UTF-8 after decoding everything. How interesting. Of course, it could be that none of this really matters.
What do you think?
Send binary data via GET
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
Found this: http://www.w3.org/International/O-URL-code.html -- might help ya
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US