Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Equivalent to HttpUtility.UrlEncode

$
0
0
Hello,
What is the equivalent to HttpUtility.UrlEncode?

For example if I do try to encode this string: "Bearer http%3a%2f%2fschemas.xmlsoap.org%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=test&http%3a%2f%2fscP8c%3d"

HttpUtility.UrlEncode => Bearer+http%253a%252f%252fschemas.xmlsoap.org%252fws%252f2005%252f05%252fidentity%252fclaims%252fnameidentifier%3dtest%26http%253a%252f%252fscP8c%253d

web::uri::encode_data_string => Bearer%20http%253a%252f%252fschemas.xmlsoap.org%252fws%252f2005%252f05%252fidentity%252fclaims%252fnameidentifier%3Dtest%26http%253a%252f%252fscP8c%253d

web::uri::encode_uri => Bearer%20http%253a%252f%252fschemas.xmlsoap.org%252fws%252f2005%252f05%252fidentity%252fclaims%252fnameidentifier=test&http%253a%252f%252fscP8c%253d

Note the + and %20

Thanks,
Pedro

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>