如果您使用浏览器访问 www.sketchfemme.com,您将获得(查看源代码):
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>SketchFemme Feature of the Day</title>
.....
<link href="/featured.rss" rel="alternate" title="SketchFemme Feature of the Day" type="application/rss+xml" />
</head>
但是如果我执行此命令,则从 mac 终端:
curl sketchfemme.com -A "Mozilla/4.0" --trace-ascii - -L
我取回了 rss 文件的 xml 内容。
我期待使用 curl 命令查看 HTML,为什么我要返回 XML?