摘要:
//POST数据 public static string PostData(string url, string data) { WebClient wc = new WebClient(); wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); byte[] postData = Encoding.Default.GetBytes(data); byte[] responseData = wc.UploadData(url, "POST", pos 阅读全文
posted @ 2012-10-06 09:44
八星瓢虫
阅读(215)
评论(0)
推荐(0)
摘要:
public static string noHtml(string str) { if (str != null) { str = Regex.Replace(str, @"<script[^>]*>[\s\S]*?</script>", "", RegexOptions.IgnoreCase);//删除脚本 str = Regex.Replace(str, @"(<style)+[^<>]*>[^\0]*(<\/style>)+", "", Re 阅读全文
posted @ 2012-10-06 09:09
八星瓢虫
阅读(646)
评论(0)
推荐(0)

浙公网安备 33010602011771号