Hands-On Network Programming with C# and .NET Core
上QQ阅读APP看书,第一时间看更新

Query specification

Finally, the last component that has a well-defined specification for how it can be composed is the query component. It can be broken down as follows:

?[parameter=value][(;|&)parameter=value]...

The sequence of additional delimiters and key-value pairs can extend all the way to the maximum allowable length of a valid URL.

By following these syntax specifications, you can decompose any URL you are presented with into its component parts, and meaningfully leverage it to access the resource it identifies.