curl

Argument

-o - output to file

-O - output to file named the same with the remote name

-i - Include the HTTP-header in the output

-I - only get the HTTP-header

-u

Example

# get the file source and output to the STDOUTcurlhttp://wiki.wutianqi.com/index.html# download the filecurl-omyindex.htmlhttp://wiki.wutianqi.com/index.htmlcurl-Ohttp://wiki.wutianqi.com/index.html# get the HTTP-header onlycurl-Ihttp://wiki.wutianqi.com/index.html