remote file unit test
[glcas.git] / unittests / getfilebits.php
1 <?php 
2
3 $fl = fopen("http://ftp.iinet.net.au/pub/centos/6/updates/x86_64////RPMS/kernel-2.6.32-71.29.1.el6.x86_64.rpm", "r");
4
5 echo "<pre>"; print_r($http_response_header); echo "</pre>";
6 while(!feof($fl)) {
7         $d = fread($fl, 1024);
8         echo $d;
9         flush();
10 }
11
12
13
14 ?>