- http_decodeUrl(p, strlen(p), decoded_str, sizeof(decoded_str));
- value_len = strlen(decoded_str);
+ value_len = http_decodeUrl(p, strlen(p), decoded_str, sizeof(decoded_str));
-void http_decodeUrl(const char *raw_buf, size_t raw_len, char *decodec_buf, size_t len)
+size_t http_decodeUrl(const char *raw_buf, size_t raw_len, char *decodec_buf, size_t len)
}
void http_getPageName(const char *recv_buf, size_t recv_len, char *page_name, size_t len)
}
void http_getPageName(const char *recv_buf, size_t recv_len, char *page_name, size_t len)
INLINE const char *get_ext(const char *name)
{
const char *ext = strstr(name, ".");
INLINE const char *get_ext(const char *name)
{
const char *ext = strstr(name, ".");
- netconn_write(client, http_html_hdr_200, sizeof(http_html_hdr_200) - 1, NETCONN_COPY);
+ netconn_write(client, http_html_hdr_200, sizeof(http_html_hdr_200) - 1, NETCONN_NOCOPY);
- netconn_write(client, http_html_hdr_404, sizeof(http_html_hdr_404) - 1, NETCONN_COPY);
+ netconn_write(client, http_html_hdr_404, sizeof(http_html_hdr_404) - 1, NETCONN_NOCOPY);
- netconn_write(client, http_html_hdr_500, sizeof(http_html_hdr_500) - 1, NETCONN_COPY);
+ netconn_write(client, http_html_hdr_500, sizeof(http_html_hdr_500) - 1, NETCONN_NOCOPY);
memset(req_string, 0, sizeof(req_string));
http_getPageName(rx_buf, len, req_string, sizeof(req_string));
memset(req_string, 0, sizeof(req_string));
http_getPageName(rx_buf, len, req_string, sizeof(req_string));
if (req_string[0] == '\0')
strcpy(req_string, HTTP_DEFAULT_PAGE);
if (req_string[0] == '\0')
strcpy(req_string, HTTP_DEFAULT_PAGE);