- 论坛徽章:
- 0
|
本帖最后由 youzhengchuan 于 2014-07-30 12:34 编辑
代码是这样的:
- my @proxys = qw(Proxy01 Proxy02 Proxy03 Proxy04 Proxy05);
- sub get_content_proxy {
- my $url = shift;
- my $cv = AE::cv;
- foreach my $proxy ( @proxys ) {
- my $port = "80";
- ($proxy,$port) = split /:/,$proxy if $proxy =~ /:/;
- $cv->begin;
- http_request
- GET => "$url?proxyip=$proxy",
- headers => {"Range" => "bytes=0-1"},
- timeout => "5",
- proxy => [$proxy,$port],
- sub {
- my ($body, $hdr) = @_;
- print "http_request $proxy $port $url:\n";
- print Dumper $hdr;
- if($hdr->{'Status'} == 200){
- print $body;
- }
- print "\n\n";
- $cv->end;
- }
- ;
- }
- $cv->recv;
- }
- get_content_proxy("http://www.baidu.com/txt_vod/1.txt")
复制代码 脚本的工作就是轮询每个proxy,依次发请求到每个proxy,然后打印每个proxy响应的头,如果该proxy响应头状态码是200,则打印body。
结果发现AE经常把两个请求发到同一个proxy。
从Dumper打印的头信息看,的确是取到了新的proxy ip地址,但是请求还是发到上一个proxy去,不知道为什么。
下面是tcpdump抓包的结果,发现脚本从来没有发请求到最后一个proxy “Proxy05”,而“Proxy03”收到2次请求,分别在78行和197行。
如下是tcpdump抓包结果:- 15:56:32.638811 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 74: (tos 0x0, ttl 64, id 22079, offset 0, flags [DF], proto TCP (6), length 60)
- 172.16.6.140.49535 > Proxy01.80: Flags [S], cksum 0xe899 (correct), seq 737587728, win 5840, options [mss 1460,sackOK,TS val 711517231 ecr 0,nop,wscale 7], length 0
- 0x0000: 4500 003c 563f 4000 4006 4a55 ac10 068c E..<V?@.@.JU....
- 0x0010: de84 0907 c17f 0050 2bf6 b210 0000 0000 .......P+.......
- 0x0020: a002 16d0 e899 0000 0204 05b4 0402 080a ................
- 0x0030: 2a68 e42f 0000 0000 0103 0307 *h./........
- 15:56:32.639410 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 74: (tos 0x0, ttl 64, id 8847, offset 0, flags [DF], proto TCP (6), length 60)
- 172.16.6.140.58931 > Proxy02.80: Flags [S], cksum 0xae5c (correct), seq 749258431, win 5840, options [mss 1460,sackOK,TS val 711517232 ecr 0,nop,wscale 7], length 0
- 0x0000: 4500 003c 228f 4000 4006 7dde ac10 068c E..<".@.@.}.....
- 0x0010: de84 092e e633 0050 2ca8 c6bf 0000 0000 .....3.P,.......
- 0x0020: a002 16d0 ae5c 0000 0204 05b4 0402 080a .....\..........
- 0x0030: 2a68 e430 0000 0000 0103 0307 *h.0........
- 15:56:32.639769 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 74: (tos 0x0, ttl 64, id 58332, offset 0, flags [DF], proto TCP (6), length 60)
- 172.16.6.140.36935 > Proxy03.80: Flags [S], cksum 0xc3cd (correct), seq 737544172, win 5840, options [mss 1460,sackOK,TS val 711517232 ecr 0,nop,wscale 7], length 0
- 0x0000: 4500 003c e3dc 4000 4006 bc8f ac10 068c E..<..@.@.......
- 0x0010: de84 092f 9047 0050 2bf6 07ec 0000 0000 .../.G.P+.......
- 0x0020: a002 16d0 c3cd 0000 0204 05b4 0402 080a ................
- 0x0030: 2a68 e430 0000 0000 0103 0307 *h.0........
- 15:56:32.640140 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 74: (tos 0x0, ttl 64, id 46471, offset 0, flags [DF], proto TCP (6), length 60)
- 172.16.6.140.41889 > Proxy04.80: Flags [S], cksum 0x660a (correct), seq 747852214, win 5840, options [mss 1460,sackOK,TS val 711517233 ecr 0,nop,wscale 7], length 0
- 0x0000: 4500 003c b587 4000 4006 eae3 ac10 068c E..<..@.@.......
- 0x0010: de84 0930 a3a1 0050 2c93 51b6 0000 0000 ...0...P,.Q.....
- 0x0020: a002 16d0 660a 0000 0204 05b4 0402 080a ....f...........
- 0x0030: 2a68 e431 0000 0000 0103 0307 *h.1........
- 15:56:32.653442 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 66: (tos 0x0, ttl 53, id 0, offset 0, flags [DF], proto TCP (6), length 52)
- Proxy01.80 > 172.16.6.140.49535: Flags [S.], cksum 0x12c3 (correct), seq 3570677660, ack 737587729, win 5840, options [mss 1200,nop,nop,sackOK,nop,wscale 9], length 0
- 0x0000: 4500 0034 0000 4000 3506 ab9c de84 0907 E..4..@.5.......
- 0x0010: ac10 068c 0050 c17f d4d4 379c 2bf6 b211 .....P....7.+...
- 0x0020: 8012 16d0 12c3 0000 0204 04b0 0101 0402 ................
- 0x0030: 0103 0309 ....
- 15:56:32.653489 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 22080, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.49535 > Proxy01.80: Flags [.], cksum 0x6935 (correct), seq 737587729, ack 3570677661, win 46, length 0
- 0x0000: 4500 0028 5640 4000 4006 4a68 ac10 068c E..(V@@.@.Jh....
- 0x0010: de84 0907 c17f 0050 2bf6 b211 d4d4 379d .......P+.....7.
- 0x0020: 5010 002e 6935 0000 P...i5..
- 15:56:32.653870 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 364: (tos 0x0, ttl 64, id 22081, offset 0, flags [DF], proto TCP (6), length 350)
- 172.16.6.140.49535 > Proxy01.80: Flags [P.], cksum 0x9b78 (incorrect -> 0xc58e), seq 737587729:737588039, ack 3570677661, win 46, length 310
- 0x0000: 4500 015e 5641 4000 4006 4931 ac10 068c E..^VA@.@.I1....
- 0x0010: de84 0907 c17f 0050 2bf6 b211 d4d4 379d .......P+.....7.
- 0x0020: 5018 002e 9b78 0000 4845 4144 2068 7474 P....x..HEAD.htt
- 0x0030: 703a 2f2f 7777 772e 646e 696f 6e2e 636f p://www.baidu.co
- 0x0040: 6d2f 797a 635f 766f 642f 312e 7478 743f m/txt_vod/1.txt?
- 0x0050: 7072 6f78 7969 703d 3232 322e 3133 322e proxyip=222.132.
- 0x0060: 392e 3720 4854 5450 2f31 2e31 0d0a 5573 9.7.HTTP/1.1..Us
- 0x0070: 6572 2d61 6765 6e74 3a20 4d6f 7a69 6c6c er-agent:.Mozill
- 0x0080: 612f 352e 3020 2863 6f6d 7061 7469 626c a/5.0.(compatibl
- 0x0090: 653b 2055 3b20 416e 7945 7665 6e74 2d48 e;.U;.AnyEvent-H
- 0x00a0: 5454 502f 322e 3231 3b20 2b68 7474 703a TTP/2.21;.+http:
- 0x00b0: 2f2f 736f 6674 7761 7265 2e73 6368 6d6f //software.schmo
- 0x00c0: 7270 2e64 652f 706b 672f 416e 7945 7665 rp.de/pkg/AnyEve
- 0x00d0: 6e74 290d 0a43 6f6e 6e65 6374 696f 6e3a nt)..Connection:
- 0x00e0: 2054 650d 0a54 653a 2074 7261 696c 6572 .Te..Te:.trailer
- 0x00f0: 730d 0a43 6f6e 7465 6e74 2d6c 656e 6774 s..Content-lengt
- 0x0100: 683a 2030 0d0a 5265 6665 7265 723a 2068 h:.0..Referer:.h
- 0x0110: 7474 703a 2f2f 7777 772e 646e 696f 6e2e ttp://www.baidu.
- 0x0120: 636f 6d2f 797a 635f 766f 642f 312e 7478 com/txt_vod/1.tx
- 0x0130: 743f 7072 6f78 7969 703d 3232 322e 3133 t?proxyip=222.13
- 0x0140: 322e 392e 370d 0a48 6f73 743a 2077 7777 2.9.7..Host:.www
- 0x0150: 2e64 6e69 6f6e 2e63 6f6d 0d0a 0d0a .baidu.com....
- 15:56:32.655071 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 66: (tos 0x0, ttl 53, id 0, offset 0, flags [DF], proto TCP (6), length 52)
- Proxy03.80 > 172.16.6.140.36935: Flags [S.], cksum 0xa994 (correct), seq 2142753052, ack 737544173, win 5840, options [mss 1200,nop,nop,sackOK,nop,wscale 9], length 0
- 0x0000: 4500 0034 0000 4000 3506 ab74 de84 092f E..4..@.5..t.../
- 0x0010: ac10 068c 0050 9047 7fb7 d11c 2bf6 07ed .....P.G....+...
- 0x0020: 8012 16d0 a994 0000 0204 04b0 0101 0402 ................
- 0x0030: 0103 0309 ....
- 15:56:32.655099 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 58333, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.36935 > Proxy03.80: Flags [.], cksum 0x0007 (correct), seq 737544173, ack 2142753053, win 46, length 0
- 0x0000: 4500 0028 e3dd 4000 4006 bca2 ac10 068c E..(..@.@.......
- 0x0010: de84 092f 9047 0050 2bf6 07ed 7fb7 d11d .../.G.P+.......
- 0x0020: 5010 002e 0007 0000 P.......
- 15:56:32.655280 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 66: (tos 0x0, ttl 53, id 0, offset 0, flags [DF], proto TCP (6), length 52)
- Proxy02.80 > 172.16.6.140.58931: Flags [S.], cksum 0xf61f (correct), seq 1482659448, ack 749258432, win 5840, options [mss 1200,nop,nop,sackOK,nop,wscale 9], length 0
- 0x0000: 4500 0034 0000 4000 3506 ab75 de84 092e E..4..@.5..u....
- 0x0010: ac10 068c 0050 e633 585f 9678 2ca8 c6c0 .....P.3X_.x,...
- 0x0020: 8012 16d0 f61f 0000 0204 04b0 0101 0402 ................
- 0x0030: 0103 0309 ....
- 15:56:32.655285 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 366: (tos 0x0, ttl 64, id 58334, offset 0, flags [DF], proto TCP (6), length 352)
- 172.16.6.140.36935 > Proxy03.80: Flags [P.], cksum 0x9ba2 (incorrect -> 0x9fb2), seq 737544173:737544485, ack 2142753053, win 46, length 312
- 0x0000: 4500 0160 e3de 4000 4006 bb69 ac10 068c E..`..@.@..i....
- 0x0010: de84 092f 9047 0050 2bf6 07ed 7fb7 d11d .../.G.P+.......
- 0x0020: 5018 002e 9ba2 0000 4845 4144 2068 7474 P.......HEAD.htt
- 0x0030: 703a 2f2f 7777 772e 646e 696f 6e2e 636f p://www.baidu.co
- 0x0040: 6d2f 797a 635f 766f 642f 312e 7478 743f m/txt_vod/1.txt?
- 0x0050: 7072 6f78 7969 703d 3232 322e 3133 322e proxyip=222.132.
- 0x0060: 392e 3437 2048 5454 502f 312e 310d 0a55 9.47.HTTP/1.1..U
- 0x0070: 7365 722d 6167 656e 743a 204d 6f7a 696c ser-agent:.Mozil
- 0x0080: 6c61 2f35 2e30 2028 636f 6d70 6174 6962 la/5.0.(compatib
- 0x0090: 6c65 3b20 553b 2041 6e79 4576 656e 742d le;.U;.AnyEvent-
- 0x00a0: 4854 5450 2f32 2e32 313b 202b 6874 7470 HTTP/2.21;.+http
- 0x00b0: 3a2f 2f73 6f66 7477 6172 652e 7363 686d ://software.schm
- 0x00c0: 6f72 702e 6465 2f70 6b67 2f41 6e79 4576 orp.de/pkg/AnyEv
- 0x00d0: 656e 7429 0d0a 436f 6e6e 6563 7469 6f6e ent)..Connection
- 0x00e0: 3a20 5465 0d0a 5465 3a20 7472 6169 6c65 :.Te..Te:.traile
- 0x00f0: 7273 0d0a 436f 6e74 656e 742d 6c65 6e67 rs..Content-leng
- 0x0100: 7468 3a20 300d 0a52 6566 6572 6572 3a20 th:.0..Referer:.
- 0x0110: 6874 7470 3a2f 2f77 7777 2e64 6e69 6f6e http://www.baidu
- 0x0120: 2e63 6f6d 2f79 7a63 5f76 6f64 2f31 2e74 .com/txt_vod/1.t
- 0x0130: 7874 3f70 726f 7879 6970 3d32 3232 2e31 xt?proxyip=222.1
- 0x0140: 3332 2e39 2e34 370d 0a48 6f73 743a 2077 32.9.47..Host:.w
- 0x0150: 7777 2e64 6e69 6f6e 2e63 6f6d 0d0a 0d0a ww.baidu.com....
- 15:56:32.655296 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 8848, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.58931 > Proxy02.80: Flags [.], cksum 0x4c92 (correct), seq 749258432, ack 1482659449, win 46, length 0
- 0x0000: 4500 0028 2290 4000 4006 7df1 ac10 068c E..(".@.@.}.....
- 0x0010: de84 092e e633 0050 2ca8 c6c0 585f 9679 .....3.P,...X_.y
- 0x0020: 5010 002e 4c92 0000 P...L...
- 15:56:32.655581 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 366: (tos 0x0, ttl 64, id 8849, offset 0, flags [DF], proto TCP (6), length 352)
- 172.16.6.140.58931 > Proxy02.80: Flags [P.], cksum 0x9ba1 (incorrect -> 0xed3e), seq 749258432:749258744, ack 1482659449, win 46, length 312
- 0x0000: 4500 0160 2291 4000 4006 7cb8 ac10 068c E..`".@.@.|.....
- 0x0010: de84 092e e633 0050 2ca8 c6c0 585f 9679 .....3.P,...X_.y
- 0x0020: 5018 002e 9ba1 0000 4845 4144 2068 7474 P.......HEAD.htt
- 0x0030: 703a 2f2f 7777 772e 646e 696f 6e2e 636f p://www.baidu.co
- 0x0040: 6d2f 797a 635f 766f 642f 312e 7478 743f m/txt_vod/1.txt?
- 0x0050: 7072 6f78 7969 703d 3232 322e 3133 322e proxyip=222.132.
- 0x0060: 392e 3436 2048 5454 502f 312e 310d 0a55 9.46.HTTP/1.1..U
- 0x0070: 7365 722d 6167 656e 743a 204d 6f7a 696c ser-agent:.Mozil
- 0x0080: 6c61 2f35 2e30 2028 636f 6d70 6174 6962 la/5.0.(compatib
- 0x0090: 6c65 3b20 553b 2041 6e79 4576 656e 742d le;.U;.AnyEvent-
- 0x00a0: 4854 5450 2f32 2e32 313b 202b 6874 7470 HTTP/2.21;.+http
- 0x00b0: 3a2f 2f73 6f66 7477 6172 652e 7363 686d ://software.schm
- 0x00c0: 6f72 702e 6465 2f70 6b67 2f41 6e79 4576 orp.de/pkg/AnyEv
- 0x00d0: 656e 7429 0d0a 436f 6e6e 6563 7469 6f6e ent)..Connection
- 0x00e0: 3a20 5465 0d0a 5465 3a20 7472 6169 6c65 :.Te..Te:.traile
- 0x00f0: 7273 0d0a 436f 6e74 656e 742d 6c65 6e67 rs..Content-leng
- 0x0100: 7468 3a20 300d 0a52 6566 6572 6572 3a20 th:.0..Referer:.
- 0x0110: 6874 7470 3a2f 2f77 7777 2e64 6e69 6f6e http://www.baidu
- 0x0120: 2e63 6f6d 2f79 7a63 5f76 6f64 2f31 2e74 .com/txt_vod/1.t
- 0x0130: 7874 3f70 726f 7879 6970 3d32 3232 2e31 xt?proxyip=222.1
- 0x0140: 3332 2e39 2e34 360d 0a48 6f73 743a 2077 32.9.46..Host:.w
- 0x0150: 7777 2e64 6e69 6f6e 2e63 6f6d 0d0a 0d0a ww.baidu.com....
- 15:56:32.656572 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 66: (tos 0x0, ttl 53, id 0, offset 0, flags [DF], proto TCP (6), length 52)
- Proxy04.80 > 172.16.6.140.41889: Flags [S.], cksum 0x67ba (correct), seq 1457774088, ack 747852215, win 5840, options [mss 1200,nop,nop,sackOK,nop,wscale 9], length 0
- 0x0000: 4500 0034 0000 4000 3506 ab73 de84 0930 E..4..@.5..s...0
- 0x0010: ac10 068c 0050 a3a1 56e3 de08 2c93 51b7 .....P..V...,.Q.
- 0x0020: 8012 16d0 67ba 0000 0204 04b0 0101 0402 ....g...........
- 0x0030: 0103 0309 ....
- 15:56:32.656609 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 46472, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.41889 > Proxy04.80: Flags [.], cksum 0xbe2c (correct), seq 747852215, ack 1457774089, win 46, length 0
- 0x0000: 4500 0028 b588 4000 4006 eaf6 ac10 068c E..(..@.@.......
- 0x0010: de84 0930 a3a1 0050 2c93 51b7 56e3 de09 ...0...P,.Q.V...
- 0x0020: 5010 002e be2c 0000 P....,..
- 15:56:32.656797 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 366: (tos 0x0, ttl 64, id 46473, offset 0, flags [DF], proto TCP (6), length 352)
- 172.16.6.140.41889 > Proxy04.80: Flags [P.], cksum 0x9ba3 (incorrect -> 0x5cd7), seq 747852215:747852527, ack 1457774089, win 46, length 312
- 0x0000: 4500 0160 b589 4000 4006 e9bd ac10 068c E..`..@.@.......
- 0x0010: de84 0930 a3a1 0050 2c93 51b7 56e3 de09 ...0...P,.Q.V...
- 0x0020: 5018 002e 9ba3 0000 4845 4144 2068 7474 P.......HEAD.htt
- 0x0030: 703a 2f2f 7777 772e 646e 696f 6e2e 636f p://www.baidu.co
- 0x0040: 6d2f 797a 635f 766f 642f 312e 7478 743f m/txt_vod/1.txt?
- 0x0050: 7072 6f78 7969 703d 3232 322e 3133 322e proxyip=222.132.
- 0x0060: 392e 3438 2048 5454 502f 312e 310d 0a55 9.48.HTTP/1.1..U
- 0x0070: 7365 722d 6167 656e 743a 204d 6f7a 696c ser-agent:.Mozil
- 0x0080: 6c61 2f35 2e30 2028 636f 6d70 6174 6962 la/5.0.(compatib
- 0x0090: 6c65 3b20 553b 2041 6e79 4576 656e 742d le;.U;.AnyEvent-
- 0x00a0: 4854 5450 2f32 2e32 313b 202b 6874 7470 HTTP/2.21;.+http
- 0x00b0: 3a2f 2f73 6f66 7477 6172 652e 7363 686d ://software.schm
- 0x00c0: 6f72 702e 6465 2f70 6b67 2f41 6e79 4576 orp.de/pkg/AnyEv
- 0x00d0: 656e 7429 0d0a 436f 6e6e 6563 7469 6f6e ent)..Connection
- 0x00e0: 3a20 5465 0d0a 5465 3a20 7472 6169 6c65 :.Te..Te:.traile
- 0x00f0: 7273 0d0a 436f 6e74 656e 742d 6c65 6e67 rs..Content-leng
- 0x0100: 7468 3a20 300d 0a52 6566 6572 6572 3a20 th:.0..Referer:.
- 0x0110: 6874 7470 3a2f 2f77 7777 2e64 6e69 6f6e http://www.baidu
- 0x0120: 2e63 6f6d 2f79 7a63 5f76 6f64 2f31 2e74 .com/txt_vod/1.t
- 0x0130: 7874 3f70 726f 7879 6970 3d32 3232 2e31 xt?proxyip=222.1
- 0x0140: 3332 2e39 2e34 380d 0a48 6f73 743a 2077 32.9.48..Host:.w
- 0x0150: 7777 2e64 6e69 6f6e 2e63 6f6d 0d0a 0d0a ww.baidu.com....
- 15:56:32.668530 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 60: (tos 0x0, ttl 53, id 3270, offset 0, flags [DF], proto TCP (6), length 40)
- Proxy01.80 > 172.16.6.140.49535: Flags [.], cksum 0x681f (correct), seq 3570677661, ack 737588039, win 14, length 0
- 0x0000: 4500 0028 0cc6 4000 3506 9ee2 de84 0907 E..(..@.5.......
- 0x0010: ac10 068c 0050 c17f d4d4 379d 2bf6 b347 .....P....7.+..G
- 0x0020: 5010 000e 681f 0000 0000 0000 0000 P...h.........
- 15:56:32.669574 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 60: (tos 0x0, ttl 53, id 40960, offset 0, flags [DF], proto TCP (6), length 40)
- Proxy03.80 > 172.16.6.140.36935: Flags [.], cksum 0xfeee (correct), seq 2142753053, ack 737544485, win 14, length 0
- 0x0000: 4500 0028 a000 4000 3506 0b80 de84 092f E..(..@.5....../
- 0x0010: ac10 068c 0050 9047 7fb7 d11d 2bf6 0925 .....P.G....+..%
- 0x0020: 5010 000e feee 0000 0000 0000 0000 P.............
- 15:56:32.669835 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 236: (tos 0x0, ttl 53, id 40961, offset 0, flags [DF], proto TCP (6), length 222)
- Proxy03.80 > 172.16.6.140.36935: Flags [P.], cksum 0x33ca (correct), seq 2142753053:2142753235, ack 737544485, win 14, length 182
- 0x0000: 4500 00de a001 4000 3506 0ac9 de84 092f E.....@.5....../
- 0x0010: ac10 068c 0050 9047 7fb7 d11d 2bf6 0925 .....P.G....+..%
- 0x0020: 5018 000e 33ca 0000 4854 5450 2f31 2e31 P...3...HTTP/1.1
- 0x0030: 2032 3030 204f 4b0d 0a43 6f6e 7465 6e74 .200.OK..Content
- 0x0040: 2d54 7970 653a 2061 7070 6c69 6361 7469 -Type:.applicati
- 0x0050: 6f6e 2f6f 6374 6574 2d73 7472 6561 6d0d on/octet-stream.
- 0x0060: 0a41 6363 6570 742d 5261 6e67 6573 3a20 .Accept-Ranges:.
- 0x0070: 6279 7465 730d 0a43 6f6e 7465 6e74 2d4c bytes..Content-L
- 0x0080: 656e 6774 683a 2031 3232 0d0a 436f 6e6e ength:.122..Conn
- 0x0090: 6563 7469 6f6e 3a20 6b65 6570 2d61 6c69 ection:.keep-ali
- 0x00a0: 7665 0d0a 4461 7465 3a20 5475 652c 2032 ve..Date:.Tue,.2
- 0x00b0: 3920 4a75 6c20 3230 3134 2030 373a 3536 9.Jul.2014.07:56
- 0x00c0: 3a34 3120 474d 540d 0a53 6572 7665 723a :41.GMT..Server:
- 0x00d0: 2064 6e69 6f6e 2d73 7672 0d0a 0d0a .baidu-svr....
- 15:56:32.669843 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 58335, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.36935 > Proxy03.80: Flags [.], cksum 0xfe10 (correct), seq 737544485, ack 2142753235, win 54, length 0
- 0x0000: 4500 0028 e3df 4000 4006 bca0 ac10 068c E..(..@.@.......
- 0x0010: de84 092f 9047 0050 2bf6 0925 7fb7 d1d3 .../.G.P+..%....
- 0x0020: 5010 0036 fe10 0000 P..6....
- 15:56:32.670312 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 366: (tos 0x0, ttl 64, id 58336, offset 0, flags [DF], proto TCP (6), length 352)
- 172.16.6.140.36935 > Proxy03.80: Flags [P.], cksum 0x9ba2 (incorrect -> 0x9bba), seq 737544485:737544797, ack 2142753235, win 54, length 312
- 0x0000: 4500 0160 e3e0 4000 4006 bb67 ac10 068c E..`..@.@..g....
- 0x0010: de84 092f 9047 0050 2bf6 0925 7fb7 d1d3 .../.G.P+..%....
- 0x0020: 5018 0036 9ba2 0000 4845 4144 2068 7474 P..6....HEAD.htt
- 0x0030: 703a 2f2f 7777 772e 646e 696f 6e2e 636f p://www.baidu.co
- 0x0040: 6d2f 797a 635f 766f 642f 312e 7478 743f m/txt_vod/1.txt?
- 0x0050: 7072 6f78 7969 703d 3232 322e 3133 322e proxyip=222.132.
- 0x0060: 392e 3439 2048 5454 502f 312e 310d 0a55 9.49.HTTP/1.1..U
- 0x0070: 7365 722d 6167 656e 743a 204d 6f7a 696c ser-agent:.Mozil
- 0x0080: 6c61 2f35 2e30 2028 636f 6d70 6174 6962 la/5.0.(compatib
- 0x0090: 6c65 3b20 553b 2041 6e79 4576 656e 742d le;.U;.AnyEvent-
- 0x00a0: 4854 5450 2f32 2e32 313b 202b 6874 7470 HTTP/2.21;.+http
- 0x00b0: 3a2f 2f73 6f66 7477 6172 652e 7363 686d ://software.schm
- 0x00c0: 6f72 702e 6465 2f70 6b67 2f41 6e79 4576 orp.de/pkg/AnyEv
- 0x00d0: 656e 7429 0d0a 436f 6e6e 6563 7469 6f6e ent)..Connection
- 0x00e0: 3a20 5465 0d0a 5465 3a20 7472 6169 6c65 :.Te..Te:.traile
- 0x00f0: 7273 0d0a 436f 6e74 656e 742d 6c65 6e67 rs..Content-leng
- 0x0100: 7468 3a20 300d 0a52 6566 6572 6572 3a20 th:.0..Referer:.
- 0x0110: 6874 7470 3a2f 2f77 7777 2e64 6e69 6f6e http://www.baidu
- 0x0120: 2e63 6f6d 2f79 7a63 5f76 6f64 2f31 2e74 .com/txt_vod/1.t
- 0x0130: 7874 3f70 726f 7879 6970 3d32 3232 2e31 xt?proxyip=222.1
- 0x0140: 3332 2e39 2e34 390d 0a48 6f73 743a 2077 32.9.49..Host:.w
- 0x0150: 7777 2e64 6e69 6f6e 2e63 6f6d 0d0a 0d0a ww.baidu.com....
- 15:56:32.671223 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 60: (tos 0x0, ttl 53, id 57989, offset 0, flags [DF], proto TCP (6), length 40)
- Proxy02.80 > 172.16.6.140.58931: Flags [.], cksum 0x4b7a (correct), seq 1482659449, ack 749258744, win 14, length 0
- 0x0000: 4500 0028 e285 4000 3506 c8fb de84 092e E..(..@.5.......
- 0x0010: ac10 068c 0050 e633 585f 9679 2ca8 c7f8 .....P.3X_.y,...
- 0x0020: 5010 000e 4b7a 0000 0000 0000 0000 P...Kz........
- 15:56:32.672771 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 60: (tos 0x0, ttl 53, id 19090, offset 0, flags [DF], proto TCP (6), length 40)
- Proxy04.80 > 172.16.6.140.41889: Flags [.], cksum 0xbd14 (correct), seq 1457774089, ack 747852527, win 14, length 0
- 0x0000: 4500 0028 4a92 4000 3506 60ed de84 0930 E..(J.@.5.`....0
- 0x0010: ac10 068c 0050 a3a1 56e3 de09 2c93 52ef .....P..V...,.R.
- 0x0020: 5010 000e bd14 0000 0000 0000 0000 P.............
- 15:56:32.684736 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 236: (tos 0x0, ttl 53, id 40962, offset 0, flags [DF], proto TCP (6), length 222)
- Proxy03.80 > 172.16.6.140.36935: Flags [P.], cksum 0x31da (correct), seq 2142753235:2142753417, ack 737544797, win 16, length 182
- 0x0000: 4500 00de a002 4000 3506 0ac8 de84 092f E.....@.5....../
- 0x0010: ac10 068c 0050 9047 7fb7 d1d3 2bf6 0a5d .....P.G....+..]
- 0x0020: 5018 0010 31da 0000 4854 5450 2f31 2e31 P...1...HTTP/1.1
- 0x0030: 2032 3030 204f 4b0d 0a43 6f6e 7465 6e74 .200.OK..Content
- 0x0040: 2d54 7970 653a 2061 7070 6c69 6361 7469 -Type:.applicati
- 0x0050: 6f6e 2f6f 6374 6574 2d73 7472 6561 6d0d on/octet-stream.
- 0x0060: 0a41 6363 6570 742d 5261 6e67 6573 3a20 .Accept-Ranges:.
- 0x0070: 6279 7465 730d 0a43 6f6e 7465 6e74 2d4c bytes..Content-L
- 0x0080: 656e 6774 683a 2031 3232 0d0a 436f 6e6e ength:.122..Conn
- 0x0090: 6563 7469 6f6e 3a20 6b65 6570 2d61 6c69 ection:.keep-ali
- 0x00a0: 7665 0d0a 4461 7465 3a20 5475 652c 2032 ve..Date:.Tue,.2
- 0x00b0: 3920 4a75 6c20 3230 3134 2030 373a 3536 9.Jul.2014.07:56
- 0x00c0: 3a34 3120 474d 540d 0a53 6572 7665 723a :41.GMT..Server:
- 0x00d0: 2064 6e69 6f6e 2d73 7672 0d0a 0d0a .baidu-svr....
- 15:56:32.723986 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 58337, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.36935 > Proxy03.80: Flags [.], cksum 0xfc19 (correct), seq 737544797, ack 2142753417, win 63, length 0
- 0x0000: 4500 0028 e3e1 4000 4006 bc9e ac10 068c E..(..@.@.......
- 0x0010: de84 092f 9047 0050 2bf6 0a5d 7fb7 d289 .../.G.P+..]....
- 0x0020: 5010 003f fc19 0000 P..?....
- 15:56:32.734936 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 187: (tos 0x0, ttl 53, id 57990, offset 0, flags [DF], proto TCP (6), length 173)
- Proxy02.80 > 172.16.6.140.58931: Flags [P.], cksum 0xe39e (correct), seq 1482659449:1482659582, ack 749258744, win 14, length 133
- 0x0000: 4500 00ad e286 4000 3506 c875 de84 092e E.....@.5..u....
- 0x0010: ac10 068c 0050 e633 585f 9679 2ca8 c7f8 .....P.3X_.y,...
- 0x0020: 5018 000e e39e 0000 4854 5450 2f31 2e31 P.......HTTP/1.1
- 0x0030: 2034 3030 2042 6164 2052 6571 7565 7374 .400.Bad.Request
- 0x0040: 0d0a 5374 6174 7573 3a20 3430 3020 4261 ..Status:.400.Ba
- 0x0050: 6420 5265 7175 6573 740d 0a43 6f6e 6e65 d.Request..Conne
- 0x0060: 6374 696f 6e3a 206b 6565 702d 616c 6976 ction:.keep-aliv
- 0x0070: 650d 0a44 6174 653a 2054 7565 2c20 3239 e..Date:.Tue,.29
- 0x0080: 204a 756c 2032 3031 3420 3037 3a35 363a .Jul.2014.07:56:
- 0x0090: 3431 2047 4d54 0d0a 5365 7276 6572 3a20 41.GMT..Server:.
- 0x00a0: 646e 696f 6e2d 7376 720d 0a0d 0a baidu-svr....
- 15:56:32.734959 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 8850, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.58931 > Proxy02.80: Flags [.], cksum 0x4acd (correct), seq 749258744, ack 1482659582, win 54, length 0
- 0x0000: 4500 0028 2292 4000 4006 7def ac10 068c E..(".@.@.}.....
- 0x0010: de84 092e e633 0050 2ca8 c7f8 585f 96fe .....3.P,...X_..
- 0x0020: 5010 0036 4acd 0000 P..6J...
- 15:56:32.736554 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 187: (tos 0x0, ttl 53, id 19091, offset 0, flags [DF], proto TCP (6), length 173)
- Proxy04.80 > 172.16.6.140.41889: Flags [P.], cksum 0x5539 (correct), seq 1457774089:1457774222, ack 747852527, win 14, length 133
- 0x0000: 4500 00ad 4a93 4000 3506 6067 de84 0930 E...J.@.5.`g...0
- 0x0010: ac10 068c 0050 a3a1 56e3 de09 2c93 52ef .....P..V...,.R.
- 0x0020: 5018 000e 5539 0000 4854 5450 2f31 2e31 P...U9..HTTP/1.1
- 0x0030: 2034 3030 2042 6164 2052 6571 7565 7374 .400.Bad.Request
- 0x0040: 0d0a 5374 6174 7573 3a20 3430 3020 4261 ..Status:.400.Ba
- 0x0050: 6420 5265 7175 6573 740d 0a43 6f6e 6e65 d.Request..Conne
- 0x0060: 6374 696f 6e3a 206b 6565 702d 616c 6976 ction:.keep-aliv
- 0x0070: 650d 0a44 6174 653a 2054 7565 2c20 3239 e..Date:.Tue,.29
- 0x0080: 204a 756c 2032 3031 3420 3037 3a35 363a .Jul.2014.07:56:
- 0x0090: 3431 2047 4d54 0d0a 5365 7276 6572 3a20 41.GMT..Server:.
- 0x00a0: 646e 696f 6e2d 7376 720d 0a0d 0a baidu-svr....
- 15:56:32.736563 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 46474, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.41889 > Proxy04.80: Flags [.], cksum 0xbc67 (correct), seq 747852527, ack 1457774222, win 54, length 0
- 0x0000: 4500 0028 b58a 4000 4006 eaf4 ac10 068c E..(..@.@.......
- 0x0010: de84 0930 a3a1 0050 2c93 52ef 56e3 de8e ...0...P,.R.V...
- 0x0020: 5010 0036 bc67 0000 P..6.g..
- 15:56:32.746637 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 187: (tos 0x0, ttl 53, id 3271, offset 0, flags [DF], proto TCP (6), length 173)
- Proxy01.80 > 172.16.6.140.49535: Flags [P.], cksum 0x0044 (correct), seq 3570677661:3570677794, ack 737588039, win 14, length 133
- 0x0000: 4500 00ad 0cc7 4000 3506 9e5c de84 0907 E.....@.5..\....
- 0x0010: ac10 068c 0050 c17f d4d4 379d 2bf6 b347 .....P....7.+..G
- 0x0020: 5018 000e 0044 0000 4854 5450 2f31 2e31 P....D..HTTP/1.1
- 0x0030: 2034 3030 2042 6164 2052 6571 7565 7374 .400.Bad.Request
- 0x0040: 0d0a 5374 6174 7573 3a20 3430 3020 4261 ..Status:.400.Ba
- 0x0050: 6420 5265 7175 6573 740d 0a43 6f6e 6e65 d.Request..Conne
- 0x0060: 6374 696f 6e3a 206b 6565 702d 616c 6976 ction:.keep-aliv
- 0x0070: 650d 0a44 6174 653a 2054 7565 2c20 3239 e..Date:.Tue,.29
- 0x0080: 204a 756c 2032 3031 3420 3037 3a35 363a .Jul.2014.07:56:
- 0x0090: 3431 2047 4d54 0d0a 5365 7276 6572 3a20 41.GMT..Server:.
- 0x00a0: 646e 696f 6e2d 7376 720d 0a0d 0a baidu-svr....
- 15:56:32.746646 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 22082, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.49535 > Proxy01.80: Flags [.], cksum 0x6772 (correct), seq 737588039, ack 3570677794, win 54, length 0
- 0x0000: 4500 0028 5642 4000 4006 4a66 ac10 068c E..(VB@.@.Jf....
- 0x0010: de84 0907 c17f 0050 2bf6 b347 d4d4 3822 .......P+..G..8"
- 0x0020: 5010 0036 6772 0000 P..6gr..
- 15:56:37.435484 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 22083, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.49535 > Proxy01.80: Flags [F.], cksum 0x6771 (correct), seq 737588039, ack 3570677794, win 54, length 0
- 0x0000: 4500 0028 5643 4000 4006 4a65 ac10 068c E..(VC@.@.Je....
- 0x0010: de84 0907 c17f 0050 2bf6 b347 d4d4 3822 .......P+..G..8"
- 0x0020: 5011 0036 6771 0000 P..6gq..
- 15:56:37.435515 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 8851, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.58931 > Proxy02.80: Flags [F.], cksum 0x4acc (correct), seq 749258744, ack 1482659582, win 54, length 0
- 0x0000: 4500 0028 2293 4000 4006 7dee ac10 068c E..(".@.@.}.....
- 0x0010: de84 092e e633 0050 2ca8 c7f8 585f 96fe .....3.P,...X_..
- 0x0020: 5011 0036 4acc 0000 P..6J...
- 15:56:37.435521 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 58338, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.36935 > Proxy03.80: Flags [F.], cksum 0xfc18 (correct), seq 737544797, ack 2142753417, win 63, length 0
- 0x0000: 4500 0028 e3e2 4000 4006 bc9d ac10 068c E..(..@.@.......
- 0x0010: de84 092f 9047 0050 2bf6 0a5d 7fb7 d289 .../.G.P+..]....
- 0x0020: 5011 003f fc18 0000 P..?....
- 15:56:37.435527 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 46475, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.41889 > Proxy04.80: Flags [F.], cksum 0xbc66 (correct), seq 747852527, ack 1457774222, win 54, length 0
- 0x0000: 4500 0028 b58b 4000 4006 eaf3 ac10 068c E..(..@.@.......
- 0x0010: de84 0930 a3a1 0050 2c93 52ef 56e3 de8e ...0...P,.R.V...
- 0x0020: 5011 0036 bc66 0000 P..6.f..
- 15:56:37.449707 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 60: (tos 0x0, ttl 53, id 40963, offset 0, flags [DF], proto TCP (6), length 40)
- Proxy03.80 > 172.16.6.140.36935: Flags [F.], cksum 0xfc46 (correct), seq 2142753417, ack 737544798, win 16, length 0
- 0x0000: 4500 0028 a003 4000 3506 0b7d de84 092f E..(..@.5..}.../
- 0x0010: ac10 068c 0050 9047 7fb7 d289 2bf6 0a5e .....P.G....+..^
- 0x0020: 5011 0010 fc46 0000 0000 0000 0000 P....F........
- 15:56:37.449737 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 58339, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.36935 > Proxy03.80: Flags [.], cksum 0xfc17 (correct), seq 737544798, ack 2142753418, win 63, length 0
- 0x0000: 4500 0028 e3e3 4000 4006 bc9c ac10 068c E..(..@.@.......
- 0x0010: de84 092f 9047 0050 2bf6 0a5e 7fb7 d28a .../.G.P+..^....
- 0x0020: 5010 003f fc17 0000 P..?....
- 15:56:37.450151 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 60: (tos 0x0, ttl 53, id 3272, offset 0, flags [DF], proto TCP (6), length 40)
- Proxy01.80 > 172.16.6.140.49535: Flags [F.], cksum 0x6798 (correct), seq 3570677794, ack 737588040, win 14, length 0
- 0x0000: 4500 0028 0cc8 4000 3506 9ee0 de84 0907 E..(..@.5.......
- 0x0010: ac10 068c 0050 c17f d4d4 3822 2bf6 b348 .....P....8"+..H
- 0x0020: 5011 000e 6798 0000 0000 0000 0000 P...g.........
- 15:56:37.450167 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 22084, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.49535 > Proxy01.80: Flags [.], cksum 0x6770 (correct), seq 737588040, ack 3570677795, win 54, length 0
- 0x0000: 4500 0028 5644 4000 4006 4a64 ac10 068c E..(VD@.@.Jd....
- 0x0010: de84 0907 c17f 0050 2bf6 b348 d4d4 3823 .......P+..H..8#
- 0x0020: 5010 0036 6770 0000 P..6gp..
- 15:56:37.451210 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 60: (tos 0x0, ttl 53, id 57991, offset 0, flags [DF], proto TCP (6), length 40)
- Proxy02.80 > 172.16.6.140.58931: Flags [F.], cksum 0x4af3 (correct), seq 1482659582, ack 749258745, win 14, length 0
- 0x0000: 4500 0028 e287 4000 3506 c8f9 de84 092e E..(..@.5.......
- 0x0010: ac10 068c 0050 e633 585f 96fe 2ca8 c7f9 .....P.3X_..,...
- 0x0020: 5011 000e 4af3 0000 0000 0000 0000 P...J.........
- 15:56:37.451219 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 8852, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.58931 > Proxy02.80: Flags [.], cksum 0x4acb (correct), seq 749258745, ack 1482659583, win 54, length 0
- 0x0000: 4500 0028 2294 4000 4006 7ded ac10 068c E..(".@.@.}.....
- 0x0010: de84 092e e633 0050 2ca8 c7f9 585f 96ff .....3.P,...X_..
- 0x0020: 5010 0036 4acb 0000 P..6J...
- 15:56:37.451353 dc:d2:fc:06:92:68 > 3a:85:4e:40:89:29, ethertype IPv4 (0x0800), length 60: (tos 0x0, ttl 53, id 19092, offset 0, flags [DF], proto TCP (6), length 40)
- Proxy04.80 > 172.16.6.140.41889: Flags [F.], cksum 0xbc8d (correct), seq 1457774222, ack 747852528, win 14, length 0
- 0x0000: 4500 0028 4a94 4000 3506 60eb de84 0930 E..(J.@.5.`....0
- 0x0010: ac10 068c 0050 a3a1 56e3 de8e 2c93 52f0 .....P..V...,.R.
- 0x0020: 5011 000e bc8d 0000 0000 0000 0000 P.............
- 15:56:37.451365 3a:85:4e:40:89:29 > dc:d2:fc:06:92:68, ethertype IPv4 (0x0800), length 54: (tos 0x0, ttl 64, id 46476, offset 0, flags [DF], proto TCP (6), length 40)
- 172.16.6.140.41889 > Proxy04.80: Flags [.], cksum 0xbc65 (correct), seq 747852528, ack 1457774223, win 54, length 0
- 0x0000: 4500 0028 b58c 4000 4006 eaf2 ac10 068c E..(..@.@.......
- 0x0010: de84 0930 a3a1 0050 2c93 52f0 56e3 de8f ...0...P,.R.V...
- 0x0020: 5010 0036 bc65 0000 P..6.e..
复制代码 另外一个问题,还发现proxy经常返回“595”错误:
'Reason' => 'Connection timed out',
'Status' => 595
但是用curl测试每次都是好的,txt文件内仅仅几个字节的测试内容。
请教大牛帮忙分析看看是什么原因呢。 |
|