cgiuser-httpd?

Russell Nelson <[email protected]> Fri, 17 Jan 2003 17:36:37 -0500 (EST)
Newsgroups gmane.comp.djb.publicfile
Message-ID <[email protected]>
Am I using cgiuser-httpd correctly?  I'm printing out the usual CGI
header, and yet in my browser, I'm seeing the header.  That's not
right.  I've run recordio, and I don't see any sign of a header being
emitted by cgiuser-httpd itself.  Could it be that I have to emit CRLF 
after every header line?  I just tried it, and it doesn't seem to
help.
-russ

http://www.superscript.com/shttpd/cgiuser-httpd.html

@400000003e28828100bf9cbc tcpserver: status: 2/100
@400000003e28828101ca84dc tcpserver: pid 19971 from 65.172.240.34
@400000003e28828101cf66dc tcpserver: ok 19971 0:192.203.178.55:81 :65.172.240.34::2865
@400000003e28828106868a34 19971 < GET /pubsoft.gif HTTP/1.1
 
@400000003e2882810688cc54 19971 < User-Agent: Mozilla/5.0 (Linux 2.2.17 i586; U) Opera 6.11  [en]
 
@400000003e288281068a473c 19971 < Host: pubsoft.org:81
 
@400000003e288281068bae9c 19971 < Accept: text/html, image/png, image/jpeg, image/gif, image/x-xbitmap, */*
 
@400000003e288281068d3d0c 19971 < Accept-Charset: windows-1252, utf-8;q=1.0, utf-16;q=1.0, iso-8859-1+
@400000003e288281120e7984 19971 < ;q=0.6, *;q=0.1
 
@400000003e28828112111d4c 19971 < Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
 
@400000003e2882811212a7d4 19971 < Referer: http://pubsoft.org:81/indexffasdfadsf
 
@400000003e288281121422bc 19971 < Cookie: username=nelson-d6ce9a2bc5f249edb03b996366cdc246
 
@400000003e288281121595d4 19971 < Connection: Keep-Alive, TE
 
@400000003e2882811216f94c 19971 < TE: deflate, gzip, chunked, identity, trailers
 
@400000003e28828112bcd63c 19971 < 
 
@400000003e28828215016b24 19971 > Content-Type: text/html 
@400000003e2882821501f3dc 19971 >  
@400000003e2882821502325c 19971 >  
@400000003e288282150270dc 19971 > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 
@400000003e2882821502d284 19971 >     <html> 
@400000003e288282150314ec 19971 >       <head> 
@400000003e28828215035b3c 19971 >         <title>PubSoft: Error</title> 
@400000003e2882821503b514 19971 >       </head> 
@400000003e2882821503ff4c 19971 >   <body bgcolor="#ffffff" background="/backgr.gif"> 
@400000003e2882821505bc9c 19971 >     <table border="0" width="100%" height="100%" align=+
@400000003e288282150629fc 19971 > "center"> 
@400000003e2882821547597c 19971 >       <tr> 
@400000003e28828215495d1c 19971 > 	<td valign="top" width="250"> 
@400000003e288282154bd204 19971 >         <font face="Arial, Helvetica, Sans Serif"> 
@400000003e288282154d5c8c 19971 >           BETA TEST<br> 
@400000003e288282154edb5c 19971 >           All data will be removed<br> at the end of the testing period.<br> 
@400000003e288282155069cc 19971 > 	  <a href="index.cgi"> 
@400000003e2882821551d12c 19971 > 	  <img src="/pubsoft.gif" b+
@400000003e2882821557fb4c 19971 > order="0" alt="PubSoft"><br><br>Home</a><br> 
@400000003e2882821559c83c 19971 > 	  <a href="news.cgi">News</a><br> 
@400000003e288282155b3f3c 19971 > 	  <a href="viewprojects.cgi">Projects</a><br> 
@400000003e288282155cc1f4 19971 > 	  <a href="register.cgi">Register</a><br> 
@400000003e288282155e350c 19971 >      
@400000003e288282155f88e4 19971 > <form method="post" action="loginput.cgi"> 
@400000003e2882821560f044 19971 > <table border="0"> 
@400000003e28828215624034 19971 > <tr> 
@400000003e28828215638084 19971 > <td> 
@400000003e2882821564c0d4 19971 > username 
@400000003e288282156a047c 19971 > </td><td> 
@400000003e288282156baa5c 19971 > <input name="username" 
@400000003e288282156cfa4c 19971 > > 
@400000003e288282156e2ee4 19971 > </td> 
@400000003e288282156f6b4c 19971 > </tr> 
@400000003e2882821570a7b4 19971 > <tr> 
@400000003e2882821571e41c 19971 > <td> 
@400000003e28828215731c9c 19971 > password 
@400000003e288282157464bc 19971 > </td><td> 
@400000003e2882821575acdc 19971 > <input name="password" 
@400000003e2882821577049c 19971 >  type="password" 
@400000003e288282157848d4 19971 > > 
@400000003e28828215798d0c 19971 > </td> 
@400000003e288282157acd5c 19971 > </tr> 
@400000003e288282157c1194 19971 > </table> 
@400000003e288282157d6954 19971 > <INPUT TYPE="submit" VALUE="Log in"> 
@400000003e288282157ec8e4 19971 > </form> 
@400000003e2882821580054c 19971 >  
@400000003e288282158141b4 19971 >         </font> 
@400000003e28828215828dbc 19971 >         </td> 
@400000003e2882821583e194 19971 > 	<td valign="top" width="100%%"> 
@400000003e28828215853184 19971 >  
@400000003e2882821587390c 19971 >      
@400000003e28828215888514 19971 > <h+
@400000003e288282158c6544 19971 > 1>Error</h1> 
@400000003e288282158e16dc 19971 > No idea how to do  <br>Press the back button on your browser to continue 
@400000003e288282158f9994 19971 >  
@400000003e2882821590ddcc 19971 > 	</td> 
@400000003e28828215921e1c 19971 >     </table> 
@400000003e28828215936e0c 19971 >       </body> 
@400000003e2882821594ba14 19971 >     </html> 
@400000003e28828215960a04 19971 >  
@400000003e288282192a9aa4 tcpserver: end 19971 status 0
@400000003e288282192b1b8c tcpserver: status: 0/100
@400000003e2882821e0e2144 19971 > [EOF]


-- 
-russ nelson              http://russnelson.com | You get prosperity when
Crynwr sells support for free software  | PGPok | the government does less,
521 Pleasant Valley Rd. | +1 315 268 1925 voice | not when the government
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | does something right.