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

New Post: Query string value with %20

$
0
0
Hi

This is a bug in our http_listener. Looks like the uri in http_request has been encoded twice by our implementation.
We will fix this for our next release. Meanwhile, one workaround that you can try is to decode the URI (twice to get the original unencoded URI string):
        auto uri_str = request.relative_uri().to_string(); // Get the relative_uri: Due to a bug, this has been encoded twice.
        auto str1 = uri::decode(uri_str); // Get the original encoded relative uri 
        auto str2 = uri::decode(str1); // Get the original unencoded relative uri 
Hope this helps! Thank you for reporting this issue.

Thanks
Kavya

Viewing all articles
Browse latest Browse all 4845

Trending Articles



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