<%= currently_importing "post" %>
<div class="row">
<div class="col-sm-12">
<legend>Upload via HTTP POST</legend>
<p>
Benchmark data are required to be sent using POST method.
Both <strong>x-www-form-urlencoded</strong> and <strong>JSON</strong>
content types are supported. Example <strong>curl</strong> parameters:
</p>
</div>
<div class="col-xs-12 col-lg-6">
<pre>
curl '<%= push_imports_url %>' \
--compressed \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'import={"timestamp": "2013-06-25T10:30:03Z","configuration": ... }'
</pre>
</div>
<div class="col-xs-12 col-lg-6">
<pre>
curl '<%= push_imports_url %>' \
--compressed \
-H 'Content-Type: application/json' \
--data '{"timestamp": "2013-06-25T10:30:03Z","configuration": ... }'
</pre>
</div>
</div>