(Original author: cnzrs)
Solved a problem, HTTP POST problem, but it is very strange, the following code is successfully run in Delphi7, but Delphi6 at home is not. Procedure TForm1.Button1Click (Sender: TOBJECT); VaraStrs: TstringList; Beginastrs: = TStringList.create; ASTRS.ADD ('D0 = all'); // Form Magname = Variable value ASTRS.ADD ('D1 = jia') ;
ASTRS.ADD ('D2 = all'); as.add ('D3 = all'); as.add ('D4 = all'); IDHTTP1.HOST: = 'http: // localhost /'; // idHTTP1 .Allowcookies: = false; memo1.text: = idHttp1.post ('http: // localhost: 17171 / result.php', ASTRS) end;
End.
(Original author: cnzrs)