hurl/integration/tests_failed/assert_base64.html

15 lines
1.1 KiB
HTML
Raw Normal View History

2021-09-21 07:36:53 +03:00
<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"># and not "line1\nline2\nline3\n"</span>
<span class="line"></span>
<span class="line"></span><span class="comment">#</span>
<span class="line"></span><span class="comment"># $ printf "line1\nline2\nline3\n" | base64</span>
<span class="line"></span><span class="comment"># bGluZTEKbGluZTIKbGluZTMK</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>
2022-11-11 16:25:00 +03:00
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
2021-09-21 07:36:53 +03:00
<span class="line">base64,<span class="base64">bGluZTEKbGluZTIKbGluZTMK</span>;</span>
</span></span><span class="line"></span>
</code></pre>