<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>curl on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/curl/</link><description>Recent content in curl on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Thu, 14 May 2020 00:00:00 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/curl/atom.xml" rel="self" type="application/rss+xml"/><item><title>Advanced curl Usage</title><link>https://www.chenshaowen.com/en/blog/the-advanced-usage-of-curl.html</link><pubDate>Thu, 14 May 2020 00:00:00 +0000</pubDate><atom:modified>Thu, 14 May 2020 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/the-advanced-usage-of-curl.html</guid><description>1. RESTful Requests 1 curl -X POST --data &amp;#39;keyword=value&amp;#39; http://domain.com/mypath/ After -X you can also use DELETE, PUT, and so on.
2. Adding Headers 1 curl -H &amp;#39;Content-Type:application/json&amp;#39; -H &amp;#39;Authorization: bearer MyToken&amp;#39; http://domain.com/mypath/ 3. Basic Authentication 1 curl -u username:password http://domain.com/mypath/ 4. Download and Execute 1 curl -sSL http://domain.com/my.sh | bash 5.</description><dc:creator>WeChat Official Account</dc:creator><category>curl</category><category>Command Line</category><category>Tips</category><category>Operations</category><category>Learning</category><category>HTTP</category><category>API</category><category>Debugging</category><category>Network</category></item></channel></rss>