Linux命令之curl

來源:互聯網
上載者:User

標籤:domain   linux   資訊   

   在Linux中crul是一個強大的http命令列工具,支援文檔的上傳和下載,是一個綜合傳輸工具。

文法:curl [選項] URL

常見參數:

-I:顯示文檔資訊

curl -I http://www.hexing516.com/

HTTP/1.1 200 OK

Date: Mon, 20 Mar 2017 04:10:10 GMT

Content-Type: text/html

Connection: keep-alive

Set-Cookie: __cfduid=da352f5ea34da80d4c960a34b4a36ace51489983010; expires=Tue, 20-Mar-18 04:10:10 GMT; path=/; domain=.hexing516.com; HttpOnly

Last-Modified: Thu, 19 May 2016 02:51:13 GMT

Vary: Accept-Encoding

X-Powered-By: ASP.NET

X-Safe-Firewall: zhuji.360.cn 1.0.9.47 F1W1

Server: yunjiasu-nginx

CF-RAY: 3425d1f554df38f5-FUO


-O:儲存網頁中的檔案(需要指明具體的頁面)

curl -O http://www.cnblogs.com/duhuo/p/5695256.html


-i:輸出時包括protocol頭資訊

curl -i www.baidu.com


-h:顯示協助

curl -h

本文出自 “一萬年太久,只爭朝夕” 部落格,請務必保留此出處http://zengwj1949.blog.51cto.com/10747365/1908374

Linux命令之curl

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.