Go to the source code of this file.
Defines | |
#define | REQ_LENGTH 1024 |
Functions | |
int | check_http (Port_T p) |
We send the following request to the server: 'GET / HTTP/1.1' ... if request statement isn't defined 'GET /custom/page HTTP/1.1' ... if request statement is defined and check the server's status code.
If the host statement defines hostname, it is used in 'Host:' header.
If the status code is >= 400, an error has occurred. Return TRUE if the status code is OK, otherwise FALSE.
Definition in file http.c.
|
|
|
Definition at line 70 of file http.c. References ASSERT, chomp(), log(), port_recv(), port_send(), prog, myport::request, STRERROR, and VERSION. |