摘要: #include #include #include #include "mime.h"#include "http_common.h"static const char* methods[]={ "GET", "POST"};static int get_version(const char* versionPos, char* version){ char* versionEnd = NULL; int versionlen = 0; if(versionPos == NULL || version == NU 阅读全文
posted @ 2014-01-14 15:01 holycrap 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include /*-----------------------------------------------------------------functionname: file_existparam: NAreturn: NAauthor: xxxx check if file is exist in webapp history: create by xxxx, 2014.1.08, add simple abilities-------------------------... 阅读全文
posted @ 2014-01-14 14:39 holycrap 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include #include "mime.h"static STR_MIME_MAP mime_map[]= { MIME_MAP(MIME_STR_GEN) };void get_mime_type(const char* filename, EN_MIME_TYPE* filetype){ int i =0; for(i=0; i MIME_ELSE || filetype < 0) return NULL; return mime_map[filetype].mimetype;}#ifndef __MIME__H#defi... 阅读全文
posted @ 2014-01-14 14:38 holycrap 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include "mime.h"#include "http_common.h"#include "http_webapp.h"static STR_STATUS_MAP resp_map[]={HTTP_STATUS_MAP(HTTP_MAP_GEN)};/*------------------------------------------------------------------------------------ 阅读全文
posted @ 2014-01-14 14:37 holycrap 阅读(192) 评论(0) 推荐(0) 编辑
摘要: /**************************************************************** filename: http_server.c author: xxxx function: Main file of http server Impliment the response of Get and Post mehtods history: created by xxxx date: 2014.01.03 **********... 阅读全文
posted @ 2014-01-14 14:36 holycrap 阅读(285) 评论(0) 推荐(0) 编辑