<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HTTP on Time Friend</title><link>https://time-friend.com/en/tags/http/</link><description>Recent content in HTTP on Time Friend</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Wed, 29 Jul 2026 15:15:07 +0800</lastBuildDate><atom:link href="https://time-friend.com/en/tags/http/index.xml" rel="self" type="application/rss+xml"/><item><title>Talking About HTTP X-Forwarded-For and X-Real-IP</title><link>https://time-friend.com/en/archive/talking-about-http-x-forwarded-for-and-x-real-ip/</link><pubDate>Sat, 29 Dec 2018 16:14:25 +0000</pubDate><guid>https://time-friend.com/en/archive/talking-about-http-x-forwarded-for-and-x-real-ip/</guid><description>&lt;p&gt;Recently when looking at &lt;a href="https://binaryify.github.io/NeteaseCloudMusicApi/#/?id=%E8%B0%83%E7%94%A8%E5%89%8D%E9%A1%BB%E7%9F%A5"&gt;NetEase Cloud Music API nodejs&lt;/a&gt; project documentation.&lt;/p&gt;
&lt;p&gt;Found in the calling instructions, there&amp;rsquo;s a section that says:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Due to NetEase restrictions, using this project on foreign servers will be restricted. To solve this, you can use mainland servers or use a proxy. Thanks to @hiyangguo for the solution: add X-Real-IP&amp;rsquo;:&amp;lsquo;211.161.244.70&amp;rsquo; // any domestic IP in the &amp;lsquo;headers&amp;rsquo; section of &amp;lsquo;util.js&amp;rsquo; to solve&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;NetEase Cloud Music API calls have restrictions for foreign countries. To bypass such restrictions, you must modify &lt;code&gt;X-Real-IP&lt;/code&gt; in headers to solve.&lt;/p&gt;</description></item><item><title>Talking About HTTP MIME</title><link>https://time-friend.com/en/archive/talking-about-http-mime/</link><pubDate>Wed, 26 Jul 2017 16:14:25 +0000</pubDate><guid>https://time-friend.com/en/archive/talking-about-http-mime/</guid><description>&lt;h2 id="what-is-mime"&gt;What is MIME?&lt;/h2&gt;
&lt;p&gt;MIME (Multipurpose Internet Mail Extensions) Multipurpose Internet Mail Extensions;&lt;/p&gt;
&lt;p&gt;In the earliest HTTP protocol, there was no additional data type information.&lt;/p&gt;
&lt;p&gt;All transmitted data was interpreted by client programs as HTML documents, and to support multimedia data types, the HTTP protocol used MIME data type information attached before documents to identify data types.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Each MIME type consists of two parts, the front part is the general category of data, such as audio, image, etc., and the back part defines the specific type.&lt;/p&gt;</description></item><item><title>HTTP URI Format Explanation</title><link>https://time-friend.com/en/archive/http-uri-format/</link><pubDate>Tue, 25 Jul 2017 16:14:25 +0000</pubDate><guid>https://time-friend.com/en/archive/http-uri-format/</guid><description>&lt;p&gt;Below are the various components of a URI&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt; Authority Path
 ┌───────────────┴───────────────┐┌───┴────┐
 abc://username:password@example.com:123/path/data?key=value&amp;amp;key2=value2#fragid1
 └┬┘ └───────┬───────┘ └────┬────┘ └┬┘ └─────────┬─────────┘ └──┬──┘
 Protocol User Info Hostname Port Query Params Fragment
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>