title: Sending raw body with httpie in http-prompt
body: <p>HTTPie fills the request's body with stdin, so it's easy to send raw text or JSON with <code>echo '{...}' | http POST example.com</code> like here: <a href="https://stackoverflow.com/questions/37215565/sending-nested-json-object-using-httpie">Sending nested JSON object using HTTPie</a>.</p>
  
  <p><a href="http://docs.http-prompt.com/en/latest/user-guide.html" rel="nofollow noreferrer"><code>http-prompt</code></a> is a handy CLI interface for http and it allows setting body parameters like this:</p>
  
  <pre><code>&gt; user=foo
  </code></pre>
  
  <p>or also in raw JSON:</p>
  
  <pre><code>&gt; user:=foo
  </code></pre>
  
  <p>Which set the body to <code>{"user": "foo"}</code> upon sending.</p>
  
  <p>But how can I send string <code>{"user": "foo"}</code> as the body directly?</p>
  
  <ol>
  <li>As a text like <code>echo '{"user": "foo"}' | http POST http://example.com</code></li>
  <li>As a file like <code>curl --data '@/path/to/file' http://example.com</code></li>
  </ol>