#!/bin/sh
# simple curl to cpi-core, set content types, timeout is 1800 s i.e 30 mins
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -m 1800 http://<%= p('cpi.host') %>:<%= p('cpi.port') %>/cpi -d @-

#!/bin/sh
# simple curl to cpi-core, set content types, timeout is 1800 s i.e 30 mins
curl -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -m 1800 http://<%= p('cpi.host') %>:<%= p('cpi.port') %>/cpi -d @- | /var/vcap/sys/log/cpi/curlout.log

FIX : add silent flag (-s) to curl, capture stdout with tee to a log file
FIX : add silent flag (-s) to curl, capture stdout with tee to a log
file