MLUG: RE: [UUG/MLUG] turning off Apache headers with cgi - found it
RE: [UUG/MLUG] turning off Apache headers with cgi - found it
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
my apologies on cluttering the list,
I found the info in "CGI Programming
in C & Perl" by Thomas Boutell

302 redirects are pretty simple, just make the CGI:
print "Location: URL\n";
print "URI:URL\n\n";

for other responses you need to name the cgi "nph-whatever_you_want"
to alert Apache that you'll be doing the header. so its:
print "HTTP/1.0 200 OK\n";
print "Content-type: text/html\n\n";
print "<html><body>Blah</body></html>\n";

I'm looking for info on opening sockets & doing tcp/ip
with C.  SLUUG had a presentation on it a few months
back but I can't remember which books etc. were
recommended.  Anyone have any suggestions ?

-Ralph