source: uKadecot/trunk/uip/apps/webserver/http-strings.c@ 155

Last change on this file since 155 was 155, checked in by coas-nagasima, 8 years ago

URLがフォルダを指している場合、/index.htmlにリダイレクトするよう変更。

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr; charset=SHIFT_JIS
File size: 8.4 KB
Line 
1const char http_http[8] =
2/* "http://" */
3{0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, };
4const char http_200[5] =
5/* "200 " */
6{0x32, 0x30, 0x30, 0x20, };
7const char http_301[5] =
8/* "301 " */
9{0x33, 0x30, 0x31, 0x20, };
10const char http_302[5] =
11/* "302 " */
12{0x33, 0x30, 0x32, 0x20, };
13const char http_get[5] =
14/* "GET " */
15{0x47, 0x45, 0x54, 0x20, };
16const char http_10[9] =
17/* "HTTP/1.0" */
18{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, };
19const char http_11[9] =
20/* "HTTP/1.1" */
21{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, };
22const char http_content_type[15] =
23/* "content-type: " */
24{0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, };
25const char http_texthtml[10] =
26/* "text/html" */
27{0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, };
28const char http_location[11] =
29/* "Location: " */
30{0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, };
31const char http_host[7] =
32/* "host: " */
33{0x68, 0x6f, 0x73, 0x74, 0x3a, 0x20, };
34const char http_crnl[3] =
35/* "\r\n" */
36{0xd, 0xa, };
37const 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, };
43const char http_websocket[10] =
44/* "WebSocket" */
45{0x57, 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, };
46const char http_referer[10] =
47/* "Referer: " */
48{0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x3a, 0x20, };
49const char http_upgrade[10] =
50/* "Upgrade: " */
51{0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x3a, 0x20, };
52const char http_connection[13] =
53/* "Connection: " */
54{0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, };
55const char http_sec_websocket_accept[23] =
56/* "Sec-WebSocket-Accept: " */
57{0x53, 0x65, 0x63, 0x2d, 0x57, 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2d, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x3a, 0x20, };
58const char http_sec_websocket_protocol[25] =
59/* "Sec-WebSocket-Protocol: " */
60{0x53, 0x65, 0x63, 0x2d, 0x57, 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x3a, 0x20, };
61const char http_header_101[35] =
62/* "HTTP/1.1 101 Switching Protocols\r\n" */
63{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, 0x20, 0x31, 0x30, 0x31, 0x20, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0xd, 0xa, };
64const char http_header_200[77] =
65/* "HTTP/1.1 200 OK\r\nServer: uIP/1.0 http://www.toppers.jp/\r\nConnection: close\r\n" */
66{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, 0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, 0xd, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x6a, 0x70, 0x2f, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0xd, 0xa, };
67const char http_header_301[92] =
68/* "HTTP/1.1 301 Moved Permanently\r\nServer: uIP/1.0 http://www.toppers.jp/\r\nConnection: close\r\n" */
69{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, 0x20, 0x33, 0x30, 0x31, 0x20, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x20, 0x50, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0xd, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x6a, 0x70, 0x2f, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0xd, 0xa, };
70const char http_header_404[84] =
71/* "HTTP/1.1 404 Not found\r\nServer: uIP/1.0 http://www.toppers.jp/\r\nConnection: close\r\n" */
72{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, 0x20, 0x34, 0x30, 0x34, 0x20, 0x4e, 0x6f, 0x74, 0x20, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0xd, 0xa, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x6a, 0x70, 0x2f, 0xd, 0xa, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0xd, 0xa, };
73const char http_content_encoding_gzip[25] =
74/* "Content-Encoding: gzip\r\n" */
75{0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x3a, 0x20, 0x67, 0x7a, 0x69, 0x70, 0xd, 0xa, };
76const char http_websocket_guid[37] =
77/* "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" */
78{0x32, 0x35, 0x38, 0x45, 0x41, 0x46, 0x41, 0x35, 0x2d, 0x45, 0x39, 0x31, 0x34, 0x2d, 0x34, 0x37, 0x44, 0x41, 0x2d, 0x39, 0x35, 0x43, 0x41, 0x2d, 0x43, 0x35, 0x41, 0x42, 0x30, 0x44, 0x43, 0x38, 0x35, 0x42, 0x31, 0x31, };
79const char http_content_type_plain[29] =
80/* "Content-type: text/plain\r\n\r\n" */
81{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, };
82const char http_content_type_html[28] =
83/* "Content-type: text/html\r\n\r\n" */
84{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, };
85const char http_content_type_css[27] =
86/* "Content-type: text/css\r\n\r\n" */
87{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, };
88const char http_content_type_js[34] =
89/* "Content-type: text/javascript\r\n\r\n" */
90{0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x6a, 0x61, 0x76, 0x61, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0xd, 0xa, 0xd, 0xa, };
91const char http_content_type_json[35] =
92/* "Content-type: application/json\r\n\r\n" */
93{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, 0x6a, 0x73, 0x6f, 0x6e, 0xd, 0xa, 0xd, 0xa, };
94const char http_content_type_text[28] =
95/* "Content-type: text/text\r\n\r\n" */
96{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, };
97const char http_content_type_png[28] =
98/* "Content-type: image/png\r\n\r\n" */
99{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, };
100const char http_content_type_gif[28] =
101/* "Content-type: image/gif\r\n\r\n" */
102{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, };
103const char http_content_type_jpg[29] =
104/* "Content-type: image/jpeg\r\n\r\n" */
105{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, };
106const char http_content_type_svg[32] =
107/* "Content-type: image/svg+xml\r\n\r\n" */
108{0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2f, 0x73, 0x76, 0x67, 0x2b, 0x78, 0x6d, 0x6c, 0xd, 0xa, 0xd, 0xa, };
109const char http_content_type_binary[43] =
110/* "Content-type: application/octet-stream\r\n\r\n" */
111{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, };
112const char http_html[6] =
113/* ".html" */
114{0x2e, 0x68, 0x74, 0x6d, 0x6c, };
115const char http_shtml[7] =
116/* ".shtml" */
117{0x2e, 0x73, 0x68, 0x74, 0x6d, 0x6c, };
118const char http_htm[5] =
119/* ".htm" */
120{0x2e, 0x68, 0x74, 0x6d, };
121const char http_css[5] =
122/* ".css" */
123{0x2e, 0x63, 0x73, 0x73, };
124const char http_js [4] =
125/* ".js" */
126{0x2e, 0x6a, 0x73, };
127const char http_json[6] =
128/* ".json" */
129{0x2e, 0x6a, 0x73, 0x6f, 0x6e, };
130const char http_png[5] =
131/* ".png" */
132{0x2e, 0x70, 0x6e, 0x67, };
133const char http_gif[5] =
134/* ".gif" */
135{0x2e, 0x67, 0x69, 0x66, };
136const char http_jpg[5] =
137/* ".jpg" */
138{0x2e, 0x6a, 0x70, 0x67, };
139const char http_svg[5] =
140/* ".svg" */
141{0x2e, 0x73, 0x76, 0x67, };
142const char http_text[5] =
143/* ".txt" */
144{0x2e, 0x74, 0x78, 0x74, };
145const char http_txt[5] =
146/* ".txt" */
147{0x2e, 0x74, 0x78, 0x74, };
Note: See TracBrowser for help on using the repository browser.