<?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>HTTP on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/http/</link><description>Recent content in HTTP 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/http/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><item><title>Content-Type in the HTTP Header</title><link>https://www.chenshaowen.com/en/blog/content-type-http-header.html</link><pubDate>Sat, 30 Dec 2017 00:00:00 +0000</pubDate><atom:modified>Sat, 30 Dec 2017 00:00:00 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/content-type-http-header.html</guid><description>1. HTTP Header The HTTP protocol is an application-layer specification built on top of TCP/IP, transmitted as ASCII text. The HTTP specification divides an HTTP request into three parts: the status line, the request headers, and the message body. Something like this:
1 2 3 4 5 &amp;lt;method&amp;gt;&amp;lt;request-URL&amp;gt;&amp;lt;version&amp;gt; &amp;lt;headers&amp;gt; &amp;lt;entity-body&amp;gt; An HTTP header falls into four categories: general headers, request headers, response headers, and entity headers.</description><dc:creator>WeChat Official Account</dc:creator><category>HTTP</category><category>Interface</category><category>Backend</category><category>Protocol</category><category>R&amp;D</category></item></channel></rss>