Back to product page

Redirect method


Called when server redirects us to new URL.

Syntax

  • Basic
object.Redirect Owner, URL, Allow
The Redirect(object,Owner,URL,Allow) syntax has these parts:
objectAn expression evaluating to an object of type wodHttpNotify.
OwnerRequired. A wodHttpDLXCom object. Reference to wodHttpDLXCom instance that called this notification method.
URLRequired. A String value. New URL where is wodHttpDLX redirected.
AllowRequired. A Boolean value. When set to False, wodHttpDLX will not follow redirection.

Remarks

NOTE: This method is called only if you implemented IwodHttpNotify interface in your application, and wodHttp.Notification property has received reference to instance of your implementation.

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