有关于卷曲的问题
当我输入curl www.google.com终端时,我得到以下回复.但是当我在浏览器(chrome)中键入类似的URL(www.google.com)时,我会被重定向到www.google.co.in
问题是当我从浏览器调用相同的URL时,我无法看到下面的html
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.co.in/">here</A>.
</BODY></HTML>
Run Code Online (Sandbox Code Playgroud)
谢谢你
Ser*_*min 15
curl -L http://www.google.com
Run Code Online (Sandbox Code Playgroud)
将卷曲跟随重定向,您将收到实际的搜索页面.