V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
tzp
V2EX  ›  Python

怎么配置 squid 对于 connect 访问定向

  •  
  •   tzp · 2016-08-06 08:50:07 +08:00 · 1458 次点击
    这是一个创建于 2831 天前的主题,其中的信息可能已经有所发展或是发生改变。

    怎么配置 squid 对于 connect 访问定向

    例如: connect www.baidu.com:443 [例子] ***(会有其它东西) www.2bbaidu.com [例子] HTTP/1.1\r\n 到 squid 代理服务器

    代理服务器会用 www.2bbaidu.com 帮我们去访问而不会使用 www.baidu.com 呢?

    A :客户端
    B : squid 代理服务器
    C :源服务器

    A 发送 connect 请求到 B---> B 根据 A 的 connect 请求内容 [例子] ,向 C 发送 www.2bbaidu.com [例子] .--->C 根据 B 的请求返回相应内容--->B 再将内容返回 A.

    查了下可以用 python,但自己不会这个,只会点 C 语言。 这有个例子: http://ju.outofmemory.cn/entry/94190

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3523 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:34 · PVG 19:34 · LAX 04:34 · JFK 07:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.