Is there a .NET encoding method I could use to encode a URL to be passed within a URL parameter?
For example say I have:
url_of_interest = "http://asdf.asdf/asdf.htm"
and I want to include this as one (1) URL form parameter when I do an upload to a web-application:
http://mywebservice/upload?url=<<encoded URL here>>
System.Web.HttpUtility.UrlEncode
HttpServerUtility.UrlEncode should do the trick:
http://msdn.microsoft.com/en-us/library/zttxte6w.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With