Send unserialized & unescaped HTML file data to an API with a bash script
问题 I wanted to create a bash script that takes an HTML file and sends it to several APIs. I have a test.html file with unserialized HTML data like this: <h2 id="overview">Overview</h2> <p>Have the source of truth in your own space at <strong>somewhere</strong></p> <pre> <code class="lang-javascript">function go() { console.log('code blocks can be a pain'); } go(); </code> </pre> I need to send the content of the file somehow to an API, like this: curl --location --request POST 'https://devo.to