I am reading from history, and I want that when i come across a google query, I can extract the query string. I am not using request or httputility since i am simply parsing
here is the solution -
string GetQueryString(string url, string key) { string query_string = string.Empty; var uri = new Uri(url); var newQueryString = HttpUtility.ParseQueryString(uri.Query); query_string = newQueryString[key].ToString(); return query_string; }