eyBuildLib API Reference : eyBuildLib
ebenviron - CGI environment variable
initEnviron( ) - initilize environ struct with current environment
ebCgiInfo( ) - list current CGI environment.
ebgetenv( ) - get the value of envirement variable
getHttpHeader( ) - get the value of specified HTTP header name
getAuthType( ) - get auth type (AUTH_TYPE)
getContentLength( ) - get content length (CONTENT_LENGTH)
getContentType( ) - get content type (CONTENT_TYPE)
getGatewayInterface( ) - get gateway interface (GATEWAY_INTERFACE)
getPathInfo( ) - get path info (PATH_INFO)
getPathTranslated( ) - get path info (PATH_INFO)
getQueryString( ) - get questry string (QUERY_STRING)
getRemoteAddr( ) - get remote host IP Address or URL (REMOTE_ADDR)
getRemoteHost( ) - get remote host IP Address or URL (REMOTE_HOST)
getRemoteIdent( ) - get remote ident (REMOTE_IDENT)
getRemotePort( ) - get remote host port (REMOTE_PORT)
getRemoteUser( ) - get remote user (REMOTE_USER)
getRequestMethod( ) - get request method (REQUEST_METHOD)
getScriptName( ) - get script name (SCRIPT_NAME)
getServerAddr( ) - get server IP address (SERVER_ADDR)
getServerName( ) - get server name (SERVER_NAME)
getServerPort( ) - get server port (SERVER_PORT)
getServerProtocol( ) - get server protocol (SERVER_PROTOCOL)
getServerSoftware( ) - get server software (SERVER_SOFTWARE)
getHttpCookie( ) - get HTTP cookie list (HTTP_COOKIE)
getHttpConnection( ) - get connect state (HTTP_CONNECTION)
getHttpUserAgent( ) - get remote user agent (HTTP_USER_AGENT)
getHttpLastModified( ) - get the date last modified (HTTP_IF_MODIFIED_SINCE)
getHttpAccept( ) - get HTTP accept MIME type (HTTP_ACCEPT)
getHttpAcceptLanguage( ) - get browser accept language (HTTP_ACCEPT_LANGUAGE)
getHttpAcceptEncode( ) - get browser accept encode (HTTP_ACCEPT_ENCODING)
CGI environment variable
ebenviron.h
initEnviron( ) - initilize environ struct with current environment
int initEnviron ( EB_ENVIRON * penv )
OK/ERROR
ebCgiInfo( ) - list current CGI environment.
int ebCgiInfo ( FILE * fp )
list current CGI environment with HTML format
OK/ERROR
ebgetenv( ) - get the value of envirement variable
char * ebgetenv ( const char * varname )
this routine called xgetenv( ). It will return "" is environment variable not exist instead return NULL.
A pointer to the string value, or pointer to const string ""
ebenviron, stdlib.h getenv( )
getHttpHeader( ) - get the value of specified HTTP header name
char * getHttpHeader ( const char * name )
get the value of specified HTTP header name
ebenviron, dopost dopost( ), getPostItemValue( ), getPostSrcFileName( )
getAuthType( ) - get auth type (AUTH_TYPE)
char * getAuthType (void)
get auth type (AUTH_TYPE)
pointer to auth type, or "" if not found
getContentLength( ) - get content length (CONTENT_LENGTH)
int getContentLength (void)
get content length when method is POST (CONTENT_LENGTH)
content length, or ERROR if not found
getContentType( ) - get content type (CONTENT_TYPE)
char * getContentType (void)
get content type if method is POST (CONTENT_TYPE)
pointer to content type, or "" if not found
getGatewayInterface( ) - get gateway interface (GATEWAY_INTERFACE)
char * getGatewayInterface (void)
get gateway interface (GATEWAY_INTERFACE)
pointer to gateway interface, otherwise "" if not found
getPathInfo( ) - get path info (PATH_INFO)
char * getPathInfo (void)
get path info (PATH_INFO) e.g.: =/cgi-bin/test.cgi
pointer to path info, or "" if not found
getPathTranslated( ) - get path info (PATH_INFO)
char * getPathTranslated (void)
get path info (PATH_INFO) e.g.: =/cgi-bin/test.cgi
pointer to path info, or "" if not found
getQueryString( ) - get questry string (QUERY_STRING)
char * getQueryString (void)
questry string (QUERY_STRING)
pointer to questry string, or "" if not found
getRemoteAddr( ) - get remote host IP Address or URL (REMOTE_ADDR)
char * getRemoteAddr (void)
get remote host IP Address or URL (REMOTE_ADDR)
pointer to remote address, or "" if not found
getRemoteHost( ) - get remote host IP Address or URL (REMOTE_HOST)
char * getRemoteHost (void)
get remote host IP Address or URL (REMOTE_HOST)
pointer to remote address, or "" if not found
getRemoteIdent( ) - get remote ident (REMOTE_IDENT)
char * getRemoteIdent (void)
get remote ident (REMOTE_IDENT), this value is not alway secure
pointer to remote address, or "" if not found
getRemotePort( ) - get remote host port (REMOTE_PORT)
short getRemotePort (void)
get remote host port (REMOTE_PORT)
remote host, or ERROR if not found
getRemoteUser( ) - get remote user (REMOTE_USER)
char * getRemoteUser (void)
get remote user (REMOTE_USER)
pointer to remote user, or "" if not found
getRequestMethod( ) - get request method (REQUEST_METHOD)
char * getRequestMethod (void)
get request method (REQUEST_METHOD)
pointer to method, or "" if not found
getScriptName( ) - get script name (SCRIPT_NAME)
char * getScriptName (void)
get script name (SCRIPT_NAME)
pointer to script name, or "" if not found
getServerAddr( ) - get server IP address (SERVER_ADDR)
char * getServerAddr (void)
get server name (SERVER_NAME)
pointer to server IP address, otherwise "" if not found
getServerName( ) - get server name (SERVER_NAME)
char * getServerName (void)
get server name (SERVER_NAME)
pointer to server name, otherwise "" if not found
getServerPort( ) - get server port (SERVER_PORT)
short getServerPort (void)
get server port (SERVER_PORT)
remote host, or ERROR if not found
getServerProtocol( ) - get server protocol (SERVER_PROTOCOL)
char * getServerProtocol (void)
get server protocol (SERVER_PROTOCOL)
pointer to server protocol, or "" if not found
getServerSoftware( ) - get server software (SERVER_SOFTWARE)
char * getServerSoftware (void)
get server software (SERVER_SOFTWARE)
pointer to server software, otherwise "" if not found
getHttpCookie( ) - get HTTP cookie list (HTTP_COOKIE)
char * getHttpCookie (void)
pointer to cookie list , or "" if not found
getHttpConnection( ) - get connect state (HTTP_CONNECTION)
char * getHttpConnection (void)
get connect state (HTTP_CONNECTION), such as "Keep-Alive"
pointer to connection state , or "" if not found
getHttpUserAgent( ) - get remote user agent (HTTP_USER_AGENT)
char * getHttpUserAgent (void)
get remote user agent (HTTP_USER_AGENT), for HTTP 1.1 e.g.: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
pointer to user agent, or "" if not found
getHttpLastModified( ) - get the date last modified (HTTP_IF_MODIFIED_SINCE)
char * getHttpLastModified (void)
get the date last modified (HTTP_IF_MODIFIED_SINCE)
pointer to the date last modified , otherwise "" if not found
getHttpAccept( ) - get HTTP accept MIME type (HTTP_ACCEPT)
char * getHttpAccept (void)
pointer to the accept MIME type, or "" if not found
getHttpAcceptLanguage( ) - get browser accept language (HTTP_ACCEPT_LANGUAGE)
char * getHttpAcceptLanguage (void)
get browser accept language (HTTP_ACCEPT_LANGUAGE)
pointer to the accept language, otherwise "" if not found
getHttpAcceptEncode( ) - get browser accept encode (HTTP_ACCEPT_ENCODING)
char * getHttpAcceptEncode (void)
get browser accept encode (HTTP_ACCEPT_ENCODING)
pointer to the accept encode, otherwise "" if not found