Discuss this help topic in SecureBlackbox Forum



Filter: C#/Java  VB.NET  Pascal  C++  PHP  

This event is fired when HTTP redirection is to be performed.


    event TSBHTTPRedirectionEvent OnRedirection;
    delegate void TSBHTTPRedirectionEvent(Object Sender, string OldURL, ref string NewURL, ref bool AllowRedirection);

    Event OnRedirection As TSBHTTPRedirectionEvent
    Delegate Sub TSBHTTPRedirectionEvent(ByVal Sender As Object, ByVal OldURL As String, ByRef NewURL As String, ByRef AllowRedirection As Boolean)

    property OnRedirection: TSBHTTPRedirectionEvent;
    TSBHTTPRedirectionEvent = procedure(Sender: TObject; OldURL, NewURL: string; var AllowRedirection: boolean) of object;

    void get_OnRedirection(TSBHTTPRedirectionEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnRedirection(TSBHTTPRedirectionEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBHTTPRedirectionEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcOldURL, int32_t szOldURL, char * pcNewURL, int32_t &szNewURL, int8_t &AllowRedirection);

    TSBHTTPRedirectionEvent|callable|NULL get_OnRedirection()
    void set_OnRedirection(TSBHTTPRedirectionEvent|callable|NULL $Value)
    callable TSBHTTPRedirectionEvent(TObject $Sender, string $OldURL, string &$NewURL, bool &$AllowRedirection)


  • OldURL - redirection source
  • NewURL - redirection destination
  • AllowRedirection - specifies if redirection should be allowed
  • pcOldURL - redirection source
  • szOldURL - the length of pcOldURL.
  • pcNewURL - redirection destination
  • szNewURL - the length of pcNewURL.


    This event is fired when redirection response is received from server.

Discuss this help topic in SecureBlackbox Forum