# cliprobe_curl **Repository Path**: evenvi/cliprobe_curl ## Basic Information - **Project Name**: cliprobe_curl - **Description**: 采集服务端Demo - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2016-04-11 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #cliprobe 收集演示 `建议在Linux环境下部署` ### 部署 1. 将压缩包解压到可访问的web目录,保证`data`文件夹有可写权限. 2. 配置`config.php`文件. ### 文件说明 . ├── config.php[配置文件] ├── data[数据目录] │   └── index.html ├── data.php[查看数据] ├── index.php[上报数据] ├── README.md └── test.php[测试] ### 配置文件 * 常规配置 1. define('MULTI_FILE', false); //true=>每分钟写一个文件, false=>只写一个文件 2. define('DISPLAY_HEADER',true); //调试头部信息 3. define('DEBUG', true); //是否开启调试信息 4. define('BLACKLIST', 'c8-ee-a6-14-4f-f4,c8-ee-a6-14-4f-f3'); //定义在该列表内的mac地址不纳入采集 * 测试配置 1. define('HOST_ADDR', 'http://192.168.10.27:8080'); //所部署主机的地址 ### 调试信息查看: * 调试信息 如果开启调试信息会在`data`文件夹下写接收到的原始数据文件:`test_content.txt`, 请求时间戳写到: `test_content_time.txt` 通过命令:`tail -n 200 -f test_content.txt `, 动态查看数据信息 通过命令:`tail -n 200 -f test_content_time.txt `, 动态查看请求时间戳信息 * 头部信息 如果开始http头部信息,会记录每次请求头到 `test_header.txt` 通过命令:`tail -n 200 -f test_header.txt `, 动态查看数据信息 `查看头部信息,目前暂时只支持apache环境` ### 接口说明 index.php是数据收集的入口文件,通过action指定, * client数据推到`http://host/cliprobe_curl/index.php?action=reportclient` * ap数据post到`http://host/cliprobe_curl/index.php?action=reportap` * IBeacon数据post到`http://host/cliprobe_curl/index.php?action=reportibeacon` ### 开发说明 本演示程序基于PHP开发的,其他语言也可以,不受语言限制。 所有的数据都是以经典的HTTP POST方式发送,熟悉web开发(JSP、ASP等)的没有任何问题。 如果有定制化的开发需求,可自己实现来解HTTP数据包。 ### 查看数据 配置文件中填写`HOST_ADD`值,直接浏览器访问`http://[你的HOST_ADD]/cliprobe_curl/data.php`即可。