How to use Uri.AbsoluteUri
instead?
var s = uri.AbsoluteUri;
// http://www.example.com/?foo=http%3A%2F%2Fwww.example.com
uri.ToString()
, , , , .AbsoluteUri
.
Uri.ToString()
MSDN System.Uri.ToString()
:
String, Uri. , #,? %.
, , , :
, *
spaces
%3A (:) // gets unescaped
%20 ( ) // gets unescaped
%2A (*) // gets unescaped
%2b, %26, %23, %24, %25 (+, &,