如何使用 telnet 从以下网站获取 xml 内容:
http://www.musicbrainz.org/ws/2/artist/?query=artist:fred
这是我尝试过的:
telnet www.musicbrainz.org 80
GET /ws/2/artist/?query=artist:fred
这就是我得到的:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
<head>
<title>403 Forbidden</title>
<link rel="stylesheet" href="/.proxy/httperror.css" type="text/css" />
</head>
<body>
<div id="bg">
<img src="/.proxy/MusicBrainzLogo-stop.png" />
</div>
<h1>Forbidden</h1>
<p>Nothing for you to see here. Please move along.</p>
<p id="http">403 Forbidden</p>
</body>
</html>
Connection closed by foreign host.
这是否意味着我不允许检索内容或我做错了什么?