1

我有一个旧应用程序,它使用 cURL 向服务器发出请求时运行良好,但由于服务器端对 TLS2.1 或更高版本的升级要求,现在无法连接。我正在尝试使用 Caddy 作为转发代理将连接从 http 升级到最新的 https 标准。下载的 Cadde.exe 配置了内置的 ForwardProxy 插件。这是我到目前为止的配置:

球童档案:

http://localhost:4646
forwardproxy

Caddy.exe 成功启动。

尝试了来自应用程序的请求变体,如下所示:

http://localhost:4646/https://www.google.com
https://localhost:4646/https://www.google.com
http://localhost:4646/http://www.google.com
http://localhost:4646/www.google.com

我不确定这些请求中的任何一个是否是转发代理请求的正确语法?

收到的响应是:503 Service Unavailable :(

Hostname was NOT found in DNS cache
Adding handle: conn: 0x2d780f0 
Adding handle: send: 0
Adding handle: recv: 0
Curl_addHandleToPipeline: length: 1

- Conn 0 (0x2d780f0) send_pipe: 1, recv_pipe: 0

  Trying 127.0.0.1...

Connected to localhost (127.0.0.1) port 4646 (#0)

GET /http://www.google.com HTTP/1.1
User-Agent: libcurl-agent/1.0
Host: localhost:4646
Accept: */*


HTTP/1.1 503 Service Unavailable

HTTP/1.1 503 Service Unavailable

Content-Type: text/plain; charset=utf-8

Content-Type: text/plain; charset=utf-8

Retry-After: 3

Retry-After: 3

Server Caddy is not blacklisted

Server: Caddy

Server: Caddy

X-Content-Type-Options: nosniff

X-Content-Type-Options: nosniff

Date: Tue, 03 Jul 2018 22:45:51 GMT

Date: Tue, 03 Jul 2018 22:45:51 GMT

Content-Length: 24

Content-Length: 24

任何帮助将非常感激!

4

0 回答 0