mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 03:05:14 +00:00
37 lines
2.3 KiB
C
37 lines
2.3 KiB
C
const char http_200[5] =
|
|
/* "200 " */
|
|
{0x32, 0x30, 0x30, 0x20, };
|
|
const char http_get[5] =
|
|
/* "GET " */
|
|
{0x47, 0x45, 0x54, 0x20, };
|
|
const char http_index_html[12] =
|
|
/* "/index.html" */
|
|
{0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, };
|
|
const char http_404_html[10] =
|
|
/* "/404.html" */
|
|
{0x2f, 0x34, 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, };
|
|
const char http_referer[9] =
|
|
/* "Referer:" */
|
|
{0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x3a, };
|
|
const char http_header_200[55] =
|
|
/* "HTTP/1.0 200 OK\nServer: Contiki/2.0\nConnection: close\n" */
|
|
{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0x32, 0x2e, 0x30, 0xa, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0xa, };
|
|
const char http_header_404[62] =
|
|
/* "HTTP/1.0 404 Not found\nServer: Contiki/2.0\nConnection: close\n" */
|
|
{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x34, 0x30, 0x34, 0x20, 0x4e, 0x6f, 0x74, 0x20, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0x32, 0x2e, 0x30, 0xa, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0xa, };
|
|
const char http_content_type_plain[27] =
|
|
/* "Content-type: text/plain\n\n" */
|
|
{0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0xa, 0xa, };
|
|
const char http_content_type_html[26] =
|
|
/* "Content-type: text/html\n\n" */
|
|
{0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0xa, 0xa, };
|
|
const char http_content_type_binary[41] =
|
|
/* "Content-type: application/octet-stream\n\n" */
|
|
{0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x63, 0x74, 0x65, 0x74, 0x2d, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0xa, 0xa, };
|
|
const char http_html[6] =
|
|
/* ".html" */
|
|
{0x2e, 0x68, 0x74, 0x6d, 0x6c, };
|
|
const char http_shtml[7] =
|
|
/* ".shtml" */
|
|
{0x2e, 0x73, 0x68, 0x74, 0x6d, 0x6c, };
|