Is there a Portable Class Library (PCL) version Of HttpUtility.ParseQueryString contained in System.Web or some code I could use? I want to read a very complex URL.
My Flurl library is a PCL that parses query strings into IDictionary
when you instantiate a Url
object from a string:
using Flurl;
var url = new Url("http://...");
// get values from url.QueryParams dictionary
The relevant parsing logic is here. Flurl is small, but feel free to swipe just those bits if you want.