开发者

C# HttpWebRequest problem [duplicate]

This question already has answers here: Closed 11 years ago.

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜