bs9999
April 4th, 2009, 11:53 PM
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
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