Reputation: 97
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
Upvotes: 0
Views: 388
Reputation: 13146
You can use WebUtility.UrlEncode
to encode url.
https://msdn.microsoft.com/tr-tr/library/system.net.webutility.urlencode(v=vs.110).aspx
Upvotes: 1