Contiki 2.6
|
00001 #if 0 /*This file not used when strings reside in flash memory only*/ 00002 const char http_http[8] = 00003 /* "http://" */ 00004 {0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, }; 00005 const char http_200[5] = 00006 /* "200 " */ 00007 {0x32, 0x30, 0x30, 0x20, }; 00008 const char http_301[5] = 00009 /* "301 " */ 00010 {0x33, 0x30, 0x31, 0x20, }; 00011 const char http_302[5] = 00012 /* "302 " */ 00013 {0x33, 0x30, 0x32, 0x20, }; 00014 const char http_get[5] = 00015 /* "GET " */ 00016 {0x47, 0x45, 0x54, 0x20, }; 00017 const char http_10[9] = 00018 /* "HTTP/1.0" */ 00019 {0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, }; 00020 const char http_11[9] = 00021 /* "HTTP/1.1" */ 00022 {0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, }; 00023 const char http_content_type[15] = 00024 /* "content-type: " */ 00025 {0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, }; 00026 const char http_texthtml[10] = 00027 /* "text/html" */ 00028 {0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, }; 00029 const char http_location[11] = 00030 /* "location: " */ 00031 {0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, }; 00032 const char http_host[7] = 00033 /* "host: " */ 00034 {0x68, 0x6f, 0x73, 0x74, 0x3a, 0x20, }; 00035 const char http_crnl[3] = 00036 /* "\r\n" */ 00037 {0xd, 0xa, }; 00038 const char http_index_html[12] = 00039 /* "/index.html" */ 00040 {0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, }; 00041 const char http_404_html[10] = 00042 /* "/404.html" */ 00043 {0x2f, 0x34, 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, }; 00044 const char http_referer[9] = 00045 /* "Referer:" */ 00046 {0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x3a, }; 00047 const char http_header_200[86] = 00048 /* "HTTP/1.0 200 OK\r\nServer: Contiki/2.0 http://www.sics.se/contiki/\r\nConnection: close\r\n" */ 00049 {0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0x32, 0x2e, 0x30, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x73, 0x69, 0x63, 0x73, 0x2e, 0x73, 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0xd, 0xa, }; 00050 const char http_header_404[93] = 00051 /* "HTTP/1.0 404 Not found\r\nServer: Contiki/2.0 http://www.sics.se/contiki/\r\nConnection: close\r\n" */ 00052 {0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x34, 0x30, 0x34, 0x20, 0x4e, 0x6f, 0x74, 0x20, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0xd, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0x32, 0x2e, 0x30, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x73, 0x69, 0x63, 0x73, 0x2e, 0x73, 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0xd, 0xa, }; 00053 const char http_content_type_plain[29] = 00054 /* "Content-type: text/plain\r\n\r\n" */ 00055 {0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0xd, 0xa, 0xd, 0xa, }; 00056 const char http_content_type_html[28] = 00057 /* "Content-type: text/html\r\n\r\n" */ 00058 {0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0xd, 0xa, 0xd, 0xa, }; 00059 const char http_content_type_css [27] = 00060 /* "Content-type: text/css\r\n\r\n" */ 00061 {0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x63, 0x73, 0x73, 0xd, 0xa, 0xd, 0xa, }; 00062 const char http_content_type_text[28] = 00063 /* "Content-type: text/text\r\n\r\n" */ 00064 {0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x74, 0x65, 0x78, 0x74, 0xd, 0xa, 0xd, 0xa, }; 00065 const char http_content_type_png [28] = 00066 /* "Content-type: image/png\r\n\r\n" */ 00067 {0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x6e, 0x67, 0xd, 0xa, 0xd, 0xa, }; 00068 const char http_content_type_gif [28] = 00069 /* "Content-type: image/gif\r\n\r\n" */ 00070 {0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2f, 0x67, 0x69, 0x66, 0xd, 0xa, 0xd, 0xa, }; 00071 const char http_content_type_jpg [29] = 00072 /* "Content-type: image/jpeg\r\n\r\n" */ 00073 {0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2f, 0x6a, 0x70, 0x65, 0x67, 0xd, 0xa, 0xd, 0xa, }; 00074 const char http_content_type_binary[43] = 00075 /* "Content-type: application/octet-stream\r\n\r\n" */ 00076 {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, 0xd, 0xa, 0xd, 0xa, }; 00077 const char http_html[6] = 00078 /* ".html" */ 00079 {0x2e, 0x68, 0x74, 0x6d, 0x6c, }; 00080 const char http_shtml[7] = 00081 /* ".shtml" */ 00082 {0x2e, 0x73, 0x68, 0x74, 0x6d, 0x6c, }; 00083 const char http_htm[5] = 00084 /* ".htm" */ 00085 {0x2e, 0x68, 0x74, 0x6d, }; 00086 const char http_css[5] = 00087 /* ".css" */ 00088 {0x2e, 0x63, 0x73, 0x73, }; 00089 const char http_png[5] = 00090 /* ".png" */ 00091 {0x2e, 0x70, 0x6e, 0x67, }; 00092 const char http_gif[5] = 00093 /* ".gif" */ 00094 {0x2e, 0x67, 0x69, 0x66, }; 00095 const char http_jpg[5] = 00096 /* ".jpg" */ 00097 {0x2e, 0x6a, 0x70, 0x67, }; 00098 const char http_text[6] = 00099 /* ".text" */ 00100 {0x2e, 0x74, 0x65, 0x78, 0x74, }; 00101 const char http_txt[5] = 00102 /* ".txt" */ 00103 {0x2e, 0x74, 0x78, 0x74, }; 00104 #endif