Current code is as below, but still the same error.
#!/usr/bin/perl --
use File::Copy;
use CGI qw( header );
my $file = "/var/www/cgi-bin/PTF//WP_20140410_19_01_49_Pro.jpg";
print header( -type => q{image/jpeg} , -nph => 1, -Content_length => -
+s $file );
copy $file, \*STDOUT;
I tried both in firefox and IE. in the both browsers i am getting the below error..
Internal Server Error
The server encountered an internal error or misconfiguration and was u
+nable to complete your request.
Please contact the server administrator, root@localhost and inform the
+m of the time the error occurred, and anything you might have done th
+at may have caused the error.
More information about this error may be available in the server error
+ log.
----------------------------------------------------------------------
+----------
Apache/2.2.15 (Red Hat) Server at 10.58.117.54 Port 80
|