修改系统级别的http标头(Linux) [英] Modify http headers on system level (Linux)
问题描述
我想在Firefox中添加http标头(使用修改标头插件),但在系统级别。由于我无法在skype的请求中添加标头,例如,或者在IDE中,我需要系统中的单个点来添加此标头。在Linux中有可能吗?
I want to add http header not just in firefox (using "Modify headers" plugin), but on system level. Since I can't add headers in skype's request, for example, or in IDE's, I need a single point in system to add this header. Is it possible in Linux?
P.S。想要关闭这个问题的聪明人:你能把你的智能评论吗?
P.S. "Smart" guys who want to close the question: can you put your smart comments?
推荐答案
你可以重定向所有传出的HTTP请求到代理,并让该代理(例如 Squid )添加标题。
You could redirect all outgoing HTTP requests to a proxy, and have that proxy (e.g. Squid) add the headers.
将所有请求重定向到80端口(即默认HTTP端口)可以通过系统范围的 iptables
技巧完成(但这很恶心) )。
Redirecting all requests to a 80 port (i.e. the default HTTP port) can be done by system-wide iptables
tricks (but this is disgusting).
这篇关于修改系统级别的http标头(Linux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!