ramCC Posted June 7, 2004 Posted June 7, 2004 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 :) Quote
Administrators PlausiblyDamp Posted June 8, 2004 Administrators Posted June 8, 2004 Could you give a full example of a typical URL you would be using? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
ramCC Posted June 8, 2004 Author Posted June 8, 2004 sure ! http://server11/index.asp?FunctionName=miko^hagever&from_date=06/01/04 Thanks. Quote
Administrators PlausiblyDamp Posted June 8, 2004 Administrators Posted June 8, 2004 You could try the following 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... Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
ramCC Posted June 8, 2004 Author Posted June 8, 2004 Thanks alot ! I will try that as soon as i can ! Quote
ramCC Posted June 9, 2004 Author Posted June 9, 2004 PlausiblyDamp, appreciate your help ! It worked just fine for me ! Thanks, Ram. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.