72 |
/** |
/** |
73 |
* Show all services in the service list |
* Show all services in the service list |
74 |
*/ |
*/ |
75 |
void status() { |
void status(char *level) { |
76 |
|
|
77 |
#define LINE 1024 |
#define LINE 1024 |
78 |
|
|
89 |
char *auth= Util_getBasicAuthHeader(); |
char *auth= Util_getBasicAuthHeader(); |
90 |
|
|
91 |
socket_print(sock, |
socket_print(sock, |
92 |
"GET /_status?format=text HTTP/1.0\r\n%s\r\n", |
"GET /_status?format=text&level=%s HTTP/1.0\r\n%s\r\n", |
93 |
auth?auth:""); |
level, auth?auth:""); |
94 |
FREE(auth); |
FREE(auth); |
95 |
/* Read past HTTP headers and check status */ |
/* Read past HTTP headers and check status */ |
96 |
while(socket_readln(sock, buf, LINE)) { |
while(socket_readln(sock, buf, LINE)) { |