I want to use System.Web.HttpUtility.UrlEncode(text) for one of the argument the I send in a HttpWebRequest. but I can't add the System.Web dll to my references.
any way to do UrlEncode in CLR?
thanks
I want to use System.Web.HttpUtility.UrlEncode(text) for one of the argument the I send in a HttpWebRequest. but I can't add the System.Web dll to my references.
any way to do UrlEncode in CLR?
thanks
You can use WebUtility.UrlEncode
to encode url.
https://msdn.microsoft.com/tr-tr/library/system.net.webutility.urlencode(v=vs.110).aspx