0

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

idan
  • 97
  • 8

1 Answers1

1

You can use WebUtility.UrlEncode to encode url.

https://msdn.microsoft.com/tr-tr/library/system.net.webutility.urlencode(v=vs.110).aspx

lucky
  • 12,734
  • 4
  • 24
  • 46