我在delphi7下使用TIdHTTP控件使用post方法给一网页发一信息,但无法成功,会是什么问题?大家帮我看看是哪里不对.谢谢
大家可以使用http://luar.com.hk/blog/?p=727验证一下
sPostUrl := 'http://luar.com.hk/blog/wp-comments-post.php';
AStrList := TStringList.Create;
AStrList.Add('author=aaasdfgdfgfd');
AStrList.Add('url=http://www.dfjd.com');
AStrList.Add('[email protected]');
AStrList.Add('comment_post_ID=727');
AStrList.Add('comment='+sUser);
sBody:= IdHTTP.Post(sPostUrl,AStrList);
IdHTTP.Destroy;
AStrList.Destroy;
FShowInfo:= '提交成功!';
Synchronize(ShowInfo);
FUrl := sUrl;
FFinish := false;
Synchronize(UpdataAddr);
大家可以使用http://luar.com.hk/blog/?p=727验证一下
sPostUrl := 'http://luar.com.hk/blog/wp-comments-post.php';
AStrList := TStringList.Create;
AStrList.Add('author=aaasdfgdfgfd');
AStrList.Add('url=http://www.dfjd.com');
AStrList.Add('[email protected]');
AStrList.Add('comment_post_ID=727');
AStrList.Add('comment='+sUser);
sBody:= IdHTTP.Post(sPostUrl,AStrList);
IdHTTP.Destroy;
AStrList.Destroy;
FShowInfo:= '提交成功!';
Synchronize(ShowInfo);
FUrl := sUrl;
FFinish := false;
Synchronize(UpdataAddr);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货