To publish data to a Sybase CEP data stream, perform an HTTP POST request to the Sybase CEP Server.
The HTTP POST request must include the following HTTP header and an infinite HTTP body with data in the specified data stream format:
POST <path> HTTP/1.0\r\n Host: <server-hostname-or-ip>\r\n X-C8-StreamFormat: <stream-format>\r\n X-C8-StreamFormatOptions: <stream-format-options>\r\n \r\n <data-in-specfied-data-stream-format>
where
<path> is the path portion of the Stream URI.
<server-hostname-or-ip> is the hostname portion of the Stream URI.
<stream-format> is the data stream format (CSV or XML).
<stream-format-options> is the format specific options. If the stream-format-options are omitted, the format defaults to binary.
The publisher should expect no response on the HTTP request it sends. When done publishing data, the publisher should close the TCP connection.
For example, the following HTTP request publishes trading information in CSV format to /Stream/Default/Finance/StreamIn
POST /Stream/Default/Finance/StreamIn HTTP/1.0\r\n Host: localhost\r\n X-C8-StreamFormat: CSV\r\n X-C8-StreamFormatOptions: TitleRow=true,TimestampColumn=true, TimestampColumnFormat=YYYY/MM/DD HH24:MI:SS\r\n \r\n Timestamp,Symbol,Price,Volume\r\n "2005/01/28 10:23:54",ABC,11.40,300000\r\n "2005/01/28 10:23:55",XYZ,32.84,1260000\r\n "2005/01/28 10:24:06",XYZ,32.74,6300000\r\n "2005/01/28 10:24:32",ABC,12.01,50000\r\n ...