http post questions (original author: cnzrs)

xiaoxiao2021-03-06  154

(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)

转载请注明原文地址:https://www.9cbs.com/read-128435.html

New Post(0)