wodHttpDLX ActiveX Control - StateChange Event
    
 

Description

Fires when wodHttpDLX changes its state.


Syntax

Private Sub object_StateChange(OldState)



The StateChange Event syntax has these parts:

Part Description
object A wodHttpDLX object.
OldState A HttpStates enumeration, as described in settings. Holds previous state.

Settings

The settings for OldState are:

Constant Value Description
 StateNotConnected 0 Not connected.
 StateConnecting 1 Connecting to server.
 StateConnected 2 Connected - idle.
 StateSendingHeaders 3 Sending Headers data.
 StateSendingBody 4 Sending body data.
 StateWaitingResponse 5 Waiting for response from the server.
 StateReceivingHeaders 6 Receiving Headers data.
 StateReceivingBody 7 Receiving body data.
 StateDisconnecting 8 Disconnecting.

Remarks

This event is fired every time the wodHttpDLX control changes the current operation that it is performing. Even though most of these operations also result in firing other events, the user can monitor this event to see the reason for an operation's completing unsuccessfully, or can ignore other events and take appropriate action depending on the wodHttpDLX.State value. Refer also to the here for a list of possible states.

If AutoRedirect property is set to True, it is possible that wodHttpDLX sends more than one request based on your URL. This depends purely on server's responses. In such cases, state changes may vary and may look as 'out of sequence'.