| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 5490 人关注过本帖
标题:curl 命令笔记
只看楼主 加入收藏
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
结帖率:98.63%
收藏
 问题点数:0 回复次数:0 
curl 命令笔记
如果觉得 --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 编辑 ]
搜索更多相关主题的帖子: cookies request document ask 
2012-10-16 19:30
快速回复:curl 命令笔记
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.042651 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved