Redirect Event

Fired when a redirection is received from the server.


ANSI (Cross Platform)
virtual int FireRedirect(WebDAVRedirectEventParams *e);
typedef struct {
const char *Location;
int Accept; int reserved; } WebDAVRedirectEventParams; Unicode (Windows) virtual INT FireRedirect(WebDAVRedirectEventParams *e);
typedef struct {
LPCWSTR Location;
BOOL Accept; INT reserved; } WebDAVRedirectEventParams;
- (void)onRedirect:(NSString*)location :(int*)accept;

virtual INT IPWORKS_CALL FireRedirect(LPSTR &lpszLocation, BOOL &bAccept);


This event is where the client can decide whether to continue with the redirection process or not. The Accept parameter is always true by default, but if you do not want to follow the redirection, Accept may be set to false, in which case the class fails with an error. Location is the location to which the client is being redirected. Further control over redirection is provided in the FollowRedirects property.

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