Friday July 19, 2013

Apparently, URL Encoding/Decoding Is The Third Hardest Problem In Computer Science

Stéphane Épardaud teaches us a thing or two about URL encoding:

Each path segment can have optional path parameters (also called matrix parameters) which are located at the end of the path segment after a “;”, and separated by “;” characters. Each parameter name is separated from its value by the “=” character like this: “/file;p=1” which defines that the path segment “file” has a path parameter “p” with the value “1”. These parameters are not often used — let’s face it — but they exist nonetheless, and we’ve even found a very good justification for their use on a Yahoo RESTful API documentation.

I had no idea how complex URLs could get.