From: dglFromAtt Date: Tue, 26 Mar 2019 01:16:17 +0000 (+0000) Subject: Silent post to get respnse code X-Git-Tag: 1.1.1~2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fbuscontroller.git;a=commitdiff_plain;h=dc44857cadaf134c3deb36e1ae43be71198e82f0;hp=7e4724fa6bdf1d759eff9d5727addd5b59402c52 Silent post to get respnse code Change-Id: Id76713331c17122b76f4cc64aa5fb823c04f9050 Signed-off-by: dglFromAtt Issue-ID: DMAAP-1120 --- diff --git a/dbc-client/misc/dbc-client b/dbc-client/misc/dbc-client index a7317fa..8df970c 100644 --- a/dbc-client/misc/dbc-client +++ b/dbc-client/misc/dbc-client @@ -91,9 +91,9 @@ dopost() { loop=true - while [ $loop ] + while [ $loop = true ] do - rc=`curl -v -X POST -w "%{http_code}" -H "X-ECOMP-RequestID: $REQUESTID" -H "Content-Type: application/json" -d @${1} ${PROTO}://${DBC}:${PORT}/webapi/${2}` + rc=`curl -s -X POST -w "%{http_code}" -H "X-ECOMP-RequestID: $REQUESTID" -H "Content-Type: application/json" -d @${1} ${PROTO}://${DBC}:${PORT}/webapi/${2} -o /dev/null` case $rc in 200 | 201 | 409 ) echo "response=$rc"