I am trying to retrieve my post request from my rest service using pub.flow:getTransportInfo
When i call my service with a get method, I can retrieve the param from the url inside the pipeline in transport/http/query
But when I try to call the same service but with a post method and input in body, the transport/http/query is null…
Is there any other service or how can I retrieve my input using pub.flow:getTransportInfo?
Yassine Dayski,
getTransportInfo service is to get transport info including URL, context etc., but not payload of the request
GET method query parameters are part of URI, thus it is available in response
POST method actual content is in the body section and that will be not part of getTransportInfo service response
Having said that, you shouldn’t use this service to retrieve payload of incoming request. It will be available in pipeline.