📄 ebenviron.html
字号:
<html>
<head>
<!-- E:/eybuild/doc/export//ebenviron.html - generated by refgen from ebenviron.c -->
<title> ebenviron </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>ebenviron</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebenviron</strong> - CGI environment variable </p>
</blockquote><h4>ROUTINES</h4><blockquote><p>
<p>
<b><a href="./ebenviron.html#initEnviron">initEnviron</a>( )</b> - initilize environ struct with current environment <br>
<b><a href="./ebenviron.html#ebCgiInfo">ebCgiInfo</a>( )</b> - list current CGI environment.<br>
<b><a href="./ebenviron.html#ebgetenv">ebgetenv</a>( )</b> - get the value of envirement variable<br>
<b><a href="./ebenviron.html#getHttpHeader">getHttpHeader</a>( )</b> - get the value of specified HTTP header name<br>
<b><a href="./ebenviron.html#getAuthType">getAuthType</a>( )</b> - get auth type (<b>AUTH_TYPE</b>)<br>
<b><a href="./ebenviron.html#getContentLength">getContentLength</a>( )</b> - get content length (<b>CONTENT_LENGTH</b>)<br>
<b><a href="./ebenviron.html#getContentType">getContentType</a>( )</b> - get content type (<b>CONTENT_TYPE</b>)<br>
<b><a href="./ebenviron.html#getGatewayInterface">getGatewayInterface</a>( )</b> - get gateway interface (<b>GATEWAY_INTERFACE</b>)<br>
<b><a href="./ebenviron.html#getPathInfo">getPathInfo</a>( )</b> - get path info (<b>PATH_INFO</b>)<br>
<b><a href="./ebenviron.html#getPathTranslated">getPathTranslated</a>( )</b> - get path info (<b>PATH_INFO</b>)<br>
<b><a href="./ebenviron.html#getQueryString">getQueryString</a>( )</b> - get questry string (<b>QUERY_STRING</b>)<br>
<b><a href="./ebenviron.html#getRemoteAddr">getRemoteAddr</a>( )</b> - get remote host IP Address or URL (<b>REMOTE_ADDR</b>)<br>
<b><a href="./ebenviron.html#getRemoteHost">getRemoteHost</a>( )</b> - get remote host IP Address or URL (<b>REMOTE_HOST</b>)<br>
<b><a href="./ebenviron.html#getRemoteIdent">getRemoteIdent</a>( )</b> - get remote ident (<b>REMOTE_IDENT</b>)<br>
<b><a href="./ebenviron.html#getRemotePort">getRemotePort</a>( )</b> - get remote host port (<b>REMOTE_PORT</b>)<br>
<b><a href="./ebenviron.html#getRemoteUser">getRemoteUser</a>( )</b> - get remote user (<b>REMOTE_USER</b>)<br>
<b><a href="./ebenviron.html#getRequestMethod">getRequestMethod</a>( )</b> - get request method (<b>REQUEST_METHOD</b>)<br>
<b><a href="./ebenviron.html#getScriptName">getScriptName</a>( )</b> - get script name (<b>SCRIPT_NAME</b>)<br>
<b><a href="./ebenviron.html#getServerAddr">getServerAddr</a>( )</b> - get server IP address (<b>SERVER_ADDR</b>)<br>
<b><a href="./ebenviron.html#getServerName">getServerName</a>( )</b> - get server name (<b>SERVER_NAME</b>)<br>
<b><a href="./ebenviron.html#getServerPort">getServerPort</a>( )</b> - get server port (<b>SERVER_PORT</b>)<br>
<b><a href="./ebenviron.html#getServerProtocol">getServerProtocol</a>( )</b> - get server protocol (<b>SERVER_PROTOCOL</b>)<br>
<b><a href="./ebenviron.html#getServerSoftware">getServerSoftware</a>( )</b> - get server software (<b>SERVER_SOFTWARE</b>)<br>
<b><a href="./ebenviron.html#getHttpCookie">getHttpCookie</a>( )</b> - get HTTP cookie list (<b>HTTP_COOKIE</b>)<br>
<b><a href="./ebenviron.html#getHttpConnection">getHttpConnection</a>( )</b> - get connect state (<b>HTTP_CONNECTION</b>)<br>
<b><a href="./ebenviron.html#getUserAgent">getUserAgent</a>( )</b> - get remote user agent (<b>HTTP_USER_AGENT</b>)<br>
<b><a href="./ebenviron.html#getLastModified">getLastModified</a>( )</b> - get the date last modified (<b>HTTP_IF_MODIFIED_SINCE</b>)<br>
<b><a href="./ebenviron.html#getHttpAccept">getHttpAccept</a>( )</b> - get HTTP accept MIME type (<b>HTTP_ACCEPT</b>)<br>
<b><a href="./ebenviron.html#getAcceptLanguage">getAcceptLanguage</a>( )</b> - get browser accept language (<b>HTTP_ACCEPT_LANGUAGE</b>)<br>
<b><a href="./ebenviron.html#getAcceptEncode">getAcceptEncode</a>( )</b> - get browser accept encode (<b>HTTP_ACCEPT_ENCODING</b>)<br>
<p>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
CGI environment variable
<p>
</blockquote><h4>INCLUDE</h4><blockquote><p>
<b>ebenviron.h</b>
<hr>
<a name="initEnviron"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>initEnviron( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>initEnviron( )</strong> - initilize environ struct with current environment </p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int initEnviron
(
EB_ENVIRON * penv
)
</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
</blockquote><h4>RETURN</h4><blockquote><p>
OK/ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="ebCgiInfo"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>ebCgiInfo( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebCgiInfo( )</strong> - list current CGI environment.</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebCgiInfo
(
FILE * fp
)
</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
list current CGI environment with HTML format
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
OK/ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="ebgetenv"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>ebgetenv( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebgetenv( )</strong> - get the value of envirement variable</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * ebgetenv
(
char * varname
)
</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine called <b>xgetenv( )</b>. It will return "" is environment variable
not exist instead return NULL.
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
A pointer to the string value, or pointer to const string ""
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>, <b>stdlib.h</b> <b>getenv( )</b>
<hr>
<a name="getHttpHeader"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getHttpHeader( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getHttpHeader( )</strong> - get the value of specified HTTP header name</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getHttpHeader
(
char * name
)
</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get the value of specified HTTP header name
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>, dopost <b><a href="./ebmultiform.html#dopost">dopost</a>( )</b>, <b><a href="./ebmultiform.html#getPostItemValue">getPostItemValue</a>( )</b>, <b><a href="./ebmultiform.html#getPostSrcFileName">getPostSrcFileName</a>( )</b>
<hr>
<a name="getAuthType"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getAuthType( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getAuthType( )</strong> - get auth type (<b>AUTH_TYPE</b>)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getAuthType ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get auth type (<b>AUTH_TYPE</b>)
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to auth type, or "" if not found
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="getContentLength"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getContentLength( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getContentLength( )</strong> - get content length (<b>CONTENT_LENGTH</b>)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int getContentLength ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get content length when method is POST (<b>CONTENT_LENGTH</b>)
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
content length, or ERROR if not found
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="getContentType"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getContentType( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getContentType( )</strong> - get content type (<b>CONTENT_TYPE</b>)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getContentType ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get content type if method is POST (<b>CONTENT_TYPE</b>)
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to content type, or "" if not found
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="getGatewayInterface"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getGatewayInterface( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getGatewayInterface( )</strong> - get gateway interface (<b>GATEWAY_INTERFACE</b>)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getGatewayInterface ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get gateway interface (<b>GATEWAY_INTERFACE</b>)
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to gateway interface, otherwise "" if not found
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="getPathInfo"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getPathInfo( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getPathInfo( )</strong> - get path info (<b>PATH_INFO</b>)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getPathInfo ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get path info (<b>PATH_INFO</b>)
e.g.: =/cgi-bin/test.cgi
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to path info, or "" if not found
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="getPathTranslated"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getPathTranslated( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getPathTranslated( )</strong> - get path info (<b>PATH_INFO</b>)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getPathTranslated ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get path info (<b>PATH_INFO</b>)
e.g.: =/cgi-bin/test.cgi
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to path info, or "" if not found
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="getQueryString"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getQueryString( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getQueryString( )</strong> - get questry string (<b>QUERY_STRING</b>)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getQueryString ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
questry string (<b>QUERY_STRING</b>)
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to questry string, or "" if not found
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="getRemoteAddr"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getRemoteAddr( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getRemoteAddr( )</strong> - get remote host IP Address or URL (<b>REMOTE_ADDR</b>)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getRemoteAddr ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get remote host IP Address or URL (<b>REMOTE_ADDR</b>)
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to remote address, or "" if not found
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="getRemoteHost"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
</blockquote><h1>getRemoteHost( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>getRemoteHost( )</strong> - get remote host IP Address or URL (<b>REMOTE_HOST</b>)</p>
</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * getRemoteHost ()</pre>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
get remote host IP Address or URL (<b>REMOTE_HOST</b>)
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to remote address, or "" if not found
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebenviron.html#top">ebenviron</a></b>
<hr>
<a name="getRemoteIdent"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib : Routines</i></a></p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -