摘要:
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& 阅读全文