Striim 3.10.1 documentation

HTTP Reader

This reader requires the Oracle JDK (see System requirements).

Listens for HTTP POST requests on the specified port.

See Supported reader-parser combinations) for parsing options.

property

type

default value

notes

Authenticate Client

Boolean

False

Set to True to have the server authenticate the client.

Compression Type

String

Set to gzip when the input is in gzip format. Otherwise, leave blank.

Defer Response

Boolean

False

With the default setting of False, HTTP Reader returns code 200 (success) or 400 (failure) to the client. Set to True to return a custom response defined with HTTP Writer.

Defer Response Timeout

String

5s

When Defer Response is True, the amount of time to wait for HTTP Writer to respond. See HTTP Writer for more details.

IP Address

String

The Striim server binding IP address for the TCP socket. Set to 0.0.0.0 to allow any available network interface.

Keystore

String

Location of the Java keystore file containing the Striim application’s own certificate and private key. If this is blank and a value is specified for keystoretype, an empty keystore is created.

Keystore Password

encrypted password

Provide a password if required to unlock the keystore or to check the integrity of the keystore data. Otherwise, leave blank. See Encrypted passwords.

Keystore Type

String

Set to JKS, JCEKS, or PKCS12 to enable SSL. Otherwise, leave blank.

Port Number

Integer

The TCP socket listening port on the Striim server, typically 80 for HTTP or 443 for HTTPS. This port must not be used by another process. In TQL, the property is portno.

Thread Count

Integer

10

The number of threads to be initialized for handling multiple concurrent HTTP connections. Valid values are 1 to 500.

The output type is WAevent except when using JSONParser.

Sample code using the DSVParser:

CREATE SOURCE HTTPSource USING HTTPReader (
	PortNo:'10000')
PARSE USING DSVParser (
    header:'yes'
)
OUTPUT TO HttpDataStream;

See HTTP Writer for a complete sample application.