69,373
社区成员
发帖
与我相关
我的任务
分享
snprintf(request, sizeof(request) - 1,
"POST %s%sgw_id=%s&sys_uptime=%lu&sys_memfree=%u&sys_load=%.2f&wifidog_uptime=%lu&ap_mac=%s HTTP/1.0\r\n"
"User-Agent: WiFiDog %s\r\n"
"Host: %s\r\n"
"Content-Type: application/x-www-form-urlencoded\r\n"
"Content-Length: 200\r\n"
"\r\n"
"mac=%s&token=%s",
auth_server->authserv_path,
auth_server->authserv_ping_script_path_fragment,
config_get_config()->gw_id,
sys_uptime,
sys_memfree,
sys_load,
(long unsigned int)((long unsigned int)time(NULL) - (long unsigned int)started_time),
brlan_mac,
VERSION,
auth_server->authserv_hostname,
first->mac,
first->token);
send(sockfd, request, strlen(request), 0);