return -1;
strcpy(value, decoded_str);
- break;
+ return value_len;
}
/* jump to next pair */
p += token_len + 1;
}
- return value_len;
+ return -1;
}
/**
int i = 0;
const char *ext = get_ext(name);
- LOG_INFO("EXT %s\n", ext);
+ LOG_INFO("EXT %s\n", ext ? "none" : ext);
while(table[i].name)
{
if (ext && table[i].type == CGI_MATCH_EXT)
#define CGI_MATCH_EXT 2 ///< Select item in table if the extention match
#define CGI_MATCH_NAME 3 ///< Select item in table if the string is content
-#define HTTP_MAX_GET_TOKENS 5
-
int http_getValue(char *tolenized_buf, size_t tolenized_buf_len, const char *key, char *value, size_t len);
int http_tokenizeGetRequest(char *raw_buf, size_t raw_len);
void http_getPageName(const char *recv_buf, size_t recv_len, char *page_name, size_t len);