我想用delphi做一个小程序,来模拟一个含有表单的提交页面,而这个页面提交的数据交给的是一个https的文件,我想用nmhttp,却成功不了,怎么办?

解决方案 »

  1.   

    看Indy的Demo,还有就是不要用NM控件,有BUG,现在大家都用Indy了
      

  2.   

    http://aiirii.mblogger.cn/posts/3782.aspx
      

  3.   

    var  Response: TStringStream;
      postList: TStrings;
    begin
     Response := TStringStream.Create('');
      postList := TStringList.Create;
    try
        postList.Add('stu_no=ey036062');
        postList.Add('passwd=ey036062');
        postList.Add('operation=1');
        postList.Add('leixin1=student');
        postList.Add('ipaddr=219.231.187.157');
        postList.Add('submit1=连接网络');
        IdHTTP1.Post('http://210.44.112.76/user/logonuser2.jsp', postList, Response);
      finally
        Memo1.Lines.Text := Response.DataString;
        Response.Free;
        postList.Free;
      end;
    这样弄的结果是返回JSp的error的页面,怎么不对呢?能帮忙解决吗?有没有群号发一个?