[Mono-devel-list] Byte array in uri
Alejandro Sánchez
alejasanch at yahoo.es
Fri Dec 5 19:49:10 EST 2003
SHA1 sha = new SHA1CryptoServiceProvider();
byte[] id =
sha.ComputeHash(Encoding.Unicode.GetBytes(DateTime.Now.ToString() ));
string uri =
string.Format("http://domain.tld/page?id={0}",
HttpUtility.UrlEncode ( id ) );
with Console.Write ( uri ); i get the correct uri
id=%E9%97%FB%3Ao%D2T%D6%2AZ%27N%A0P%F0%C3%21%EE%2Ag
but
WebRequest myRequest = WebRequest.Create( uri );
WebResponse myResponse = myRequest.GetResponse();
send
id=%25E9%2597%25FB%253Ao%25D2T%25D6%252AZ%2527N%25A0P%25F0%25C3%2521%25EE%252Ag
More information about the Mono-devel-list
mailing list