/[monit]/monit/protocols/http.c
ViewVC logotype

Diff of /monit/protocols/http.c

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

revision 1.19 by hauk, Tue Jul 29 23:41:13 2003 UTC revision 1.20 by hauk, Wed Jul 30 06:37:36 2003 UTC
# Line 81  int check_http(Socket_T s) { Line 81  int check_http(Socket_T s) {
81    char *request= NULL;    char *request= NULL;
82        
83    ASSERT(s);    ASSERT(s);
84      
85    if(socket_get_Port(s)) {    if(socket_get_Port(s)) {
86      request= ((Port_T)(socket_get_Port(s)))->request;      request= ((Port_T)(socket_get_Port(s)))->request;
     request= request?request:"/";  
87    }    }
88        
89      request= request?request:"/";
90      
91    if(socket_print(s, "GET %s HTTP/1.1\r\n"    if(socket_print(s, "GET %s HTTP/1.1\r\n"
92                    "Host: %s\r\n"                    "Host: %s\r\n"
93                    "Accept: */*\r\n"                    "Accept: */*\r\n"

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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