You need to implement a fairly simple algorithm. A GET request is made, after it the php script displays the text, so I need to programmatically get this text from the Delphi and stuff it into a variable, how to do it? Suppose the script output "successfully" (Via echo suppose) I have to get this text from the answer and stuff it into a variable.
2 answers
In the delphi with such things, everything is fine
for example, you can use TIdHTTP
eg
Memo1.Lines.Text:=IdHTTP1.Get(Edit1.Text);
where URL like http://myserver.ru/?page=3 is written in Edit1.Text
|
Only, it is important to set the HandleRedirect value to True.
- To get simple, get-a is optional. - Vahan Av
|