Contiki 2.5
http-strings.c
1 #if 0 /*This file not used when strings reside in flash memory only*/
2 const char http_http[8] =
3 /* "http://" */
4 {0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, };
5 const char http_200[5] =
6 /* "200 " */
7 {0x32, 0x30, 0x30, 0x20, };
8 const char http_301[5] =
9 /* "301 " */
10 {0x33, 0x30, 0x31, 0x20, };
11 const char http_302[5] =
12 /* "302 " */
13 {0x33, 0x30, 0x32, 0x20, };
14 const char http_get[5] =
15 /* "GET " */
16 {0x47, 0x45, 0x54, 0x20, };
17 const char http_10[9] =
18 /* "HTTP/1.0" */
19 {0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, };
20 const char http_11[9] =
21 /* "HTTP/1.1" */
22 {0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, };
23 const char http_content_type[15] =
24 /* "content-type: " */
25 {0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, };
26 const char http_texthtml[10] =
27 /* "text/html" */
28 {0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, };
29 const char http_location[11] =
30 /* "location: " */
31 {0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, };
32 const char http_host[7] =
33 /* "host: " */
34 {0x68, 0x6f, 0x73, 0x74, 0x3a, 0x20, };
35 const char http_crnl[3] =
36 /* "\r\n" */
37 {0xd, 0xa, };
38 const char http_index_html[12] =
39 /* "/index.html" */
40 {0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, };
41 const char http_404_html[10] =
42 /* "/404.html" */
43 {0x2f, 0x34, 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, };
44 const char http_referer[9] =
45 /* "Referer:" */
46 {0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x3a, };
47 const char http_header_200[86] =
48 /* "HTTP/1.0 200 OK\r\nServer: Contiki/2.0 http://www.sics.se/contiki/\r\nConnection: close\r\n" */
49 {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, };
50 const char http_header_404[93] =
51 /* "HTTP/1.0 404 Not found\r\nServer: Contiki/2.0 http://www.sics.se/contiki/\r\nConnection: close\r\n" */
52 {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, };
53 const char http_content_type_plain[29] =
54 /* "Content-type: text/plain\r\n\r\n" */
55 {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, };
56 const char http_content_type_html[28] =
57 /* "Content-type: text/html\r\n\r\n" */
58 {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, };
59 const char http_content_type_css [27] =
60 /* "Content-type: text/css\r\n\r\n" */
61 {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, };
62 const char http_content_type_text[28] =
63 /* "Content-type: text/text\r\n\r\n" */
64 {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, };
65 const char http_content_type_png [28] =
66 /* "Content-type: image/png\r\n\r\n" */
67 {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, };
68 const char http_content_type_gif [28] =
69 /* "Content-type: image/gif\r\n\r\n" */
70 {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, };
71 const char http_content_type_jpg [29] =
72 /* "Content-type: image/jpeg\r\n\r\n" */
73 {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, };
74 const char http_content_type_binary[43] =
75 /* "Content-type: application/octet-stream\r\n\r\n" */
76 {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, };
77 const char http_html[6] =
78 /* ".html" */
79 {0x2e, 0x68, 0x74, 0x6d, 0x6c, };
80 const char http_shtml[7] =
81 /* ".shtml" */
82 {0x2e, 0x73, 0x68, 0x74, 0x6d, 0x6c, };
83 const char http_htm[5] =
84 /* ".htm" */
85 {0x2e, 0x68, 0x74, 0x6d, };
86 const char http_css[5] =
87 /* ".css" */
88 {0x2e, 0x63, 0x73, 0x73, };
89 const char http_png[5] =
90 /* ".png" */
91 {0x2e, 0x70, 0x6e, 0x67, };
92 const char http_gif[5] =
93 /* ".gif" */
94 {0x2e, 0x67, 0x69, 0x66, };
95 const char http_jpg[5] =
96 /* ".jpg" */
97 {0x2e, 0x6a, 0x70, 0x67, };
98 const char http_text[6] =
99 /* ".text" */
100 {0x2e, 0x74, 0x65, 0x78, 0x74, };
101 const char http_txt[5] =
102 /* ".txt" */
103 {0x2e, 0x74, 0x78, 0x74, };
104 #endif