问题
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.
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?
回答1:
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.
Another useful is $_GET... just in case
EDIT: 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.
来源:https://stackoverflow.com/questions/9424346/android-sending-data-from-acra-to-a-php-script