Android的 - 从发送数据ACRA到PHP脚本脚本、数据、Android、PHP

2023-09-06 17:08:34 作者:似水流年,择一人终老

我一直在使用ACRA一些我的应用程序和发送数据到谷歌文档小号$ P $垫张,但我想切换到将数据发送到我已经在那里我觉得在服务器上运行一个mysql安装该数据会更加安全。我可以看到如何使用POST方法发送的数据,但我不能告诉该数据的命名惯例,所以我可以用PHP脚本抓住他们。

I've been using acra in some of my apps and sending the data to Google Docs spread sheets, but I would like to switch to sending data to a mysql setup I have running on a server where I feel the data would be more secure. I can see how to send the data using the post method but I can't tell the naming conventions of the data so I can catch them with a php script.

有谁知道什么是变量名称,或在那里我可以看看他们,所以我知道如何查找在我的PHP是什么?

Does anybody know what the variable names are or where I can look at them so I know what to look for in my php?

推荐答案

如果在 ACRA 应用程序使用POST方法,使用PHP的 $彦博 predefined变量,的var_dump 来读取后传递的参数。

If the acra app is using POST methods, use PHP's $_POST predefined variable and var_dump to read the parameters passed in the post.

另一个有用的是 $ _GET ...只是在案例

Another useful is $_GET... just in case

编辑:经过进一步检查, ACRA 来源表明的 ReportField.java 枚举值是通过地图转换为字符串和POST PARAMS使用。我建议调查这些领域也是如此。

Upon further inspection, acra source suggests that the ReportField.java enum values are converted to strings via a Map and used with POST params. I suggest investigating those fields as well.