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 续:如何双击文件获得文件名和路径? 还是不太明白,delphi的类的属性加与不加property有何不同? 大哥哥,大姐姐,Winform程序里输入的10进制数字转化成16进制后再变成中文如何显示到LED上面去? dbgrideh问题 关于查询的问题 求教!!如何修改某文件的生成、修改、访问等时间参数?? dbgrid光标处插入字符 我的clientupdate不能更新数据 试算的问题? 请教高手!在线等待! 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);