如何实现类似flashget里的连接进度显示?
类似下面的连接进度
Tue Aug 26 10:21:02 2003 正在连接 202.101.180.168 [IP=202.101.180.168:80]
Tue Aug 26 10:21:02 2003 已连接.
Tue Aug 26 10:21:02 2003 GET /down/b/1061261954.mp3 HTTP/1.1
Tue Aug 26 10:21:02 2003 Host: 202.101.180.168
Tue Aug 26 10:21:02 2003 Accept: */*
Tue Aug 26 10:21:02 2003 Referer: http://down.chinamp3.com/down.php?id=87766&song_name=萍水相逢%20(studio)&singer_name=林慧萍
Tue Aug 26 10:21:02 2003 User-Agent: Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)
Tue Aug 26 10:21:02 2003 Pragma: no-cache
Tue Aug 26 10:21:02 2003 Cache-Control: no-cache
Tue Aug 26 10:21:02 2003 Connection: close
Tue Aug 26 10:21:03 2003 HTTP/1.1 200 OK
Tue Aug 26 10:21:03 2003 Date: Tue, 26 Aug 2003 02:17:37 GMT
Tue Aug 26 10:21:03 2003 Server: Apache/1.3.27 (Unix) PHP/4.2.3
Tue Aug 26 10:21:03 2003 Last-Modified: Tue, 05 Aug 2003 05:00:47 GMT
Tue Aug 26 10:21:03 2003 ETag: "ec004-4245ce-3f2f39ff"
Tue Aug 26 10:21:03 2003 Accept-Ranges: bytes
Tue Aug 26 10:21:03 2003 Content-Length: 4343246
Tue Aug 26 10:21:03 2003 Connection: close
Tue Aug 26 10:21:03 2003 Content-Type: audio/mpeg
Tue Aug 26 10:21:03 2003 开始接受数据!
谢谢,当然不一定要这么复杂,请告诉我基本原理!
及使用的函数