snipt

Ctrl+h for KB shortcuts
Sign up for : store and share your own code snippets.
#53893

Bash

Get response headers from POST request with curl

curl -s -d 'test=test' -D- www.google.com -o/dev/null
https://snipt.net/embed/ff9964a6872571066ed5cc4c13f1674a/
https://snipt.net/raw/ff9964a6872571066ed5cc4c13f1674a/
ff9964a6872571066ed5cc4c13f1674a
bash
Bash
1
2015-04-25T00:08:08
True
False
Jan 17, 2013 at 10:26 AM
/api/public/snipt/53893/
get-response-headers-from-post-request-with-curl
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>curl -s -d <span class="s1">&#39;test=test&#39;</span> -D- www.google.com -o/dev/null </span></pre></div> </td></tr></table>
bash, curl, headers, post
Copyrighted, illegal, or inappropriate content? Email nick@snipt.net.