鱿鱼问题 - 需要代理验证
问题描述:
我有网站请求使用代理(转发代理)到网站可以说www.example.com这个网站有反向代理(Squid),结果我所有的请求都返回为MISS。 有什么方法可以使用转发代理和检索数据?鱿鱼问题 - 需要代理验证
请理解,我是这方面的新手。
阅读过了一会儿,我没有设定兑现,这是我得到的
这是请求
Command: GET
URI: http://www.example.com
ProtocolVersion: HTTP/1.1
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Referer: http://www.example.com
Accept: */*
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip,deflate
Accept-Language: en-us,en;q=0.5
Keep-Alive: 115
X-Requested-With: XMLHttpRequest
X-Prototype-Version: 1.7
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Host: www.example.com
Cookie:
PHPSESSID: 249477191de6048739cd8690fabd6060
UTG: A-3345389704b26912f6d5422.73487509-0a3a0a26a100a113a119a24a1a4a77a7a6a
addOtr: 7L4L2
CLIENT_WIDTH: 1916
MAIN_WIDTH: 1726
Cache-Control: no-store,no-cache
Pragma: no-cache
ProxyConnection: Keep-Alive
HeaderEnd: CRLF
这是响应
ProtocolVersion: HTTP/1.0
StatusCode: 407, Proxy authentication required
Reason: Proxy Authentication Required
Server: squid/3.0.STABLE19
Mime-Version: 1.0
Date: Mon, 31 Jan 2011 19:04:44 GMT
ContentType: text/html
ContentLength: 2986
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
ProxyAuthenticate: Basic realm="Anonymous proxy"
Authenticate: Basic realm="Anonymous proxy"
X-Cache: MISS from funky
X-Cache-Lookup: NONE from funky:2448
Via: 1.0 funky (squid/3.0.STABLE19)
ProxyConnection: close
HeaderEnd: CRLF
在此先感谢
答
您需要设置您的到期日期。
试着改变你的过期,缓存控制,和附注看起来是这样的:
缓存控制:最大年龄= 300 日期:星期五,2011年2月4日4点52分58秒GMT 过期:周五,2011年2月4日四点57分58秒GMT ...
(删除附注您可以通过编辑您的.htaccess文件做到这一点)
你能解释实际问题是什么?没有理由不能使用连接到反向代理的转发代理。事实上,你甚至不应该注意到反向代理。你想做什么,错误是什么? – dicato 2011-01-31 02:27:45
O.K我正在用代理访问网页,而不是获得有效的响应获取302临时移动响应标题我看到使用了鱿鱼,其中一个标题(我不记得哪一个)包含MISS。我不得不说,当我不使用代理响应是有效的。 – Robob 2011-01-31 07:37:30