2014-01-08 131 views
0

我正在阅读symfony1.4的文档,因为我需要了解它是由于遗留代码。在某些时候,文件说:Url下载Symfony1.4配置返回检查器401:需要授权

Then, download the symfony configuration checker script at the following URL: 

所以我试图运行

$ curl -d "" http://sf-to.org/1.4/check.php 

我收到的消息:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
<html><head> 
<title>301 Moved Permanently</title> 
</head><body> 
<h1>Moved Permanently</h1> 
<p>The document has moved <a href="http://svn.symfony-project.com/branches/1.4/data/bin/check_configuration.php">here</a>.</p> 
</body></html> 

于是,我试着运行

$ curl -d "" http://svn.symfony-project.com/branches/1.4/data/bin/check_configuration.php 

得到此错误:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
<html><head> 
<title>401 Authorization Required</title> 
</head><body> 
<h1>Authorization Required</h1> 
<p>This server could not verify that you 
are authorized to access the document 
requested. Either you supplied the wrong 
credentials (e.g., bad password), or your 
browser doesn't understand how to supply 
the credentials required.</p> 
</body></html> 

回答

2

在我看来这是最好用的symfony的Git仓库:

https://github.com/symfony/symfony1

check_configuration.php文件可以在这里找到:

https://github.com/symfony/symfony1/blob/1.4/data/bin/check_configuration.php

,或者如果你想只是文件内容:

https://raw.github.com/symfony/symfony1/1.4/data/bin/check_configuration.php

+0

是的。但链接不起作用,因为还没有支持该版本的Symfony。 – sensorario

+0

我不明白。哪个链接不起作用? –

相关问题