http://CC318.com

一个程序的窝

我的窝窝 http://CC318.com 这里有更多内容,不信你试试.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

HttpWebRequest get方式

Posted on 2009-02-13 11:19  chaoliu  阅读(465)  评论(0)    收藏  举报
 string url = "http://www.217788.com/send.aspx?from=" + TextBox1.Text.Trim() + "&to=" + TextBox2.Text + "&body=" + TextBox4.Text;
        HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
        HttpWebResponse res = (HttpWebResponse)req.GetResponse();
        StreamReader sr = new StreamReader(res.GetResponseStream());
        string sHtml = sr.ReadToEnd();
http://CC318.com