我有一个旧应用程序,使用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服务不可用:(
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
任何帮助将不胜感激!