📄 ebrequest.html
字号:
<html>
<head>
<!-- E:/eybuild/doc/export//ebrequest.html - generated by refgen from ebrequest.c -->
<title> ebrequest </title>
</head>
<body bgcolor="#FFFFFF"> <hr>
<a name="top"></a>
<p align=right>
<a href="libIndex.htm"><i>eyBuildLib API Reference : eyBuildLib</i></a></p>
</blockquote><h1>ebrequest</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebrequest</strong> - process http request </p>
</blockquote><h4>ROUTINES</h4><blockquote><p>
<p>
<b><a href="./ebrequest.html#getParameter">getParameter</a>( )</b> - get the value of parameter user submit<br>
<b><a href="./ebrequest.html#getParameterNext">getParameterNext</a>( )</b> - get the next paramter by "name"<br>
<b><a href="./ebrequest.html#isSetQuery">isSetQuery</a>( )</b> - check a query exist or not<br>
<b><a href="./ebrequest.html#getQeuryNumber">getQeuryNumber</a>( )</b> - get the number of query in query list (for GET/POST)<br>
<b><a href="./ebrequest.html#getQeuryByIndex">getQeuryByIndex</a>( )</b> - get the query by index<br>
<b><a href="./ebrequest.html#getCookie">getCookie</a>( )</b> - get the value of cookie<br>
<b><a href="./ebrequest.html#getCookieNext">getCookieNext</a>( )</b> - get the next paramter by "name"<br>
<b><a href="./ebrequest.html#isSetCookie">isSetCookie</a>( )</b> - check a query exist or not<br>
<b><a href="./ebrequest.html#getCookieNumber">getCookieNumber</a>( )</b> - get the number of cookie in cookie list (for GET/POST)<br>
<b><a href="./ebrequest.html#getCookieByIndex">getCookieByIndex</a>( )</b> - get the cookie by index<br>
<b><a href="./ebrequest.html#cgiPrefix">cgiPrefix</a>( )</b> - make current cgi prefix string<br>
<b><a href="./ebrequest.html#romPrefix">romPrefix</a>( )</b> - make current rom prefix string<br>
<b><a href="./ebrequest.html#cgiPrefix2">cgiPrefix2</a>( )</b> - make current cgi prefix string<br>
<b><a href="./ebrequest.html#romPrefix2">romPrefix2</a>( )</b> - make current rom prefix string<br>
<b><a href="./ebrequest.html#thisCgiPrefix">thisCgiPrefix</a>( )</b> - make prefix by current page name<br>
<p>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
process http request
<p>
</blockquote><h4>INCLUDE</h4><blockquote><p>
<b>ebenviron.h</b>
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b>ebrespond.h</b>
<hr>
<a name="getParameter"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getParameter( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getParameter( )</strong> - get the value of parameter user submit</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getParameter
(
char * name
)
</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to get the value of parameter user submit by GET/POST
method. Note for POST, this routine only return the value content type
is "application/x-www-form-urlencoded". For type "multipart/form-data"
to upload file or submit a mont of data see <b><a href="./ebmultiform.html#dopost">dopost</a>( )</b>, <b><a href="./ebmultiform.html#getPostItemValue">getPostItemValue</a>( )</b>.
<p>
</blockquote><h4>NOTE</h4><blockquote><p>
<p>
if there are more than one same name items, this routine will retun
the last one. If you want to get one by one please see <b><a href="./ebrequest.html#getParameterNext">getParameterNext</a>( )</b>
or <b><a href="./ebrequest.html#getQeuryByIndex">getQeuryByIndex</a>( )</b>.
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to the value of parameter, or "" if not find
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebrequest.html#top">ebrequest</a></b>, <b><a href="./ebrequest.html#getCookie">getCookie</a>( )</b> <b><a href="./ebrequest.html#getParameterNext">getParameterNext</a>( )</b> <b><a href="./ebrequest.html#getQeuryByIndex">getQeuryByIndex</a>( )</b>
<hr>
<a name="getParameterNext"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getParameterNext( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getParameterNext( )</strong> - get the next paramter by "name"</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getParameterNext
(
char * name, /* what to search */
int * pstart /* offset, to search for next */
)
</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is search the next paramter by "name", the start index is to
specify the offset in the search list.
<p>
</blockquote><h4>NOTE</h4><blockquote><p>
<p>
if not found the *pstart will return a number < 0
<pre>char * p;
int offset;
for (offset=0; offset >=0; )
{
p = getParameterNext("xxx", &offset);
print("%s\n", p);
}
</pre>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer the value, or blank string "" if not found
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebrequest.html#top">ebrequest</a></b>, <b>getCookeNext( )</b>
<hr>
<a name="isSetQuery"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>isSetQuery( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>isSetQuery( )</strong> - check a query exist or not</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>BOOL isSetQuery
(
char * name
)
</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to check a query exist or not.
<p>
</blockquote><h4>NOTE</h4><blockquote><p>
query name and query value may be blank string(""), but
not at the same time. Eg.: "?=v1&n1=&&" means there to item "=v1" and "n1="
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
TRUE/FALSE
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebrequest.html#top">ebrequest</a></b>, <b><a href="./ebrequest.html#isSetCookie">isSetCookie</a>( )</b>
<hr>
<a name="getQeuryNumber"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getQeuryNumber( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getQeuryNumber( )</strong> - get the number of query in query list (for GET/POST)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int getQeuryNumber ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to return the query number (for GET/POST)
</blockquote><h4>NOTE</h4><blockquote><p>
not include cookie
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
number of querys.
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebrequest.html#top">ebrequest</a></b>, <b><a href="./ebrequest.html#getCookieNumber">getCookieNumber</a>( )</b>
<hr>
<a name="getQeuryByIndex"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getQeuryByIndex( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getQeuryByIndex( )</strong> - get the query by index</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getQeuryByIndex
(
char * * name, /* to return the query name */
int index /* index in query list */
)
</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to return the query name and value by index. if the index
is out of range, the value name should be set to NULL, and the value should
be set to blank string ("").
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer the query item value, or "" if no such item.
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebrequest.html#top">ebrequest</a></b>, <b><a href="./ebrequest.html#getCookieByIndex">getCookieByIndex</a>( )</b>
<hr>
<a name="getCookie"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getCookie( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getCookie( )</strong> - get the value of cookie</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getCookie
(
char * name
)
</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to get the value of cookie last occur in cookie list
<p>
</blockquote><h4>NOTE</h4><blockquote><p>
<p>
if there are more than one same name items, this routine will retun
the last one. If you want to get one by one please see <b><a href="./ebrequest.html#getCookieNext">getCookieNext</a>( )</b>
or <b><a href="./ebrequest.html#getCookieByIndex">getCookieByIndex</a>( )</b>.
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to the value of parameter, or "" if not find
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebrequest.html#top">ebrequest</a></b>, <b><a href="./ebrequest.html#getParameter">getParameter</a>( )</b>
<hr>
<a name="getCookieNext"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -