我已经在 CentOS 7 机器上安装了 tinyproxy,并在 tinyproxy.conf 中将端口更改为 8080 无论我在哪里点击请求,我都会在 tinyproxy.log 中得到以下日志:-
CONNECT Mar 15 08:14:42 [22148]: Connect (file descriptor 6): <IP> [<IP>]
NOTICE Mar 15 08:14:42 [22148]: Unauthorized connection from "<IP>" [<IP>].
INFO Mar 15 08:14:42 [22148]: Read request entity of 1200 bytes
Run Code Online (Sandbox Code Playgroud)
我的请求正在到达代理,代理没有将其转发到目的地。
我使用下面的代码来获取coldfusion中的当前页面URL: -
host = structKeyExists(cgi,'http_host') ? cgi.http_host : '';
req_url = 'https://' & host & cgi.script_name;
Run Code Online (Sandbox Code Playgroud)
但是在req_url参数中,我得到host_name/index.cfm而不是当前页面URL.我在referrer中获得了实际的URL.请告诉我如何获取coldfusion中的当前页面URL.