Hi rperseguini,
I can confirm that you have understood the specifications correctly, multiple requests are possible and must be specified in this way, separating the various requests with CR LF characters into the same http command.
I suppose what happens in your tests is that the end-of-line characters are somehow encoded by the http client tool and therefore not correctly recognized by the server, which processes the received request as a single one.
This is the test I run with cURL client in linux env (and worked as expected):
Code:
curl -v -N -X POST -d "LS_cid=mgQkwtwdysogQz2BJ4Ji+kOj2Bg&LS_adapter_set=DEMO" http://push.lightstreamer.com/lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
curl -v -N -X POST --data $'LS_reqId=4&LS_op=add&LS_subId=4&LS_group=item4&LS_schema=stock_name+last_price+time+bid+ask&LS_data_adapter=QUOTE_ADAPTER&LS_mode=MERGE&LS_session=S52d7edf672d5067aM14aT1911842\r\nLS_reqId=5&LS_op=add&LS_subId=5&LS_group=item5&LS_schema=stock_name+last_price+time+bid+ask&LS_data_adapter=QUOTE_ADAPTER&LS_mode=MERGE&LS_session=S52d7edf672d5067aM14aT1911842' http://push.lightstreamer.com/lightstreamer/control.txt?LS_protocol=TLCP-2.1.0
Regards,
Giuseppe
Bookmarks