WeOnlyDo! wodWebServer ActiveX - Redirect Method
      
 

Description

Redirects response to new URL.


Return Type

None  


Syntax

object.Redirect NewURL, [TempRedirect]



The Redirect Method syntax has these parts:

Part Description
object An expression evaluating to an object of type WebResponse.
NewURL Required. A String value. New URL (may include other hostname) where client is redirected.
TempRedirect Optional. A Variant value. Defines if client receives 'temporary' or 'permanent' redirection notice.

Remarks

This method will redirect client to location you specify. You can send out '301 Moved Permanently' or '302 Moved Temporarily' status code, depending on TempRedirect value. After this method is called, Response is sent to the client and you should not change it anymore.