blob: ea743bb60aa0c0b316d2defc05c81656bf3ecdd8 [file] [log] [blame]
adamdunkels2c488822003-09-04 19:32:13 +00001const char http_http[8] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +00002/* "http://" */
3{0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, };
adamdunkels2c488822003-09-04 19:32:13 +00004const char http_200[5] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +00005/* "200 " */
6{0x32, 0x30, 0x30, 0x20, };
adamdunkels2c488822003-09-04 19:32:13 +00007const char http_301[5] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +00008/* "301 " */
9{0x33, 0x30, 0x31, 0x20, };
adamdunkels2c488822003-09-04 19:32:13 +000010const char http_302[5] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000011/* "302 " */
12{0x33, 0x30, 0x32, 0x20, };
adamdunkels2c488822003-09-04 19:32:13 +000013const char http_get[5] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000014/* "GET " */
15{0x47, 0x45, 0x54, 0x20, };
adamdunkels2c488822003-09-04 19:32:13 +000016const char http_10[9] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000017/* "HTTP/1.0" */
18{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, };
adamdunkels2c488822003-09-04 19:32:13 +000019const char http_11[9] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000020/* "HTTP/1.1" */
21{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, };
adamdunkels2c488822003-09-04 19:32:13 +000022const char http_content_type[15] =
adamdunkelse6a3f182003-08-22 19:22:58 +000023/* "content-type: " */
24{0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, };
adamdunkels2c488822003-09-04 19:32:13 +000025const char http_texthtml[10] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000026/* "text/html" */
27{0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, };
adamdunkels2c488822003-09-04 19:32:13 +000028const char http_location[11] =
adamdunkelse6a3f182003-08-22 19:22:58 +000029/* "location: " */
30{0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, };
adamdunkels2c488822003-09-04 19:32:13 +000031const char http_host[7] =
adamdunkelse6a3f182003-08-22 19:22:58 +000032/* "host: " */
33{0x68, 0x6f, 0x73, 0x74, 0x3a, 0x20, };
adamdunkels2c488822003-09-04 19:32:13 +000034const char http_crnl[3] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000035/* "\r\n" */
36{0xd, 0xa, };
adamdunkelsbe960b72004-02-16 20:46:27 +000037const char http_index_html[12] =
38/* "/index.html" */
39{0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, };
40const char http_404_html[10] =
41/* "/404.html" */
42{0x2f, 0x34, 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, };
adamdunkelsf29d8882005-02-27 09:33:50 +000043const char http_referer[9] =
44/* "Referer:" */
45{0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x3a, };
oliverschmidt22040832005-05-16 21:59:16 +000046const char http_header_200[92] =
47/* "HTTP/1.0 200 OK\r\nServer: Contiki/1.2 http://www.sics.se/~adam/contiki/\r\nConnection: close\r\n" */
48{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, 0x31, 0x2e, 0x32, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x73, 0x69, 0x63, 0x73, 0x2e, 0x73, 0x65, 0x2f, 0x7e, 0x61, 0x64, 0x61, 0x6d, 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, };
49const char http_header_404[99] =
50/* "HTTP/1.0 404 Not found\r\nServer: Contiki/1.2 http://www.sics.se/~adam/contiki/\r\nConnection: close\r\n" */
51{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, 0x31, 0x2e, 0x32, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x73, 0x69, 0x63, 0x73, 0x2e, 0x73, 0x65, 0x2f, 0x7e, 0x61, 0x64, 0x61, 0x6d, 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, };
adamdunkelsf29d8882005-02-27 09:33:50 +000052const char http_content_type_plain[29] =
53/* "Content-type: text/plain\r\n\r\n" */
54{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, };
adamdunkelsbe960b72004-02-16 20:46:27 +000055const char http_content_type_html[28] =
56/* "Content-type: text/html\r\n\r\n" */
57{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, };
58const char http_content_type_css [27] =
59/* "Content-type: text/css\r\n\r\n" */
60{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, };
61const char http_content_type_text[28] =
62/* "Content-type: text/text\r\n\r\n" */
63{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, };
64const char http_content_type_png [28] =
65/* "Content-type: image/png\r\n\r\n" */
66{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, };
67const char http_content_type_gif [28] =
68/* "Content-type: image/gif\r\n\r\n" */
69{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, };
70const char http_content_type_jpg [29] =
71/* "Content-type: image/jpeg\r\n\r\n" */
72{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, };
73const char http_content_type_binary[43] =
74/* "Content-type: application/octet-stream\r\n\r\n" */
75{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, };
76const char http_html[6] =
77/* ".html" */
78{0x2e, 0x68, 0x74, 0x6d, 0x6c, };
adamdunkelsf29d8882005-02-27 09:33:50 +000079const char http_shtml[7] =
80/* ".shtml" */
81{0x2e, 0x73, 0x68, 0x74, 0x6d, 0x6c, };
adamdunkelsbe960b72004-02-16 20:46:27 +000082const char http_htm[5] =
83/* ".htm" */
84{0x2e, 0x68, 0x74, 0x6d, };
85const char http_css[5] =
86/* ".css" */
87{0x2e, 0x63, 0x73, 0x73, };
88const char http_png[5] =
89/* ".png" */
90{0x2e, 0x70, 0x6e, 0x67, };
91const char http_gif[5] =
92/* ".gif" */
93{0x2e, 0x67, 0x69, 0x66, };
94const char http_jpg[5] =
95/* ".jpg" */
96{0x2e, 0x6a, 0x70, 0x67, };
adamdunkelsf29d8882005-02-27 09:33:50 +000097const char http_text[5] =
98/* ".txt" */
99{0x2e, 0x74, 0x78, 0x74, };
adamdunkelsbe960b72004-02-16 20:46:27 +0000100const char http_txt[5] =
101/* ".txt" */
102{0x2e, 0x74, 0x78, 0x74, };