WIZlib Library API  ver 1.0
WIZlib Library API User Menual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
httpd.h File Reference

Define Constants and fucntions associated with HTTP protocol. More...

#include "common/common.h"
#include "romfile.h"
Include dependency graph for httpd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HTTP_SERVER_PORT   80
 Http server well-known port number.
 
#define METHOD_ERR   0
 Error Method. More...
 
#define METHOD_GET   1
 GET Method. More...
 
#define METHOD_HEAD   2
 HEAD Method. More...
 
#define METHOD_POST   3
 POST Method. More...
 
#define PTYPE_ERR   0
 Error file. More...
 
#define PTYPE_HTML   1
 HTML file. More...
 
#define PTYPE_GIF   2
 GIF file. More...
 
#define PTYPE_TEXT   3
 TEXT file. More...
 
#define PTYPE_JPEG   4
 JPEG file. More...
 
#define PTYPE_FLASH   5
 FLASH file. More...
 
#define PTYPE_MPEG   6
 MPEG file. More...
 
#define PTYPE_PDF   7
 PDF file. More...
 
#define PTYPE_CGI   8
 CGI.
 

Functions

void unescape_http_url (char *url)
 convert escape characters(XX) to ascii charater More...
 
void parse_http_request (st_http_request *, char *)
 parse http request from a peer
 
void find_http_uri_type (uint8 *, char *)
 find MIME type of a file
 
void make_http_response_head (uint8 *, int8, uint32)
 make reponse header such as html, gif, jpeg,etc.
 
unsigned char * get_http_param_value (char *uri, char *param_name)
 get next parameter value in the request
 

Detailed Description

Define Constants and fucntions associated with HTTP protocol.

Version
1.0
Date
2013/
Revision
2013/ - 1.0 Release
Author


Copyright (C) 2013 WIZnet. All rights reserved.

Definition in file httpd.h.

Macro Definition Documentation

#define METHOD_ERR   0

Error Method.

Definition at line 22 of file httpd.h.

#define METHOD_GET   1

GET Method.

Definition at line 23 of file httpd.h.

#define METHOD_HEAD   2

HEAD Method.

Definition at line 24 of file httpd.h.

#define METHOD_POST   3

POST Method.

Definition at line 25 of file httpd.h.

#define PTYPE_ERR   0

Error file.

Definition at line 28 of file httpd.h.

#define PTYPE_FLASH   5

FLASH file.

Definition at line 33 of file httpd.h.

#define PTYPE_GIF   2

GIF file.

Definition at line 30 of file httpd.h.

#define PTYPE_HTML   1

HTML file.

Definition at line 29 of file httpd.h.

#define PTYPE_JPEG   4

JPEG file.

Definition at line 32 of file httpd.h.

#define PTYPE_MPEG   6

MPEG file.

Definition at line 34 of file httpd.h.

#define PTYPE_PDF   7

PDF file.

Definition at line 35 of file httpd.h.

#define PTYPE_TEXT   3

TEXT file.

Definition at line 31 of file httpd.h.

Function Documentation

void unescape_http_url ( char *  url)

convert escape characters(XX) to ascii charater

Parameters
urlpointer to be conveted ( escape characters )

Definition at line 60 of file httpd.c.

Here is the caller graph for this function: