86 |
} else { |
} else { |
87 |
char buf[LINE]; |
char buf[LINE]; |
88 |
int status= FALSE; |
int status= FALSE; |
89 |
char *auth= get_basic_authentication_header(); |
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 HTTP/1.0\r\n%s\r\n", |
96 |
while(socket_readln(sock, buf, LINE)) { |
while(socket_readln(sock, buf, LINE)) { |
97 |
if(IS(buf, "\n") || IS(buf, "\r\n")) |
if(IS(buf, "\n") || IS(buf, "\r\n")) |
98 |
break; |
break; |
99 |
if(starts_with(buf, "HTTP/1.0 200")) |
if(Util_startsWith(buf, "HTTP/1.0 200")) |
100 |
status= TRUE; |
status= TRUE; |
101 |
} |
} |
102 |
if(!status) { |
if(!status) { |