Back to product page

StateChange method


Called when wodHttpDLX changes its state.

Syntax

  • Basic
object.StateChange  Owner, OldState
The StateChange(object,Owner,OldState) syntax has these parts:
objectAn expression evaluating to an object of type wodHttpNotify.
OwnerRequired. A wodHttpDLXCom object. Reference to wodHttpDLXCom instance that called this notification method.
OldStateRequired. A HttpStates enumeration, as described in settings. Holds previous state.

Remarks

The settings for value are:

Constant Value Description
StateNotConnected0 Not connected.
StateConnecting 1 Connecting to server.
StateConnected2 Connected - idle.
StateSendingHeaders 3 Sending Headers data.
StateSendingBody4 Sending body data.
StateWaitingResponse 5 Waiting for response from the server.
StateReceivingHeaders6 Receiving Headers data.
StateReceivingBody 7 Receiving body data.
StateDisconnecting8 Disconnecting.


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.

This notification method is called every time the wodHttpDLX control changes the current operation that it is performing. Even though most of these operations also result in called other notification methods, the user can monitor this event to see the reason for an operation's completing unsuccessfully, or can ignore other notifications and take appropriate action depending on the wodHttpDLX.State value. Refer 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'.

Platforms

Windows