Discuss this help topic in SecureBlackbox Forum

TElHTTPTSPClient.OnHTTPError

TElHTTPTSPClient     See also     


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


This Event if fired when an error occurs during HTTP protocol flow.

Declaration

[C#]
    event TSBHTTPTSPErrorEvent OnHTTPError;
    delegate void TSBHTTPTSPErrorEvent(Object Sender, int ResponseCode);

[VB.NET]
    Event OnHTTPError As TSBHTTPTSPErrorEvent
    Delegate Sub TSBHTTPTSPErrorEvent(ByVal Sender As Object, ByVal ResponseCode As Integer)

[Pascal]
    property OnHTTPError : TSBHTTPTSPErrorEvent;
    TSBHTTPTSPErrorEvent = procedure (Sender : TObject; ResponseCode : integer) of object;

[C++]
    void get_OnHTTPError(TSBHTTPTSPErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnHTTPError(TSBHTTPTSPErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBHTTPTSPErrorEvent)(void * _ObjectData, TObjectHandle Sender, int32_t ResponseCode);

[PHP]
    TSBHTTPTSPErrorEvent|callable|NULL get_OnHTTPError()
    void set_OnHTTPError(TSBHTTPTSPErrorEvent|callable|NULL $Value)
    callable TSBHTTPTSPErrorEvent(TObject $Sender, integer $ResponseCode)

[Java]
    TSBHTTPTSPErrorEvent getOnHTTPError();
    void setOnHTTPError(TSBHTTPTSPErrorEvent Value);
    TSBHTTPTSPErrorEvent.Callback OnHTTPError = new TSBHTTPTSPErrorEvent.Callback() {
        public void TSBHTTPTSPErrorEventCallback(TObject Sender, int ResponseCode) {
            //...
        }
    }

Parameters

  • ResponseCode - contains server response code.

Description

    This event is fired when the component receives response code other than 200 from the server. It allows to track errors that happen during HTTP request to the remote server.

See also:     HTTPClient    

Discuss this help topic in SecureBlackbox Forum