Contiki 2.6
|
00001 const char http_200[5] = 00002 /* "200 " */ 00003 {0x32, 0x30, 0x30, 0x20, }; 00004 const char http_get[5] = 00005 /* "GET " */ 00006 {0x47, 0x45, 0x54, 0x20, }; 00007 const char http_index_html[12] = 00008 /* "/index.html" */ 00009 {0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, }; 00010 const char http_404_html[10] = 00011 /* "/404.html" */ 00012 {0x2f, 0x34, 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, }; 00013 const char http_referer[9] = 00014 /* "Referer:" */ 00015 {0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x3a, }; 00016 const char http_header_200[55] = 00017 /* "HTTP/1.0 200 OK\nServer: Contiki/2.0\nConnection: close\n" */ 00018 {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, }; 00019 const char http_header_404[62] = 00020 /* "HTTP/1.0 404 Not found\nServer: Contiki/2.0\nConnection: close\n" */ 00021 {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, }; 00022 const char http_content_type_plain[27] = 00023 /* "Content-type: text/plain\n\n" */ 00024 {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, }; 00025 const char http_content_type_html[26] = 00026 /* "Content-type: text/html\n\n" */ 00027 {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, }; 00028 const char http_content_type_binary[41] = 00029 /* "Content-type: application/octet-stream\n\n" */ 00030 {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, }; 00031 const char http_html[6] = 00032 /* ".html" */ 00033 {0x2e, 0x68, 0x74, 0x6d, 0x6c, }; 00034 const char http_shtml[7] = 00035 /* ".shtml" */ 00036 {0x2e, 0x73, 0x68, 0x74, 0x6d, 0x6c, };