/[monit]/monit/status.c
ViewVC logotype

Diff of /monit/status.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.54 by martinp, Tue Sep 28 14:24:01 2004 UTC revision 1.55 by hauk, Sun Dec 12 23:45:09 2004 UTC
# Line 86  void status() { Line 86  void status() {
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",
# Line 96  void status() { Line 96  void status() {
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) {

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26