Skip to main content
ATL Server Library Reference 

Override this method to check if the request is valid using IHttpServerContext.

HTTP_CODE CheckValidRequest( );

Returns HTTP_SUCCESS or another ATL Server status code indicating success or failure.

This method is provided to allow you to do simple checking of the validity of a request using the IHttpServerContext interface returned by GetContext. This method is called before the relatively expensive initialization of the request object has occurred, so do not use m_HttpRequest or any method that uses that member in this method. The response object, m_HttpResponse, has been initialized by the time this method is called, so you can use that.