|
-
April 4th, 2009, 11:53 PM
#1
BUG Found in HTTPWebRequest! -- %2F in Url is always changed back to "/"
I am trying to connect ot a website page that actually uses %2F ("/") as part of its webpage html (not a relative path)...
its url is:
http://thewebsite.com/thepage%2fishere.htm
thepage%2fishere.htm is the actual website html page HOWEVER when C# sees the %2F escape code (regardless if you tell webrequest to ignore converting any escape code) it goes ahead and coverts the %2f back to a "/" before making the request. n This makes the page unreachable. Does anyone know how to tell HttpWebRequest to stop coverting the already escaped code?
I've tried WebRequest.Create(new Uri(strUrl,true)); and it still doesnt work
-
April 5th, 2009, 10:21 PM
#2
Re: BUG Found in HTTPWebRequest! -- %2F in Url is always changed back to "/"
That is what happens when web designers use a bad file name. You should never use a file name like that on the Internet.
Probably, you will have to use a RegEx or something to strip out the characters and replace them with the slash.
I would recommend using a valid file name in the first place. Technically it IS valid, but its a poor design to use something like that. Webpages need to have better names, and they should have a more userfriendly name. With all the different software, browers, operating systems, etc... in the world there is no telling how they will interprit that file name.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|