Set content type : Content Type « CGI « Perl






Set content type

    

#!/usr/bin/perl -w

use strict;

print "Content-Type: text/plain\n";
print "\n";
print "hello, world!\n";

   
    
    
    
  








Related examples in the same category

1.Set html header content type
2.Explicitly name the content type and status arguments: