Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
442 views
in Technique[技术] by (71.8m points)

curl - 如何获取curl以返回实际的网站数据(How to get curl to return actual website data)

When I go to thelibertydaily.com with a browser, the site information comes in in full.

(当我使用浏览器访问thelibertydaily.com时,站点信息将完整显示。)

When I use curl to get the info, I get this only:

(当我使用curl获取信息时,我只会得到以下信息:)

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

Can someone tell me how to use curl to get the real info from the site?

(有人可以告诉我如何使用curl从网站上获取真实信息吗?)

Thanks

(谢谢)

  ask by William translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...