Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 :)

  • Administrators
Posted

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...

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...