读取kangle 3311版本信息的api接口
http://ip:3311/core.whm?whm_call=info输出如下
<info whm_version="1.0">
<result status="200">
<server>kangle</server>
<version>3.5.12.14</version>
<type>ultimate</type>
<os>linux</os>
<license_id>30754_1381564279</license_id>
<license_name>king</license_name>
<total_run>259679</total_run>
<connect>1</connect>
<request>1924</request>
<accept>1932</accept>
<cache_count>47</cache_count>
<cache_mem>262149</cache_mem>
<cache_disk>0</cache_disk>
<vh>4</vh>
<kangle_home>/vhs/kangle/</kangle_home>
<update_code>centos6-x64</update_code>
<open_file_limit>1048576</open_file_limit>
<disk_cache_shutdown>0</disk_cache_shutdown>
</result>
</info>
Authorization验证方式采用base64
admin:kangle
输出:YWRtaW46a2FuZ2xl
api请求命令例子
curl -H "Authorization: Basic YWRtaW46a2FuZ2xl" http://127.0.0.1:3311/core.whm?whm_call=info
页:
[1]