I'm trying to get the values of a string
that contains a url with a QueryString
.
This is an example of the URL:
string url = "http://example.com?id=gdjh48vnnnvwsid1dkif84ndn?id2=cjodfnuvbvmf47747";
How do you see it is a string
and not a QueryString
since it is not the address of the page where I am but a url that I get with HTTPRequest
.
I would like to know if there is any way to parse and get the values of the url (in this case id1
and id2
) without using Split
, Replace
, etc ... since this is not guarantee that it works 100% of the time (in the value of id1
, for example, id1
appears).