hurl/integration/ssl/options.html

26 lines
2.1 KiB
HTML

<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"><span class="method">GET</span> <span class="url">https://localhost:8001/hello</span></span>
<span class="line"><span class="section-header">[Options]</span></span>
<span class="line"><span class="string">insecure</span>: <span class="boolean">true</span></span>
</span><span class="response"><span class="line"></span>
<span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
<span class="line"><span class="string">`Hello World!`</span></span>
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span>
<span class="line"></span>
<span class="line"><span class="method">GET</span> <span class="url">https://localhost:8001/hello</span></span>
<span class="line"><span class="section-header">[Options]</span></span>
<span class="line"></span><span class="comment"># Test that options overridden is possible, last is the winner.</span>
<span class="line"><span class="string">insecure</span>: <span class="boolean">false</span></span>
<span class="line"><span class="string">insecure</span>: <span class="boolean">true</span></span>
</span><span class="response"><span class="line"></span>
<span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
<span class="line"><span class="string">`Hello World!`</span></span>
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span>
<span class="line"></span>
<span class="line"><span class="method">GET</span> <span class="url">https://localhost:8001/hello</span></span>
<span class="line"><span class="section-header">[Options]</span></span>
<span class="line"><span class="string">cacert</span>: <span class="filename">ssl/server/cert.selfsigned.pem</span></span> <span class="comment"># with a custom certificate</span>
</span><span class="response"><span class="line"></span>
<span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
<span class="line"><span class="string">`Hello World!`</span></span>
</span></span></code></pre>