idhttp post mail163的问题

tnianshao 2009-11-12 09:05:25
idhttp post mail163的问题

procedure TForm1.Button1Click(Sender: TObject);
var
Response: TStringStream;
postList: TStrings;
begin
Edit1.Text := 'http://mail.163.com/';
Response := TStringStream.Create('');
postList := TStringList.Create;
try
postList.Add('username=我的用户名');
postList.Add('userpwd=我的密码');
IdHTTP1.Post(Edit1.Text, postList, Response);
finally
Memo1.Lines.Text := Response.DataString;
Response.Free;
postList.Free;
end;
end;



post以后 再memo中返回了 源码 如何判断依据登陆成功了呢 我返回的源代码 页没登陆时候的源码一样啊 ??

求助
...全文
49 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
tnianshao 2009-11-12
  • 打赏
  • 举报
回复
就是个 比如


postList.Add('username=我的用户名');
postList.Add('userpwd=我的密码');
提交的参数 除了 用户名和密码以外
是不是应该还有个 提交的 参数??

比如说 点击一类的

https://login.plaync.co.kr/login/login

上面这个网址 是我要 post的 地址
求高手 帮写下代码
wintergoes 2009-11-12
  • 打赏
  • 举报
回复
163你是登录不了的吧
他们有限制

1,593

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧