C# HttpWebRequest problem [duplicate]
Possible Duplicate:
HttpWebRequest to URL with dot at the end
I am facing a weird problem. When I am trying to get a page using HttpWebRequest page is not coming properly. The url has a dot into it like http://www.xyz.com/abc./do . You can 开发者_C百科see this url has a dot into it. So when I am trying fetching that data using HttpWebRequest data is not coming properly. So I tracked it with fiddler and I saw this class omitting the dot like http://www.xyz.com/abc/do . How can I solve this problem ?
NB. This is not a real url. But the problem is real.
may be encoding url solve the problem
HttpUtility.UrlEncodeUnicode(url)
精彩评论