
hostage
Novice
Mar 12, 2012, 11:58 AM
Post #1 of 1
(6450 views)
|
print a file to stdout in cgi with resume support
|
Can't Post
|
|
Hello , i'm trying to send a file to stdout using cgi and i have the code below :
#!/usr/bin/perl -w use CGI qw(:all); $| = 1; print header( -type => 'image/jpeg' ); open ( FILE , "files/01.jpg" ) or die "$!"; binmode STDOUT; binmode FILE; print <FILE>; close(FILE); exit; now my problem is when i want to get this file ( image in this code ) it don't have resume ability when it's going to be downloaded with a download manager how can i change this code so it would have resume ability ??? thanks hostage
(This post was edited by hostage on Mar 12, 2012, 12:01 PM)
|