摘要: HttpWebRequest 默认请求URL,返回的文本是乱码!需要设置请求参数: httpWebRequest.ContentType = contentType; httpWebRequest.Referer = url; httpWebRequest.Accept = accept; httpWebRequest.UserAgent = userAgent; httpWebRequest.Method = "GET";For Example:http://tw.search.yahoo.com/search?p=NBA&fr=yfp&ei=utf-8& 阅读全文
posted @ 2010-08-06 15:40 Asp.Net Dev 阅读(450) 评论(0) 推荐(0) 编辑