防止鱿鱼更改HTTP标头

时间:2018-09-17 12:37:08

标签: http get squid

我对鱿鱼3.5.21版有问题,希望有人可以帮助我。不幸的是,我找不到合适的解决方案。

当我通过curl而没有鱿鱼访问http://www.google.de时,http标头如下所示:

curl -v http://www.google.de
* Rebuilt URL to: http://www.google.de/
* Hostname was NOT found in DNS cache
*   Trying 172.217.17.67...
* Connected to www.google.de (172.217.17.67) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.37.0
> Host: www.google.de
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Mon, 17 Sep 2018 12:32:19 GMT
...

使用鱿鱼时,它看起来像这样:

curl -x http://127.0.0.1:3128 -v http://www.google.de
* Rebuilt URL to: http://www.google.de/
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 3128 (#0)
> GET http://www.google.de/ HTTP/1.1
> User-Agent: curl/7.37.0
> Host: www.google.de
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 OK
< Date: Mon, 17 Sep 2018 12:19:22 GMT
...

GET似乎已被重写。现在,Internet中的某些服务会阻止请求,并在GET请求中提供完整的URL。

如何配置鱿鱼(如果可能)以使GET不受影响?

提前谢谢!

关于马蒂亚斯

0 个答案:

没有答案