These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!
EMAC/uIP/apps/webclient/webclient-strings.c@0:bf7b9fba3924, 2011-03-20 (annotated)
- Committer:
- frank26080115
- Date:
- Sun Mar 20 05:38:56 2011 +0000
- Revision:
- 0:bf7b9fba3924
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
frank26080115 | 0:bf7b9fba3924 | 1 | const char http_http[8] = |
frank26080115 | 0:bf7b9fba3924 | 2 | /* "http://" */ |
frank26080115 | 0:bf7b9fba3924 | 3 | {0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 4 | const char http_200[5] = |
frank26080115 | 0:bf7b9fba3924 | 5 | /* "200 " */ |
frank26080115 | 0:bf7b9fba3924 | 6 | {0x32, 0x30, 0x30, 0x20, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 7 | const char http_301[5] = |
frank26080115 | 0:bf7b9fba3924 | 8 | /* "301 " */ |
frank26080115 | 0:bf7b9fba3924 | 9 | {0x33, 0x30, 0x31, 0x20, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 10 | const char http_302[5] = |
frank26080115 | 0:bf7b9fba3924 | 11 | /* "302 " */ |
frank26080115 | 0:bf7b9fba3924 | 12 | {0x33, 0x30, 0x32, 0x20, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 13 | const char http_get[5] = |
frank26080115 | 0:bf7b9fba3924 | 14 | /* "GET " */ |
frank26080115 | 0:bf7b9fba3924 | 15 | {0x47, 0x45, 0x54, 0x20, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 16 | const char http_10[9] = |
frank26080115 | 0:bf7b9fba3924 | 17 | /* "HTTP/1.0" */ |
frank26080115 | 0:bf7b9fba3924 | 18 | {0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 19 | const char http_11[9] = |
frank26080115 | 0:bf7b9fba3924 | 20 | /* "HTTP/1.1" */ |
frank26080115 | 0:bf7b9fba3924 | 21 | {0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 22 | const char http_content_type[15] = |
frank26080115 | 0:bf7b9fba3924 | 23 | /* "content-type: " */ |
frank26080115 | 0:bf7b9fba3924 | 24 | {0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 25 | const char http_texthtml[10] = |
frank26080115 | 0:bf7b9fba3924 | 26 | /* "text/html" */ |
frank26080115 | 0:bf7b9fba3924 | 27 | {0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 28 | const char http_location[11] = |
frank26080115 | 0:bf7b9fba3924 | 29 | /* "location: " */ |
frank26080115 | 0:bf7b9fba3924 | 30 | {0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 31 | const char http_host[7] = |
frank26080115 | 0:bf7b9fba3924 | 32 | /* "host: " */ |
frank26080115 | 0:bf7b9fba3924 | 33 | {0x68, 0x6f, 0x73, 0x74, 0x3a, 0x20, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 34 | const char http_crnl[3] = |
frank26080115 | 0:bf7b9fba3924 | 35 | /* "\r\n" */ |
frank26080115 | 0:bf7b9fba3924 | 36 | {0xd, 0xa, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 37 | const char http_index_html[12] = |
frank26080115 | 0:bf7b9fba3924 | 38 | /* "/index.html" */ |
frank26080115 | 0:bf7b9fba3924 | 39 | {0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 40 | const char http_404_html[10] = |
frank26080115 | 0:bf7b9fba3924 | 41 | /* "/404.html" */ |
frank26080115 | 0:bf7b9fba3924 | 42 | {0x2f, 0x34, 0x30, 0x34, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 43 | const char http_content_type_html[28] = |
frank26080115 | 0:bf7b9fba3924 | 44 | /* "Content-type: text/html\r\n\r\n" */ |
frank26080115 | 0:bf7b9fba3924 | 45 | {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, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 46 | const char http_content_type_css [27] = |
frank26080115 | 0:bf7b9fba3924 | 47 | /* "Content-type: text/css\r\n\r\n" */ |
frank26080115 | 0:bf7b9fba3924 | 48 | {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, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 49 | const char http_content_type_text[28] = |
frank26080115 | 0:bf7b9fba3924 | 50 | /* "Content-type: text/text\r\n\r\n" */ |
frank26080115 | 0:bf7b9fba3924 | 51 | {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, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 52 | const char http_content_type_png [28] = |
frank26080115 | 0:bf7b9fba3924 | 53 | /* "Content-type: image/png\r\n\r\n" */ |
frank26080115 | 0:bf7b9fba3924 | 54 | {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, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 55 | const char http_content_type_gif [28] = |
frank26080115 | 0:bf7b9fba3924 | 56 | /* "Content-type: image/gif\r\n\r\n" */ |
frank26080115 | 0:bf7b9fba3924 | 57 | {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, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 58 | const char http_content_type_jpg [29] = |
frank26080115 | 0:bf7b9fba3924 | 59 | /* "Content-type: image/jpeg\r\n\r\n" */ |
frank26080115 | 0:bf7b9fba3924 | 60 | {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, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 61 | const char http_content_type_binary[43] = |
frank26080115 | 0:bf7b9fba3924 | 62 | /* "Content-type: application/octet-stream\r\n\r\n" */ |
frank26080115 | 0:bf7b9fba3924 | 63 | {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, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 64 | const char http_html[6] = |
frank26080115 | 0:bf7b9fba3924 | 65 | /* ".html" */ |
frank26080115 | 0:bf7b9fba3924 | 66 | {0x2e, 0x68, 0x74, 0x6d, 0x6c, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 67 | const char http_shtml[7] = |
frank26080115 | 0:bf7b9fba3924 | 68 | /* ".shtml" */ |
frank26080115 | 0:bf7b9fba3924 | 69 | {0x2e, 0x73, 0x68, 0x74, 0x6d, 0x6c, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 70 | const char http_htm[5] = |
frank26080115 | 0:bf7b9fba3924 | 71 | /* ".htm" */ |
frank26080115 | 0:bf7b9fba3924 | 72 | {0x2e, 0x68, 0x74, 0x6d, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 73 | const char http_css[5] = |
frank26080115 | 0:bf7b9fba3924 | 74 | /* ".css" */ |
frank26080115 | 0:bf7b9fba3924 | 75 | {0x2e, 0x63, 0x73, 0x73, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 76 | const char http_png[5] = |
frank26080115 | 0:bf7b9fba3924 | 77 | /* ".png" */ |
frank26080115 | 0:bf7b9fba3924 | 78 | {0x2e, 0x70, 0x6e, 0x67, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 79 | const char http_gif[5] = |
frank26080115 | 0:bf7b9fba3924 | 80 | /* ".gif" */ |
frank26080115 | 0:bf7b9fba3924 | 81 | {0x2e, 0x67, 0x69, 0x66, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 82 | const char http_jpg[5] = |
frank26080115 | 0:bf7b9fba3924 | 83 | /* ".jpg" */ |
frank26080115 | 0:bf7b9fba3924 | 84 | {0x2e, 0x6a, 0x70, 0x67, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 85 | const char http_text[6] = |
frank26080115 | 0:bf7b9fba3924 | 86 | /* ".text" */ |
frank26080115 | 0:bf7b9fba3924 | 87 | {0x2e, 0x74, 0x65, 0x78, 0x74, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 88 | const char http_txt[5] = |
frank26080115 | 0:bf7b9fba3924 | 89 | /* ".txt" */ |
frank26080115 | 0:bf7b9fba3924 | 90 | {0x2e, 0x74, 0x78, 0x74, 0 }; |
frank26080115 | 0:bf7b9fba3924 | 91 | const char http_user_agent_fields[77] = |
frank26080115 | 0:bf7b9fba3924 | 92 | /* "Connection: close\r\nUser-Agent: uIP/1.0 (; http://www.sics.se/~adam/uip/)\r\n\r\n" */ |
frank26080115 | 0:bf7b9fba3924 | 93 | {0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0xd, 0xa, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x28, 0x3b, 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, 0x75, 0x69, 0x70, 0x2f, 0x29, 0xd, 0xa, 0xd, 0xa, 0 }; |