120分!!我的idHttp为什么不能提交数据到表单? 大哥大姐看看吧 请大家到下面的地址帮忙~!http://topic.csdn.net/u/20091110/16/6822e706-6c7d-4d2f-b0d6-14884fab25b9.html?35996108分+20分,就算是一点小敬意。问题解决了,请你喝啤酒吃个小饭都OK。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用idhttp post可以实现添加表单,简单的例子: IdHTTP1.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; QQPinyinSetup 620; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)';IdHTTP1.Request.Referer:='http://localhost:8081/111/Web/Login.aspx';postList.Add('__EVENTTARGET=');postList.Add('__VIEWSTATE=/wEPDwUJNDYxMTc1ODUyZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAgUOY2J4UmVtZWJlclVzZXIFC2ltZ0J0bkxvZ2luySZIMpd4rCFDw+OlcAi1Q4ylX9E=');//自己抓取你要访问的网页 ,下面的地参数也一样的postList.Add('__EVENTVALIDATION=/wEWBQKWi4ajBALT8dy8BQKBzIa4CwKd+7qdDgKYv/tZrjdeRXl0SzOrB/vQntbqsitrylM='); postList.Add('txtUserID=admin'); postList.Add('cbxRemeberUser=on'); postList.Add('txtPwd=admin'); postList.Add('imgBtnLogin.x=36'); postList.Add('imgBtnLogin.y=9'); //postList.Add('imgBtnLogin=登 录'); // IdHTTP1.HandleRedirects := true; IdHTTP1.Post('http://localhost:8081/111/Web/login.aspx',postList,Response); 偶打开了,就是一个倒计时,然后跳到CSDN首页而已嘛。 好像URL改了:http://topic.csdn.net/u/20091110/16/ce27fd77-6d23-48f5-b536-02f13213adf2.html 何如控制TChart控件X轴 求助!用TDCOMConnection组件来连结远程数据模块 show和create(self)是如何一个关系??? 大家帮忙看一下这个问题吧… 如何使用QReport和RAVE做报表? zyxg(子夜) 来领分 如何禁止word中的右键弹出菜单及用户随意输入? delphi得注册问题? 帮帮忙啊``本人对DEPHI知之甚少``哪位好心人帮帮我啦``具体如下 定时器的时间不准? FindKey()的查询参数能否用变量代替? [200分]高分求教,控制网页游戏里flash的问题,点击按钮等操作
IdHTTP1.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; QQPinyinSetup 620; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)';
IdHTTP1.Request.Referer:='http://localhost:8081/111/Web/Login.aspx';
postList.Add('__EVENTTARGET=');
postList.Add('__VIEWSTATE=/wEPDwUJNDYxMTc1ODUyZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAgUOY2J4UmVtZWJlclVzZXIFC2ltZ0J0bkxvZ2luySZIMpd4rCFDw+OlcAi1Q4ylX9E=');//自己抓取你要访问的网页 ,下面的地参数也一样的
postList.Add('__EVENTVALIDATION=/wEWBQKWi4ajBALT8dy8BQKBzIa4CwKd+7qdDgKYv/tZrjdeRXl0SzOrB/vQntbqsitrylM=');
postList.Add('txtUserID=admin');
postList.Add('cbxRemeberUser=on');
postList.Add('txtPwd=admin');
postList.Add('imgBtnLogin.x=36');
postList.Add('imgBtnLogin.y=9');
//postList.Add('imgBtnLogin=登 录');
// IdHTTP1.HandleRedirects := true;
IdHTTP1.Post('http://localhost:8081/111/Web/login.aspx',postList,Response);