Back to product page

Redirect event


Fires when server redirects us to new URL.

Syntax

  • Basic
Private Sub object_Redirect(URL, Allow)
The Redirect(object,URL,Allow) syntax has these parts:
objectA wodHttpDLX object.
URLA String value. New URL where is wodHttpDLX redirected.
AllowA Boolean value. When set to False, wodHttpDLX will not follow redirection.

Remarks

Redirect event is fired only if AutoRedirect property is set to True. When server returns redirection response (StatusCode 301 or 302) when wodHttpDLX follows redirection to new URL. But, at this point you are allowed to change URL provided by the server (so you actually redirect wodHttpDLX to completely different address), or you can deny redirection by setting Allow = False.

Platforms

Windows