请大家到下面的地址帮忙~!http://topic.csdn.net/u/20091110/16/6822e706-6c7d-4d2f-b0d6-14884fab25b9.html?35996108分+20分,就算是一点小敬意。
问题解决了,请你喝啤酒吃个小饭都OK。

解决方案 »

  1.   

    用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);
      

  2.   

    偶打开了,就是一个倒计时,然后跳到CSDN首页而已嘛。
      

  3.   

    好像URL改了:http://topic.csdn.net/u/20091110/16/ce27fd77-6d23-48f5-b536-02f13213adf2.html