wodHttpDLX ActiveX Control - StateChange Method
      
 

Description

Called when wodHttpDLX changes its state.


Return Type

None  


Syntax

object.StateChange Owner, OldState



The StateChange Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodHttpNotify.
Owner Required. A wodHttpDLXCom object. Reference to wodHttpDLXCom instance that called this notification method.
OldState Required. 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

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'.