c# - .NET Uri class query missing the semicolon reserved character, simple workarounds? -


this http://msdn.microsoft.com/en-us/library/system.uri.query.aspx , ietf. org/rfc/rfc1738 .txt (pardon formatting, can't post more 1 url) suggest .net uri class not recognize semicolon acceptable character represent query in url.

this requires 1 line or workaround, code clean. if there solution allows me not string parsing myself outside .net set of uri classes, i'd prefer that. there existing .net code handles semicolons recognizing them part of query in url?

rfc 3986 agrees rfc 1738 (which updates) in defining query portion following question mark (?), , in stating semicolon can used separate parameter-value pairs "applicable segment".

in prospero uri (the case given in rfc 1738 semicolon shown used) semicolons indicate parameter , parameter value in path of uri - not query.

http uris have semicolons used in queries, after ?, e.g. http://example.net/search?q=something;page=2. unfortunately actual usage has never quite replaced & character function , poorly supported server-side code (including asp.net) limits ability of client-side code adopt (pretty no browser does).

still, in such cases .net uri object correctly identifies portion following ? query, including semicolons if present. behaviour correct.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -