Delphi reprint: idhttp submit post with Url parameters and bring cookie idhttp arguments submitted by post and bring cookie

idhttp arguments submitted by post and bring cookie

https://www.cnblogs.com/gtsup/p/6999932.html

 

There is such a connection submission

http://www.XXXXXX.com/test.php?p1=411328&p2=1&d1=HeroSkinList

There are three parameters [p1] [p2] [d1] 

postcmd: = TStringList.Create; // composition parameter list 
postcmd.Add ( 'P1 = 4,011,058,724'); 
postcmd.Add ( 'P2 = 30');
postcmd.Add ( 'D1 = HeroSkinList');

Combination of the above parameters can then be post submitted using idhttp

Memo1.Text: = idhtp1.Post (url1, postcmd); // send to the server in a post manner

memo1.text which directly return data return submitted after the post, but this time only the connection parameters brought them to commit, and did not bring cookie

Guess you like

Origin www.cnblogs.com/studycode/p/11516886.html