随笔分类 - web server
web server
摘要:#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
阅读全文
摘要:#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-------------------------...
阅读全文
摘要:#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...
阅读全文
摘要:#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)};/*------------------------------------------------------------------------------------
阅读全文
摘要:/**************************************************************** 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 **********...
阅读全文

浙公网安备 33010602011771号