<story><title>--libcurl</title><url>https://everything.curl.dev/libcurl/libcurl</url></story><parent_chain><item><author>nindalf</author><text>One pattern I really like is opening the networks tab of the browser, finding the request I&amp;#x27;m interested in and &amp;quot;copying as curl&amp;quot; - the browser generates the equivalent command in curl.&lt;p&gt;Then I&amp;#x27;d use something like &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;curlconverter.com&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;curlconverter.com&amp;#x2F;&lt;/a&gt; to convert it into request code of the language I&amp;#x27;m using.&lt;p&gt;In a way curl is like the &amp;quot;intermediate representation&amp;quot; that we can use to translate into anything.</text></item></parent_chain><comment><author>gullywhumper</author><text>For R users, the httr2 package (a recent rewrite of httr) has a function that translates the copy as curl command to a request:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;httr2.r-lib.org&amp;#x2F;reference&amp;#x2F;curl_translate.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;httr2.r-lib.org&amp;#x2F;reference&amp;#x2F;curl_translate.html&lt;/a&gt;</text></comment>
<story><title>--libcurl</title><url>https://everything.curl.dev/libcurl/libcurl</url></story><parent_chain><item><author>nindalf</author><text>One pattern I really like is opening the networks tab of the browser, finding the request I&amp;#x27;m interested in and &amp;quot;copying as curl&amp;quot; - the browser generates the equivalent command in curl.&lt;p&gt;Then I&amp;#x27;d use something like &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;curlconverter.com&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;curlconverter.com&amp;#x2F;&lt;/a&gt; to convert it into request code of the language I&amp;#x27;m using.&lt;p&gt;In a way curl is like the &amp;quot;intermediate representation&amp;quot; that we can use to translate into anything.</text></item></parent_chain><comment><author>elaus</author><text>curlconverter.com looks amazing, instant bookmark – thanks!&lt;p&gt;I also use the browser&amp;#x27;s &amp;#x27;copy as curl&amp;#x27; function quite frequently as it&amp;#x27;s so convenient, having all auth and encoding headers set to _definitely_ work (instead of messing around with handmade, multi-line curl command lines)</text></comment>