开发者

C# HttpWebRequest problem [duplicate]

开发者 https://www.devze.com 2023-03-18 19:27 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: HttpWebRequest to URL with dot at the end
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

精彩评论

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