88 |
p->request?p->request:"/", |
p->request?p->request:"/", |
89 |
get_host_header(p, host), prog, VERSION); |
get_host_header(p, host), prog, VERSION); |
90 |
|
|
91 |
if (sock_send(p->socket, request, strlen(request), 0) < 0) { |
if (port_send(p, request, strlen(request), 0) < 0) { |
92 |
log("HTTP: error sending data -- %s\n", STRERROR); |
log("HTTP: error sending data -- %s\n", STRERROR); |
93 |
return FALSE; |
return FALSE; |
94 |
} |
} |
95 |
|
|
96 |
if (sock_recv(p->socket, buf, sizeof(buf), 0) <= 0) { |
if (port_recv(p, buf, sizeof(buf), 0) <= 0) { |
97 |
log("HTTP: error receiving data -- %s\n", STRERROR); |
log("HTTP: error receiving data -- %s\n", STRERROR); |
98 |
return FALSE; |
return FALSE; |
99 |
} |
} |