wodHttpDLX ActiveX Control - Redirect Method
      
 

Description

Called when server redirects us to new URL.


Return Type

None  


Syntax

object.Redirect Owner, URL, Allow



The Redirect Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodHttpNotify.
Owner Required. A wodHttpDLXCom object. Reference to wodHttpDLXCom instance that called this notification method.
URL Required. A String value. New URL where is wodHttpDLX redirected.
Allow Required. 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.