140 |
int rv; |
int rv; |
141 |
char *auth; |
char *auth; |
142 |
|
|
143 |
auth = get_basic_authentication_header(); |
auth = Util_getBasicAuthHeader(); |
144 |
rv = socket_print(C->socket, |
rv = socket_print(C->socket, |
145 |
"POST %s HTTP/1.1\r\n" |
"POST %s HTTP/1.1\r\n" |
146 |
"Host: %s:%d\r\n" |
"Host: %s:%d\r\n" |
187 |
log("Collector: error receiving data from %s -- %s\n", C->url->url, STRERROR); |
log("Collector: error receiving data from %s -- %s\n", C->url->url, STRERROR); |
188 |
return FALSE; |
return FALSE; |
189 |
} |
} |
190 |
chomp(buf, STRLEN); |
Util_chomp(buf, STRLEN); |
191 |
n = sscanf(buf, "%s %d %s", proto, &status, msg); |
n = sscanf(buf, "%s %d %s", proto, &status, msg); |
192 |
if(n != 3 || (status >= 400)) |
if(n != 3 || (status >= 400)) |
193 |
{ |
{ |