Curl verbose supress certain details
<p>I am writing a shell script in which i save curl output to a variable. I have certains attributes in my url which I dont want to be printed in logs. But I want to print verbose output of curl to logs so I can see the complete flow of my call.</p>

<p>my current command</p>

<pre><code>STATUSCODE=$(curl -v -o /dev/null -w "%{http_code}\n" "$API$TOKEN")
</code></pre>

<p>due to above command it prints verbose output but print token in logs which I want it to supress.</p>