Skip to main content
ATL Server Library Reference 
CHttpRequest Members 

Methods

CHttpRequest

The constructor.

~CHttpRequest

The destructor.

AddRef

Implementation of IUnknown::AddRef.

Cookies

Call this method to retrieve a reference to the cookie with the specified name.

DeleteFiles

Call this method to delete the files managed by this object.

GetAcceptEncodings

Call this method to retrieve the value of the "HTTP_ACCEPT_ENCODING" server variable.

GetAcceptTypes

Call this method to retrieve the value of the "HTTP_ACCEPT" server variable.

GetAuthenticated

Call this method to determine whether the request was authenticated.

GetAuthenticationType

Call this method to retrieve the value of the "AUTH_TYPE" server variable.

GetAuthUserName

Call this method to retrieve the value of the "AUTH_USER" server variable.

GetAuthUserPassword

Call this method to retrieve the value of the "AUTH_PASSWORD" server variable.

GetAvailableBytes

Call this method to get the number of available bytes in the HTTP request.

GetAvailableData

Call this method to get at the available data from the current request.

GetContentType

Call this method to get the content type of the current request.

GetCookies

Call this method to retrieve the value of the "HTTP_COOKIE" server variable.

GetFirstCookie

Call this method to get the first cookie associated with an HTTP request.

GetFirstFile

Call this method to get the first file associated with an HTTP request.

GetFirstFormVar

Call this method to get the first form variable associated with an HTTP request.

GetFirstQueryParam

Call this method to get the first query parameter associated with an HTTP request.

GetFormVars

Call this method to get the form variables from the HTTP request.

GetMethod

Call this method to get the HTTP method used to make the request.

GetMethodString

Call this method to get the HTTP method used to make the request.

GetNextCookie

Call this method to get the next cookie associated with the HTTP request.

GetNextFile

Call this method to get the next file associated with the HTTP request.

GetNextFormVar

Call this method to get the next form variable associated with the HTTP request.

GetNextQueryParam

Call this method to get the next query parameter associated with an HTTP request.

GetPathInfo

Call this method to get the path of the current request from the HTTP request.

GetPathTranslated

Call this method to get the translated path of the requested resource from the HTTP request.

GetPhysicalPath

Call this method to retrieve the value of the "APPL_PHYSICAL_PATH" server variable.

GetQueryParams

Call this method to get a reference to the collection of query parameters obtained from the query string.

GetQueryString

Call this method to get the query string from the HTTP server context object.

GetScriptName

Call this method to retrieve the value of the "SCRIPT_NAME" server variable.

GetScriptPathTranslated

Call this method to get the translated path of the script handling the current request from the HTTP server context object.

GetServerContext

Call this method to get the server context associated with this request.

GetServerVariable

Call this method to get the value of a server variable from the HTTP request.

GetSessionCookie

Call this method to get the session cookie from an HTTP request.

GetTotalBytes

Call this method to get the total number of bytes in the current request.

GetUrl

Call this method to retrieve the value of the "URL" server variable.

GetUrlReferer

Call this method to retrieve the value of the "HTTP_REFERER" server variable.

GetUserAgent

Call this method to retrieve a string containing the value of the "HTTP_USER_AGENT" server variable.

GetUserHostAddress

Call this method to retrieve the value of the "REMOTE_ADDR" server variable.

GetUserHostName

Call this method to retrieve the value of the "REMOTE_HOST" server variable.

GetUserLanguages

Call this method to retrieve the value of the "HTTP_ACCEPT_LANGUAGE" server variable.

GetUserName

Call this method to retrieve the value of the "REMOTE_USER" server variable.

Initialize

Call this method to initialize the object with information about the current request.

QueryInterface

Implementation of IUnknown::QueryInterface.

Release

Implementation of IUnknown::Release.

ReadData

Call this method to read a specified amount of data from the body of the HTTP request.

SetServerContext

Call this method to set the server context of an HTTP request object.

Data Members

m_Files

The collection of files in the request.

m_requestCookies

The collection of cookies in the request.

Properties

FormVars

A property accessor for CHttpRequest::GetFormVars.

QueryParams

A property accessor for CHttpRequest::GetQueryParams.

Typedefs

FileMap

The type of map used to hold the collection of files.

CookieMap

The type of map used to hold the collection of cookies.

Enums

HTTP_METHOD

This enumeration defines the values for the HTTP methods used to make a request.

See Also