在mihomo的HTTP协议的headers功能中,增加类似tiny或Tinyproxy的http_del与http_first功能
Verification Steps
- I have read the documentation and confirmed that this feature is not implemented
- I have searched for the feature request I want to propose in the Issue Tracker and did not find it
- I am a non-Chinese user.
Description
我发现mihomo关于http协议的功能不太完善,主要是以下几点意见,希望大佬们能优化http协议增加新功能。
①.没有类似tiny与Tinyproxy的http_del功能,删除请求头的Host、X-Online-Host、User-Agent、X-T5-Auth等请求。
②.没有类似https_first的功能:[M] [H] [U] [V] [M] 代表 Method(HTTP 方法),比如 CONNECT、method、GET、POST。 [H] 代表 Host(真实地址主机名),比如 example.com:443。 [U] 代表URL 的路径部分(比如 /index.html 或 /api/data),拼在 http://[H] 后面构成完整的请求地址。 [V] 代表 Version(HTTP 版本),比如 HTTP/1.1。
③.没有详细的区分http协议与https协议,mihomo的http与https是共用一个ip与端口,tiny的http与https可以各自选择不同的ip与端口,我下面用tiny举例,比如:
http_ip=10.0.0.172; http_port=80; http_del="Host,X-Online-Host"; http_first="[M] [U] [V]\r\nHost: [H]\r\nX-Online-Host: www.baidu.com\r\n";
https_connect=on; https_ip=10.0.0.200; https_port=443; https_del="Host,X-Online-Host"; https_first="[M] [H] [V]\r\nHost: www.baidu.com\r\n";
④.在tiny中还能增加\r、\n、\t、@等符号对[H]的干扰,希望mihomo也能增加这个功能,比如: http_first="[M] [U] [V]\r\nG\rHost: [H]\r\n";
http_first="[M] [U] [V]\r\nHost\n: \t[H]\r\n";
http_first="[M] [U] [V]\r\nG\rHost: [H]@www.baidu.com\r\n";
请求头另外的写法补充,比如: http_first="[method] [uri] HTTP/1.1\r\nHost: [host]\r\n"; https_first="CONNECT http://www.baidu.com HTTP/1.1\r\nHost: [host]\r\n";
希望mihomo的大佬们增加下这些功能,我每次想用关于http协议的这些功能时,还需要去找tiny或Tinyproxy非常麻烦,如果mihomo能集成这些功能就太好了太方便了。
Source: MetaCubeX/mihomo