【发布时间】:2013-10-07 05:33:25
【问题描述】:
我正在使用libcurl 库从服务器获取abc-1.tar 文件。我想知道消息的含义,即libcurl 的显示和执行过程以显示此消息。
例如:我在下面提供了一些消息,我知道基本消息的含义,例如Content-Length 表示下载的文件长度等。
我想要所有消息的含义,尤其是以* 开头的消息(例如Connection #0 to host (nil) left intact)
* Re-using existing connection! (#0) with host (nil)
* Connected to (nil) (182.72.67.14) port 65101 (#0)
GET /...... HTTP/1.1
Host: 182.72.67.14:65101
Accept: */*
Connection:keep-alive
< HTTP/1.1 200 OK
< Cache-Control: private
< Content-Length: 186368
< Content-Type: application/x-tar
< Server: Microsoft-IIS/7.5
< Content-Disposition: attachment; filename=abc-1.tar
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Tue, 01 Oct 2013 06:29:00 GMT
<
* Connection #0 to host (nil) left intact
【问题讨论】: