Android的 - 从发送数据ACRA到PHP脚本 [英] Android - sending data from acra to a php script

查看:303
本文介绍了Android的 - 从发送数据ACRA到PHP脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用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 <一href=\"http://$c$c.google.com/p/acra/source/browse/trunk/acra/src/main/java/org/acra/sender/HttpPostSender.java\"相对=nofollow>来源表明的<一个href=\"http://$c$c.google.com/p/acra/source/browse/trunk/acra/src/main/java/org/acra/ReportField.java\"相对=nofollow> 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.

这篇关于Android的 - 从发送数据ACRA到PHP脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆