hw_http.c
Go to the documentation of this file.
00001 00038 #include "hw_http.h" 00039 00040 const char http_file_not_found[] = "\ 00041 <!DOCTYPE html PUBLIC \"-//IETF//DTD HTML 2.0//EN\"> \ 00042 <html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> \ 00043 <title>404 Not Found</title></head><body><img src=\"bertos_logo_jpg\"><h1>404 Not Found</h1>\ 00044 <p>The requested URL was not found on this server.</p><hr>\ 00045 <address>BeRTOS simple HTTP server</address></body></html>"; 00046 00047 const size_t http_file_not_found_len = sizeof(http_file_not_found); 00048 00049 const char http_sd_not_present[] = " \ 00050 <!DOCTYPE html PUBLIC \"-//IETF//DTD HTML 2.0//EN\"> \ 00051 <html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> \ 00052 <title>BeRTOS simple HTTP Server</title></head><body><img src=\"bertos_logo_jpg\"> \ 00053 <h1>BeRTOS simple HTTP Server</h1><p>Simple Http server, the site's pages are stored on SD card, check it if is present.</p><hr>\ 00054 <a href=\"http://www.bertos.org\">www.BeRTOS.org</a></body></html> \ 00055 "; 00056 const size_t http_sd_not_present_len = sizeof(http_sd_not_present); 00057 00058 const char http_server_error[] = " \ 00059 <!DOCTYPE html PUBLIC \"-//IETF//DTD HTML 2.0//EN\"> \ 00060 <html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> \ 00061 <title>500 Internal Server error</title></head><body><img src=\"bertos_logo_jpg\"><h1>500 Internal Server error</h1>\ 00062 <p>The internal server error was occur while processing the requested page.</p><hr>\ 00063 <address>BeRTOS simple HTTP server</address></body></html>"; 00064 00065 const size_t http_server_error_len = sizeof(http_server_error);
![(please configure the [header_logo] section in trac.ini)](/chrome/site/bertos_logo.png)