Added Content-type to echo in test scripts.
This commit is contained in:
parent
317e1b4e10
commit
519e20cd04
4 changed files with 8 additions and 0 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
permalink: /cgi/bash/index.sh
|
permalink: /cgi/bash/index.sh
|
||||||
---
|
---
|
||||||
|
|
||||||
|
echo "Content-type: text/plain"
|
||||||
|
echo
|
||||||
echo "Hello from bash!"
|
echo "Hello from bash!"
|
||||||
echo
|
echo
|
||||||
echo 'date'
|
echo 'date'
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ use POSIX qw(strftime);
|
||||||
|
|
||||||
my $date = strftime "%m/%d/%Y", localtime;
|
my $date = strftime "%m/%d/%Y", localtime;
|
||||||
|
|
||||||
|
print("Content-type: text/plain\n\n");
|
||||||
print "Hello from Perl!\n\n";
|
print "Hello from Perl!\n\n";
|
||||||
print $date;
|
print $date;
|
||||||
print "\n\n";
|
print "\n\n";
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,11 @@ permalink: /cgi/python/index.py
|
||||||
---
|
---
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
#from http import HTTPStatus
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
|
print("Content-type: text/plain\n")
|
||||||
|
#print(HTTPStatus.OK.value)
|
||||||
print("Hello from Python!")
|
print("Hello from Python!")
|
||||||
print("")
|
print("")
|
||||||
print('print(datetime.today().strftime("%Y-%m-%d"))')
|
print('print(datetime.today().strftime("%Y-%m-%d"))')
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
permalink: /cgi/ruby/index.rb
|
permalink: /cgi/ruby/index.rb
|
||||||
---
|
---
|
||||||
|
|
||||||
|
puts('Content-type: text/plain')
|
||||||
|
puts
|
||||||
puts('Hello from Ruby!')
|
puts('Hello from Ruby!')
|
||||||
puts
|
puts
|
||||||
puts('puts(Time.now.strftime("%d/%m/%Y %H:%M"))')
|
puts('puts(Time.now.strftime("%d/%m/%Y %H:%M"))')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue