在这种情况下,URL是否会发送到代理服务器?

Let's say I make a cURL request to http://127.0.0.1/secret.php, having set the cURL options CURLOPT_PROXYTYPE and CURLOPT_PROXY so that it's using a valid, real HTTP proxy server to which I have access and can load any non-localhost URL with successfully.

现在,看来这样的请求失败了,这是有充分的理由的。毕竟,使用代理服务器时,URL转到127.0.0.1可能意味着在代理服务器端出现某种“语法错误”,对吗?但是从理论上讲,代理服务器可能正在运行本地Web服务器,侦听127.0.0.1,那么这将是一个有效的请求吗?

My question is: even though this cURL HTTP request appears to have failed, has the proxy server "seen" my request for http://127.0.0.1/secret.php, even if it didn't process it? Basically, have I revealed the "secret.php" string to a third party by attempting to unsuccessfully load it with a cURL HTTP request using a proxy set in the appropriate cURL options?

我不愿尝试自己弄清楚这个想法,所以我不停地旋转,所以我希望有一个比我聪明的人可以一劳永逸地为我解决这个问题。

评论