WebRequest changes special symbols

ramCC

Newcomer
Joined
Jun 7, 2004
Messages
9
Hi all !
I found out that the call to:
WebRequest::Create(URL) ,
change the special symbols in URL (such as ^ and $) to their hexa equivalent (like %5E etc.) .

Do you know of a way to stop that (sometimes) unwanted behaviour ?

I'm connecting to a purely written web server that does not decode the %5E form back to ^ .... so i have to find a way to send it as is !

b.t.w when i paste the url on IE it works fine . (maybe it does not encode the URL ? )

thanks for all helpers ! and also for those who wanna help but dont know how :)
 
You could try the following
C#:
Uri uri = new Uri("http://server11/index.asp?FunctionName=miko^hagever&from_date=06/01/04",true);
System.Net.WebRequest wr = System.Net.WebRequest.Create(uri);
although it should only escape invalid characters though...
 
Back
Top