print transportAgentHttp

Provides the base functions for various transport mechanism. A "transport" is a connection to a remote system for sending messages / events etc. This is the HTTP agent for making GET and POST requests. Connections are made using fsockopen and the response handling will detect chunked responses.

The agent will attempt to re-connect several times before failing.


Methods

protected getConnection()

Returns the http resource, or re-connects if not there

protected httpConnect([$forceConnect = false])

Connects to a remote server via HTTP

protected isConnectionActive()

Returns true if the http connection resource is still connected Only relevant for persistant connections

public buildHeader()

Builds the header of the http request

public sendMessage()

Sends the data over the HTTP connection, check getResponse, getResponseHeader for data

public getHttpProtocol()

Return protocol

public getHttpMethod()

Return http method

public getHttpPersistent()

Return is persistent connection

public getHttpTimeout()

Return timeout

public getHttpPersistentTimeout()

Return persistent connection timeout

public getHttpAuth()

Return http authentication

public getHttpHeader()

Return the message header that matches the message body

public getHttpBody()

Return the message body to be sent


Inherited Methods

<  1  >