用于下载配置的URL的Symfony1.4检查器返回401:需要授权

时间:2014-01-08 11:13:41

标签: symfony1 symfony-1.4

我正在阅读symfony1.4的文档,因为遗留代码我要学习它。在某些时候,文件说:

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>

1 个答案:

答案 0 :(得分: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