adamdunkels | ca9ddcb | 2003-03-19 14:13:31 +0000 | [diff] [blame] | 1 | http_http "http://" |
| 2 | http_200 "200 " |
| 3 | http_301 "301 " |
| 4 | http_302 "302 " |
| 5 | http_get "GET " |
| 6 | http_10 "HTTP/1.0" |
| 7 | http_11 "HTTP/1.1" |
adamdunkels | e6a3f18 | 2003-08-22 19:22:58 +0000 | [diff] [blame] | 8 | http_content_type "content-type: " |
adamdunkels | ca9ddcb | 2003-03-19 14:13:31 +0000 | [diff] [blame] | 9 | http_texthtml "text/html" |
adamdunkels | e6a3f18 | 2003-08-22 19:22:58 +0000 | [diff] [blame] | 10 | http_location "location: " |
| 11 | http_host "host: " |
adamdunkels | ca9ddcb | 2003-03-19 14:13:31 +0000 | [diff] [blame] | 12 | http_crnl "\r\n" |
adamdunkels | be960b7 | 2004-02-16 20:46:27 +0000 | [diff] [blame] | 13 | http_index_html "/index.html" |
| 14 | http_404_html "/404.html" |
adamdunkels | f29d888 | 2005-02-27 09:33:50 +0000 | [diff] [blame] | 15 | http_referer "Referer:" |
oliverschmidt | 2204083 | 2005-05-16 21:59:16 +0000 | [diff] [blame] | 16 | http_header_200 "HTTP/1.0 200 OK\r\nServer: Contiki/1.2 http://www.sics.se/~adam/contiki/\r\nConnection: close\r\n" |
| 17 | http_header_404 "HTTP/1.0 404 Not found\r\nServer: Contiki/1.2 http://www.sics.se/~adam/contiki/\r\nConnection: close\r\n" |
adamdunkels | f29d888 | 2005-02-27 09:33:50 +0000 | [diff] [blame] | 18 | http_content_type_plain "Content-type: text/plain\r\n\r\n" |
adamdunkels | be960b7 | 2004-02-16 20:46:27 +0000 | [diff] [blame] | 19 | http_content_type_html "Content-type: text/html\r\n\r\n" |
| 20 | http_content_type_css "Content-type: text/css\r\n\r\n" |
| 21 | http_content_type_text "Content-type: text/text\r\n\r\n" |
| 22 | http_content_type_png "Content-type: image/png\r\n\r\n" |
| 23 | http_content_type_gif "Content-type: image/gif\r\n\r\n" |
| 24 | http_content_type_jpg "Content-type: image/jpeg\r\n\r\n" |
| 25 | http_content_type_binary "Content-type: application/octet-stream\r\n\r\n" |
| 26 | http_html ".html" |
adamdunkels | f29d888 | 2005-02-27 09:33:50 +0000 | [diff] [blame] | 27 | http_shtml ".shtml" |
adamdunkels | be960b7 | 2004-02-16 20:46:27 +0000 | [diff] [blame] | 28 | http_htm ".htm" |
| 29 | http_css ".css" |
| 30 | http_png ".png" |
| 31 | http_gif ".gif" |
| 32 | http_jpg ".jpg" |
adamdunkels | f29d888 | 2005-02-27 09:33:50 +0000 | [diff] [blame] | 33 | http_text ".txt" |
adamdunkels | be960b7 | 2004-02-16 20:46:27 +0000 | [diff] [blame] | 34 | http_txt ".txt" |
| 35 | |