+ char decoded2[sizeof(uri2)];
+ http_decodeUrl(uri2,sizeof(uri2), decoded2, sizeof(uri2));
+
+ if (strcmp(decoded2, uri_check2))
+ {
+ kprintf("error 5 %s\n", decoded2);
+ goto error;
+ }
+
+ int len = http_tokenizeGetRequest(token_str, sizeof(token_str));
+ if (len != 4)
+ {
+ kprintf("error 6 len %d expect %d\n", len, 4);
+ goto error;
+ }
+
+ char value[80];
+ http_getValue(token_str, sizeof(token_str), "var1", value, sizeof(value));
+ if (strcmp(value, "1"))
+ {
+ kprintf("error 6 value %s expect %s\n", value, "1");
+ goto error;
+
+ }
+
+ http_getValue(token_str, sizeof(token_str), "var4", value, sizeof(value));
+ if (strcmp(value, "4"))
+ {
+ kprintf("error 6 value %s expect %s\n", value, "4");
+ goto error;
+
+ }
+
+
+ len = http_tokenizeGetRequest(token_str1, sizeof(token_str1));
+ if (len != 4)
+ {
+ kprintf("error 7 len %d expect %d\n", len, 4);
+ goto error;
+ }
+
+ if (http_getValue(token_str1, sizeof(token_str1), "var1", value, sizeof(value)) < 0)
+ {
+ kprintf("error 7 during get key %s\n", "var1");
+ goto error;
+ }
+ if (strcmp(value, "1"))
+ {
+ kprintf("error 7 value %s expect %s\n", value, "1");
+ goto error;
+
+ }
+
+ if (http_getValue(token_str1, sizeof(token_str1), "var4", value, sizeof(value)) < 0)
+ {
+ kprintf("error 7 during get key %s\n", "var4");
+ goto error;
+ }
+
+ if (strcmp(value, ""))
+ {
+ kprintf("error 7 value %s expect %s\n", value, "");
+ goto error;
+
+ }
+
+ len = http_tokenizeGetRequest(token_str2, sizeof(token_str2));
+ if (len != 4)
+ {
+ kprintf("error 8 len %d expect %d\n", len, 4);
+ goto error;
+ }
+
+ if (http_getValue(token_str2, sizeof(token_str2), "var3", value, sizeof(value)) < 0)
+ {
+ kprintf("error 8 during get key %s\n", "var3");
+ goto error;
+ }
+
+ if (strcmp(value, "test[]!@;'\"\\. "))
+ {
+ kprintf("error 8 value %s expect %s\n", value, "test[]!@;'\"\\. ");
+ goto error;
+
+ }
+
+ if (http_getValue(token_str2, sizeof(token_str2), "var1", value, sizeof(value)) < 0)
+ {
+ kprintf("error 7 during get key %s\n", "var1");
+ goto error;
+ }
+ if (strcmp(value, "test test"))
+ {
+ kprintf("error 7 value %s expect %s\n", value, "test test");
+ goto error;
+
+ }
+
+
+ for (int i = 0; i < CONTENT_TEST_CNT; i++)
+ {
+ int type = http_searchContentType(contents[i].content);
+ if (type != contents_check_type[i])
+ {
+ kprintf("error 8-%d return type %d expect %d\n", i, type, contents_check_type[i]);
+ kprintf("error 8-%d ext %s\n", i, contents[i].content);
+ goto error;
+ }
+ }
+