摘要: 方法如下:step1:use HttpWebRequest class to request,and use HttpWebResponse get the response.if you read the response, you can get the information including what did in the Page_load function.step2: if you... 阅读全文
posted @ 2009-08-11 10:09 与时俱进 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 利用WebClient, HttpWebRequest向某址POST数据,这个都很方便,都有的网站需要保持SESSION才能进行下一步想要的操作。保持SESSION,关键在于如何保持住Cookie不变。代码如下: CookieContainer cookie; private void button1_Click(object sender, System.EventArgs e) { HttpW... 阅读全文
posted @ 2009-08-11 10:04 与时俱进 阅读(5128) 评论(0) 推荐(0) 编辑
摘要: 这里涉及到3个页面:MyLogin.aspx,LoginOK.htm,Default.aspx: 1)MyLogin.aspx 页面 MyLogin.aspx 页面是登录页面,如果用户名和密码正确会生成 Session 和 Cookie(LoginSession、LoginCookie),然后转向 LoginOK.htm 页面。 2)LoginOK.htm 页面 LoginOK.htm 页面... 阅读全文
posted @ 2009-08-11 10:01 与时俱进 阅读(2219) 评论(0) 推荐(0) 编辑
友情链接:同里老宅院民居客栈