Curl Command
Curl-i URL//-i: Omit the source code view, the content is as follows:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8A/E3/wKioL1g-joKDKNjsAAGq-isvVBo175.png-wh_500x0-wm_3 -wmp_4-s_745876960.png "title=" Clipboard.png "alt=" Wkiol1g-jokdknjsaagq-isvvbo175.png-wh_50 "/>
we are looking at http/1.1 OK This line
Common status: 200 301 302 404 403 502 503
Of the above status code, only 200 is OK
If 301 302 is present, it may be because the server set the Jump, The contents are as follows:
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8A/E3/wKioL1g-jqfCE2oSAAG5Q0v8f78493.png-wh_500x0-wm_3 -wmp_4-s_2923839857.png "title=" Clipboard.png "alt=" Wkiol1g-jqfce2osaag5q0v8f78493.png-wh_50 "/>
display, http/1.1 301 set a jump, jump to the following: location: http://www.aminglinux.com/bbs/forum.php
-X can specify IP and port, omit write hosts:
Curl-x ip:port (port) URL-I.
Curl-x61.135.157.156:80 Www.qq.com-I
(-I's role is to view only the status code, not the source code,-x: Proxy)
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8A/E7/wKiom1g-jtSRCWoKAAGqgb8UlNA864.png-wh_500x0-wm_3 -wmp_4-s_341206674.png "title=" Clipboard.png "alt=" Wkiom1g-jtsrcwokaagqgb8ulna864.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8A/E3/wKioL1g-jv_wTbBkAACTafN8OLw076.png-wh_500x0-wm_3 -wmp_4-s_76699840.png "title=" Clipboard.png "alt=" Wkiol1g-jv_wtbbkaactafn8olw076.png-wh_50 "/>
Curl-iv www.baidu.com//v: Show Details
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8A/E7/wKiom1g-jy2DtYi3AARuI-jLn6w391.png-wh_500x0-wm_3 -wmp_4-s_2093535130.png "title=" Clipboard.png "alt=" Wkiom1g-jy2dtyi3aarui-jln6w391.png-wh_50 "/>
Here's the User-agent: represents an identity of the browser
Curl-o url (the URL to download the image)//-o: Download the page or object directly
Curl-o Custom name URLs (URLs to download images)//-o: rename
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8A/E7/wKiom1g-j1rz81NOAAWuT3pSm_k694.png-wh_500x0-wm_3 -wmp_4-s_1974046716.png "title=" Clipboard.png "alt=" Wkiom1g-j1rz81noaawut3psm_k694.png-wh_50 "/>
Curl-u User:password http://123.com//-u: User name and password can be specified
This article is from the "11842333" blog, please be sure to keep this source http://11852333.blog.51cto.com/11842333/1878217
Linux System Curl Command