怎样向https文件提交数据 我想用delphi做一个小程序,来模拟一个含有表单的提交页面,而这个页面提交的数据交给的是一个https的文件,我想用nmhttp,却成功不了,怎么办? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看Indy的Demo,还有就是不要用NM控件,有BUG,现在大家都用Indy了 http://aiirii.mblogger.cn/posts/3782.aspx 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的页面,怎么不对呢?能帮忙解决吗?有没有群号发一个? DbGridEh单元格多选后如何获取选中了哪些行,并且取得关键字的值 高分求cxgrid多选删除解答 请问怎么把adoquery查询到的数据赋值给listbox控件? 要做一个定时转换数据的接口,请教怎样控制时间使其做到自动定时转换 如何增加有效位(有人答对时就追加分) ActiveXForm怎样才能在前端显示出来???(急) 又一个关于数据库连接的问题 求教一个算法,急等帮助 Delphi的quickreport为何不能在NT上运行? xe7开发android,如何取屏幕颜色 如何选中ListView中的一项 阿......... 如何多线程拷贝一个目录
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的页面,怎么不对呢?能帮忙解决吗?有没有群号发一个?