Skip to Content
0
Aug 12, 2015 at 01:24 PM

Can ESP Web Service Provider retrieve events via GET request?

30 Views

Dear Colleagues,

When an ESP project is web service enabled, we can use REST request to publish data to the ESP stream or a window, according to the document, it is POST request

http://help.sap.com/saphelp_esp_51sp10_adapt/helpdata/en/e7/8c81876f0f1014b6ce8606de2b809b/content.htm


In the POST request body, there are 2 parts: ‘connectionDetails’ with credentials, and ‘content’ with the actual event data.


My question is: is it possible to publish data to the input stream or window via GET request?

With GET request, there is no request body, the event data that shall be published to ESP will appear as parameters:

http://host:9091/espws/restservice/stream/window1?action=insert&workspace=default&project=project1&att1=’1’&att2=’2’&...

This is a valid use case, because during our research on the web tracking, we found out there is a new way of tracking, so called tracking pixels, a technique to avoid JavaScript in the browser, whereby the tracked data is encoded as URL parameters of the request. So only GET request can be sent in this case.


Do you have experience with similar issues? We appreciate greatly your help.

Best regards,

Tao