Thread: perl for kindle
View Single Post
Old 02-17-2012, 12:46 AM   #20
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Ah well, I just tried it, and it works correctly.

bozohttpd itself:
Code:
[root@kindle tmp]# find /mnt/us/www/
/mnt/us/www/
/mnt/us/www/cgi-bin
/mnt/us/www/cgi-bin/test.pl
/mnt/us/www/docroot
/mnt/us/www/docroot/index.html

[root@kindle tmp]# ./bozohttpd -s -X -f -b /mnt/us/www/docroot/ -c /mnt/us/www/cgi-bin/
started in daemon mode as `kindle' port `http' root `/mnt/us/www/docroot/'
got request ``GET /cgi-bin/test.pl HTTP/1.1'' from host localhost.localdomain to port 80
client request:
Code:
[root@kindle tmp]# wget -O out.html http://localhost/cgi-bin/test.pl
Connecting to localhost (127.0.0.1:80)
out.html             100% |*******************************************************************************************************************************************************************************************|   339  --:--:-- ETA
[root@kindle tmp]# cat out.html 
<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Environment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>

</body>
The test.pl is the same file as your index.cgi (with the fixed shebang).

HTH

Last edited by ixtab; 02-17-2012 at 12:48 AM.
ixtab is offline   Reply With Quote