c# - How to validate an encoded url -



c# - How to validate an encoded url -

i have encoded url invalid, validate before decoding using httputility.urldecode() how can validate encoded url below:

http%3a%2f%2fwww.one-two.com&buyer=21

you can validate url this:

uri sd; bool b_validurl = uri.trycreate(uri.unescapedatastring("http%3a%2f%2fwww.one-two.com&buyer=21"), urikind.relativeorabsolute, out sd);

if b_validurl=true url valid, otherwise invalid.

c# url

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -