如果觉得 --verbose不够详细,试试 --trace-ascii
curl --trace-ascii debugdump.txt http://www.
All HTTP replies contain a set of response headers that are normally hidden,
use curl's --include (-i) option to display them as well as the rest of the document.
You can also ask the remote server for ONLY the headers by using the --head (-I) option
(which will make curl issue a HEAD request).
The simplest way to send a few cookies to the server when getting a page
with curl is to add them on the command line like:
curl --cookie "name=Daniel" http://www.
Record cookies with curl by using the --dump-header (-D) option like:
curl --dump-header headers_and_cookies http://www.
if you want to reconnect to a server and use cookies that were stored from a previous connection
curl --cookie stored_cookies_in_file http://www.
In the HTTPS world, you use certificates to validate that you are the one you claim to be,
as an addition to normal passwords. Use a certificate with curl on a HTTPS server like:
curl --cert mycert.pem https://secure.
[ 本帖最后由 madfrogme 于 2012-10-16 20:31 编辑 ]