eyBuildLib API Reference : eyBuildLib
ebenviron - CGI environment variable
ebResetGetenv( ) - reset getenv( ) for eybuild library
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 translated name (PATH_TRANSLATED)
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)
getHttpETag( ) - get HTTP entity tag (HTTP_IF_NONE_MATCH)
CGI environment variable
ebenviron.h
ebResetGetenv( ) - reset getenv( ) for eybuild library
FUNC_GETENV ebResetGetenv ( FUNC_GETENV callback )
This routine is to reset getenv( ) for eybuild library.
the old callback routine
ebgetenv( ) - get the value of envirement variable
char * ebgetenv ( const char * varname )
This routine is to get the value of envirement variable. It will return const blank string (""), if the environment variable not exist.
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 )
This routine is to get the value of specified HTTP header name.
ebenviron, dopost dopost( ), getPostItemValue( ), getPostSrcFileName( )
getAuthType( ) - get auth type (AUTH_TYPE)
char * getAuthType (void)
This routine is to get auth type (AUTH_TYPE).
pointer to auth type, or "" if not found
getContentLength( ) - get content length (CONTENT_LENGTH)
size_t getContentLength (void)
This routine is to 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)
This routine is to 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)
This routine is to get gateway interface (GATEWAY_INTERFACE).
pointer to gateway interface, otherwise "" if not found
getPathInfo( ) - get path info (PATH_INFO)
char * getPathInfo (void)
This routine is to get the request path info (PATH_INFO), such as returns "/cgi-bin/test.cgi".
pointer to path info, or "" if not found.
getPathTranslated( ) - get path translated name (PATH_TRANSLATED)
char * getPathTranslated (void)
This routine is to get the get path translated name.
pointer to path translated name, or "" if not found
getQueryString( ) - get questry string (QUERY_STRING)
char * getQueryString (void)
This routine is to 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)
This routine is to 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)
This routine is to 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)
This routine is to get remote ident (REMOTE_IDENT), this value is not always security.
pointer to remote address, or "" if not found
getRemotePort( ) - get remote host port (REMOTE_PORT)
short getRemotePort (void)
This routine is to get remote host port (REMOTE_PORT).
remote host, or ERROR if not found
getRemoteUser( ) - get remote user (REMOTE_USER)
char * getRemoteUser (void)
This routine is to 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)
This routine is to get script name (SCRIPT_NAME).
pointer to script name, or "" if not found
getServerAddr( ) - get server IP address (SERVER_ADDR)
char * getServerAddr (void)
This routine is to get server name (SERVER_NAME).
pointer to server IP address, otherwise "" if not found
getServerName( ) - get server name (SERVER_NAME)
char * getServerName (void)
This routine is to get server name (SERVER_NAME).
pointer to server name, otherwise "" if not found
getServerPort( ) - get server port (SERVER_PORT)
short getServerPort (void)
This routine is to get server port (SERVER_PORT).
remote host, or ERROR if not found
getServerProtocol( ) - get server protocol (SERVER_PROTOCOL)
char * getServerProtocol (void)
This routine is to get server protocol (SERVER_PROTOCOL).
pointer to server protocol, or "" if not found
getServerSoftware( ) - get server software (SERVER_SOFTWARE)
char * getServerSoftware (void)
This routine is to get server software (SERVER_SOFTWARE).
pointer to server software, otherwise "" if not found
getHttpCookie( ) - get HTTP cookie list (HTTP_COOKIE)
char * getHttpCookie (void)
This routine is to get connect state (HTTP_CONNECTION), such as "Keep-Alive".
pointer to cookie list , or "" if not found
getHttpConnection( ) - get connect state (HTTP_CONNECTION)
char * getHttpConnection (void)
This routine is to 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)
This routine is to get remote user agent (HTTP_USER_AGENT), such as 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)
This routine is to 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)
This routine is to get HTTP accept MIME type (HTTP_ACCEPT).
pointer to the accept MIME type, or "" if not found
getHttpAcceptLanguage( ) - get browser accept language (HTTP_ACCEPT_LANGUAGE)
char * getHttpAcceptLanguage (void)
This routine is to 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)
This routine is to get browser accept encode (HTTP_ACCEPT_ENCODING).
pointer to the accept encode, otherwise "" if not found
getHttpETag( ) - get HTTP entity tag (HTTP_IF_NONE_MATCH)
char * getHttpETag (void)
This routine is to get HTTP entity tag (HTTP_IF_NONE_MATCH).
pointer to the entity tag, otherwise "" if not found