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

functions associated http processing More...

#include "common/common.h"
#include "protocol/HTTP/httpd.h"
Include dependency graph for httpd.c:

Go to the source code of this file.

Functions

void replacetochar (char *str, char oldchar, char newchar)
 replace the specified character in a string with new character More...
 
char C2D (uint8 c)
 CONVERT CHAR INTO HEX. More...
 
void unescape_http_url (char *url)
 convert escape characters(XX) to ascii charater More...
 
void make_http_response_head (uint8 *buf, int8 type, uint32 len)
 make reponse header such as html, gif, jpeg,etc. More...
 
void find_http_uri_type (uint8 *type, char *buf)
 find MIME type of a file More...
 
void parse_http_request (st_http_request *request, char *buf)
 parse http request from a peer More...
 
unsigned char * get_http_param_value (char *uri, char *param_name)
 get next parameter value in the request
 

Detailed Description

functions associated http processing

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


Copyright (C) 2013 WIZnet. All rights reserved.

Definition in file httpd.c.

Function Documentation

char C2D ( uint8  c)

CONVERT CHAR INTO HEX.

Returns
HEX

This function converts HEX(0-F) to a character

Parameters
cis a character('0'-'F') to convert to HEX

Definition at line 43 of file httpd.c.

Here is the caller graph for this function:

void find_http_uri_type ( uint8 *  type,
char *  buf 
)

find MIME type of a file

Parameters
typetype to be returned
buffile name

Definition at line 113 of file httpd.c.

void make_http_response_head ( uint8 *  buf,
int8  type,
uint32  len 
)

make reponse header such as html, gif, jpeg,etc.

Parameters
bufpointer to response header to be made
typeresponse type
lensize of response header

Definition at line 79 of file httpd.c.

void parse_http_request ( st_http_request *  request,
char *  buf 
)

parse http request from a peer

Parameters
requestrequest to be returned
bufpointer to be parsed

Definition at line 137 of file httpd.c.

void replacetochar ( char *  str,
char  oldchar,
char  newchar 
)

replace the specified character in a string with new character

Parameters
strpointer to be replaced
oldcharold character
newcharnew character

Definition at line 27 of file httpd.c.

Here is the caller graph for this function:

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: