尝试编写功能性PHP脚本来检测charset检索网页。 我的脚本有效,但如果我为webtrh.cz/66997-fakturace-ramci-dph?p=416206输入get_headers()
get_headers(http://webtrh.cz/66997-fakturace-ramci-dph?p=416206);
结果: get_headers()[function.get-headers]:达到重定向限制,中止。在/home/www/tcladin.cz/subdomains/www/include/funkce.php第583行 警告:get_headers(http://webtrh.cz/66997-fakturace-ramci-dph?p=416206)[function.get-headers]:无法打开流:第583行/home/www/tcladin.cz/subdomains/www/include/funkce.php中的操作正在进行中< / p>
get_headers用于测试网址
我只收到来自 webtrh.cz 的页面的类似错误 同样,充当函数get_meta_tags()。
“功能”脚本为http://tcladin.cz/pokus/charset.php 关于捷克论坛的更多细节diskuse.jakpsatweb.cz/?action=vthread&forum=9&topic=104412,遗憾的是我没有答案
答案 0 :(得分:0)
此网站已损坏,因为您的客户端功能无法处理将继续重定向到自身的会话ID。使用完全成熟的HTTP客户端。
HEAD -eS http://webtrh.cz/66997-fakturace-ramci-dph?p=416206
HEAD http://webtrh.cz/66997-fakturace-ramci-dph?p=416206 --> 301 Moved Permanently
HEAD http://webtrh.cz/66997-fakturace-ramci-dph?s=6e10b6d98d94e570cce1267cff4cbefb&p=416206 --> 301 Moved Permanently
HEAD http://webtrh.cz/66997-fakturace-ramci-dph?s=8989dd7c5daad97e23ca77b1ccadde06&s=6e10b6d98d94e570cce1267cff4cbefb&p=416206 --> 301 Moved Permanently
HEAD http://webtrh.cz/66997-fakturace-ramci-dph?s=a3defbb086f1810cc45df07b6669b961&s=8989dd7c5daad97e23ca77b1ccadde06&s=6e10b6d98d94e570cce1267cff4cbefb&p=416206 --> 301 Moved Permanently
HEAD http://webtrh.cz/66997-fakturace-ramci-dph?s=111a329fc1632272a0403db172579199&s=a3defbb086f1810cc45df07b6669b961&s=8989dd7c5daad97e23ca77b1ccadde06&s=6e10b6d98d94e570cce1267cff4cbefb&p=416206 --> 301 Moved Permanently
HEAD http://webtrh.cz/66997-fakturace-ramci-dph?s=318e7bc7ab78e5a2f96acddd6f84147c&s=111a329fc1632272a0403db172579199&s=a3defbb086f1810cc45df07b6669b961&s=8989dd7c5daad97e23ca77b1ccadde06&s=6e10b6d98d94e570cce1267cff4cbefb&p=416206 --> 301 Moved Permanently
HEAD http://webtrh.cz/66997-fakturace-ramci-dph?s=7679f6fbe731aef1ccfbc9550535bc9c&s=318e7bc7ab78e5a2f96acddd6f84147c&s=111a329fc1632272a0403db172579199&s=a3defbb086f1810cc45df07b6669b961&s=8989dd7c5daad97e23ca77b1ccadde06&s=6e10b6d98d94e570cce1267cff4cbefb&p=416206 --> 301 Moved Permanently
HEAD http://webtrh.cz/66997-fakturace-ramci-dph?s=427b87ff88b92928bc96f3464c64411f&s=7679f6fbe731aef1ccfbc9550535bc9c&s=318e7bc7ab78e5a2f96acddd6f84147c&s=111a329fc1632272a0403db172579199&s=a3defbb086f1810cc45df07b6669b961&s=8989dd7c5daad97e23ca77b1ccadde06&s=6e10b6d98d94e570cce1267cff4cbefb&p=416206 --> 301 Moved Permanently
Cache-Control: private, post-check=0, pre-check=0, max-age=0
Connection: close
Date: Tue, 29 Dec 2009 15:48:47 GMT
Pragma: no-cache
Location: http://webtrh.cz/66997-fakturace-ramci-dph?s=39c9ebd344b1a1b473fcba1dcaab38f8&s=427b87ff88b92928bc96f3464c64411f&s=7679f6fbe731aef1ccfbc9550535bc9c&s=318e7bc7ab78e5a2f96acddd6f84147c&s=111a329fc1632272a0403db172579199&s=a3defbb086f1810cc45df07b6669b961&s=8989dd7c5daad97e23ca77b1ccadde06&s=6e10b6d98d94e570cce1267cff4cbefb&p=416206
Server: Apache/2.2.3 (CentOS)
Content-Type: text/html; charset=UTF-8
Expires: 0
Client-Date: Tue, 29 Dec 2009 15:48:17 GMT
Client-Response-Num: 1
Client-Warning: Redirect loop detected (max_redirect = 7)
Set-Cookie: bbsessionhash=39c9ebd344b1a1b473fcba1dcaab38f8; path=/; domain=.webtrh.cz; HttpOnly
Set-Cookie: bblastvisit=1262101727; expires=Wed, 29-Dec-2010 15:48:47 GMT; path=/; domain=.webtrh.cz
Set-Cookie: bblastactivity=0; expires=Wed, 29-Dec-2010 15:48:47 GMT; path=/; domain=.webtrh.cz
X-Powered-By: PHP/5.1.6
X-UA-Compatible: IE=7