SecureBlackbox 2020 C++ Edition

Questions / Feedback?

BeforeRequest Event

Fires before a DAV request is processed.

Syntax

ANSI (Cross Platform)
virtual int FireBeforeRequest(WebDAVServerBeforeRequestEventParams *e);
typedef struct {
int64 ConnectionID;
const char *HTTPMethod;
const char *URL;
int Accept; int reserved; } WebDAVServerBeforeRequestEventParams; Unicode (Windows) virtual INT FireBeforeRequest(WebDAVServerBeforeRequestEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCWSTR HTTPMethod;
LPCWSTR URL;
BOOL Accept; INT reserved; } WebDAVServerBeforeRequestEventParams;
- (void)onBeforeRequest:(long long)connectionID :(NSString*)HTTPMethod :(NSString*)URL :(int*)accept;
#define EID_WEBDAVSERVER_BEFOREREQUEST 3

virtual INT SECUREBLACKBOX_CALL FireBeforeRequest(LONG64 &lConnectionID, LPSTR &lpszHTTPMethod, LPSTR &lpszURL, BOOL &bAccept);

Remarks

This event fires before an incoming request is processed. ConnectionID indicates the client's unique connection ID; HTTPMethod specifies the HTTP method being used to submit the request, and URL signifies the object's URL.

Use Accept parameter to accept or reject the request.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 C++ Edition - Version 20.0 [Build 8166]