Windows Live产品从多到滥? 自己编写爬虫和Web服务器,将网站镜像到本地
Feb 01

发现一个System.Uri类的一个bug:

比如一个Web页面地址是:http://www.changethis.com/archives,

页面中有个链接是:<a href=”?by=email_count&order=descending&page=3&topic=”>Next Page</a>,

那么Internet Explorer和Firefox解释出来的正确地址是:
http://www.changethis.com/archives?by=email_count&order=descending&page=3&topic=

但使用Uri(Uri baseUri, string relativeUriString)解释出来的是:
http://www.changethis.com/?by=email_count&order=descending&page=3&topic=

推测bug的起因:实现人员和测试人员,没有使用JSP/PHP等语言的URL地址去测试这个Uri类。

随机日志

Leave a Reply