免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2147 | 回复: 3
打印 上一主题 下一主题

[proxy] squid 代理刁钻问题,请大虾帮忙 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-11-09 19:05 |只看该作者 |倒序浏览


使用squid代理服务器下载网页时,会将结尾 URL结尾的“.” 去掉,这是个问题,加点与不加点对应的可能是两个不同的页面。比如“http://www3.vyxjib.info.”,去掉结尾点后就是400错误,只有加点才能下载正常。


curl -Iv http://www3.vyxjib.info.
* About to connect() to www3.vyxjib.info. port 80
*   Trying 98.126.84.84... connected
* Connected to www3.vyxjib.info. (98.126.84.84) port 80
> HEAD / HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: www3.vyxjib.info.
> Accept: */*
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Cache-Control: private
Cache-Control: private
< Date: Fri, 09 Nov 2012 11:05:26 GMT
Date: Fri, 09 Nov 2012 11:05:26 GMT
< Content-Length: 27661
Content-Length: 27661
< Content-Type: text/html
Content-Type: text/html
< Server: Microsoft-IIS/6.0
Server: Microsoft-IIS/6.0
< X-Powered-By: ASP.NET
X-Powered-By: ASP.NET
< Set-Cookie: ASPSESSIONIDCAQBBABD=JAOBFDDCKADMEHILJNCOPLMG; path=/
Set-Cookie: ASPSESSIONIDCAQBBABD=JAOBFDDCKADMEHILJNCOPLMG; path=/

* Connection #0 to host www3.vyxjib.info. left intact
* Closing connection #0


curl -Iv http://www3.vyxjib.info
* About to connect() to www3.vyxjib.info port 80
*   Trying 98.126.84.84... connected
* Connected to www3.vyxjib.info (98.126.84.84) port 80
> HEAD / HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: www3.vyxjib.info
> Accept: */*
>
< HTTP/1.1 400 Bad Request
HTTP/1.1 400 Bad Request
< Content-Length: 39
Content-Length: 39
< Content-Type: text/html
Content-Type: text/html
< Date: Fri, 09 Nov 2012 11:05:30 GMT
Date: Fri, 09 Nov 2012 11:05:30 GMT
< Connection: close
Connection: close

* Closing connection #0

论坛徽章:
0
2 [报告]
发表于 2013-01-10 16:37 |只看该作者
请问这个问题解决了吗?
huanliuzu 发表于 2012-11-09 19:05
使用squid代理服务器下载网页时,会将结尾 URL结尾的“.” 去掉,这是个问题,加点与不加点对应的可能是 ...

论坛徽章:
0
3 [报告]
发表于 2013-01-11 14:24 |只看该作者
没有回复 2# maruchen


   

论坛徽章:
224
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:1015-16赛季CBA联赛之四川
日期:2023-07-25 16:53:45操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
4 [报告]
发表于 2013-01-15 14:19 |只看该作者
回复 2# maruchen


    尾巴试试双点..看看啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP