wget -S "" --header='Host: test_dl' --header='Cookie: nickname=xxxxooooxxxx' -O /tmp/a.txt; cat /tmp/a.txt
--2012-05-18 19:28:45--
Connecting to 127.0.0.1:80... 已连接。
已发出 HTTP 请求,正在等待回应...
HTTP/1.1 200 OK
Server: nginx/1.0.8
Date: Fri, 18 May 2012 11:28:45 GMT
Content-Type: application/octet-stream
Content-Length: 735
Connection: keep-alive
长度:735 [application/octet-stream]
Saving to: `/tmp/a.txt'
100%[==========================================================================================>] 735 --.-K/s in 0s
2012-05-18 19:28:45 (35.0 MB/s) - `/tmp/a.txt' saved [735/735]
input params : [uid=5760273&gcid=fdsafgdfasgadf&xdrive_id&seq=1002255877]
head: {magic: 0x1c420f80; msg type: 0; version: 1; sequence: 1002255877; status: 0; length: 0}
HttpHeadReq {
01: method (i32) = 1278554344,
02: uri (string) = "",
03: arguments (map) = map[4] {
"gcid" -> "fdsafgdfasgadf",
"seq" -> "1002255877",
"uid" -> "5760273",
"xdrive_id" -> "1",
},
04: cookies (map) = map[1] {
"nickname" -> "xxxxooooxxxx",
},
05: other_heads (map) = map[0] {
},
06: bytes_range (struct) = HttpBytesRange {
01: range_set (byte) = 0x00,
02: head (i64) = 0,
03: last (i64) = -1,
04: total_size (i64) = -1,
},
07: last (byte) = 0x00,
}