How to receive data from php server by delphi clie

2019-09-20 05:24发布

Please I need to know how to send parameters from Delphi application to php page then php will make some calculations on these parameters and return result again to Delphi?

标签: php delphi http
1条回答
相关推荐>>
2楼-- · 2019-09-20 05:55

One of straight-forward ways in REST pattern (http://en.wikipedia.org/wiki/REST) would be:

1) Your Delphi client gets the page, passing all the parameters as HTTP GET or HTTP POST.

using any library you wish. Some choices (not complete list) include:

et cetera

2) your PHP server gets those parameters and generates JSON page with the results

3) your Delphi client getting the page via HTTP, then parses JSON and works with the resulting variables

Some libraries to parse JSON are

4) do with the received data what you want to do

查看更多
登录 后发表回答