EVB-PIC24 WIZnet, EVB-PIC24 Datasheet - Page 69

no-image

EVB-PIC24

Manufacturer Part Number
EVB-PIC24
Description
Development Boards & Kits - PIC / DSPIC W3150A+EVAL BOARD BASED ON PIC24
Manufacturer
WIZnet
Datasheet

Specifications of EVB-PIC24

Rohs
yes
Product
Development Kits
Interface Type
RS-232
Data Bus Width
16 bit
Dimensions
50 mm x 40 mm
Request-URI which is saved in URI [MAX_URI_SIZE] of st_http_request has URI Name before “?” symbol
and Query String after “?” sign. When Request-URI is transferred from Web Browser to Web Server, SP
(Space) text is transmitted in the form of „+‟ and, other Reserved Texts are transmitted in the form of
“%HEXHEX.” Accordingly, Reserved Texts in Request-URI needs to be decoded to the previous value, from
„+‟ to SP and from %HEXHEX to related ASCII vales. For the details of Request-URI decoding refer to
RFC1738. URI name of Request-URI is extracted with get_http_uri_name().Query String of Request-URI can
include one or more “variable=value” pair that has
get_http_param_value() it can extract the wanted variable value in Query String.
CGI processing of Web Server Program at EVB B/D is different from general Web Server Program which is
based on OS. Web Server Program which is based on OS creates separate process to take case of
communication between processes independently. However, Web Server of EVB B/D is OS-less, so, instead
type = PTYPE_HTML
char tempURI[MAX_URI_SIZE]
char* uri_name
Declare & Initialize Local Variables
find_http_uri_type()
uri_name = strtok(tempURI,?)
Get the URL name Token
Copy uri to tempURI
get_http_url_name()
Y
Find ‘/’ in uri_name
.htm
Y
uri == NULL
RETURN
Found
N
type = PTYPE_GIF
N
N
<Fig 3.22: get_http_uri_name() & get_http_parse_value()>
Y
.gif
© Copyright 2006 WIZnet Co., Inc. All rights reserved.
Y
type = PTYPE_TEXT
N
uri_name++
.text
Y
<Fig 3.21: find_http_uri_type()>
type = PTYPE_JPEG
N
.jpeg
Y
name = strstr(tempURI,param_name)
char tempURI[MAX_URI_SIZE]
char* name = NULL
Y
Declare & Initialize Local Variables
Find param_name in tempURI
type = PTYPE_FLASH
get_http_param_value()
param_name == NULL
Copy uri to tempURI
N
name != NULL
uri == NULL
RETURN
RETURN
Y
.swf
N
||
type = PTYPE_MPEG
“&”
N
.mpeg
as a separator. Through function
Y
Extract the value of parma_name
Decoding the escape characters
name +=strlen(param_name)+1
type = PTYPE_PDF
name=strtok(name,’& \r\n\t\0”)
N
replacetochar(name,+,SP)
unescape_http_uri(name)
Replace + with SP
.pdf
Y
type = PTYPE_ERR
N
59

Related parts for EVB-PIC24