mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 11:32:00 +03:00
bf79a512e0
hurlfmt now also outputs a trailing newline.
13 lines
983 B
HTML
13 lines
983 B
HTML
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"></span><span class="comment"># Test body response with line ending LF and CRLF.</span>
|
|
<span class="line"></span><span class="comment"># We receive the text body "line1\nline2\r\nline3\n"</span>
|
|
<span class="line"></span><span class="comment">#</span>
|
|
<span class="line"></span><span class="comment"># $ printf "line1\nline2\r\nline3\n" | base64</span>
|
|
<span class="line"></span><span class="comment"># bGluZTEKbGluZTINCmxpbmUzCg==</span>
|
|
<span class="line"></span>
|
|
<span class="line"></span>
|
|
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/assert-base64</span></span>
|
|
</span><span class="response"><span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span>
|
|
<span class="line">base64,<span class="base64">bGluZTEKbGluZTINCmxpbmUzCg==</span>;</span>
|
|
</span></span><span class="line"></span>
|
|
</code></pre>
|