We are way off the discussion of perl-ldap since this definitely is an issue with the cgi itself...but just for history sake. Dennis, try one of these and see if they make a difference:
Add either this: print "HTTP/1.1 200 OK\nContent-Type: text/plain\n\n"; Or this: print "Content-Type: text/plain\n\n"; Before the first output from your script. The CGI module provides the header function to do the equivalent although I notice you have it in the script, I did not read it thoroughly as to what output will occur prior. Any content should come below the HTTP response headers. Here is an example output from a simple http session: $ telnet www.uidaho.edu 80 Trying 129.101.158.166... Connected to www-service.csrv.uidaho.edu. Escape character is '^]'. GET / HTTP/1.0 HTTP/1.1 200 OK Date: Tue, 16 May 2006 22:25:10 GMT Server: Apache Last-Modified: Mon, 15 Dec 2003 18:18:38 GMT ETag: "546158-a3-3fddfafe" Accept-Ranges: bytes Content-Length: 163 Connection: close Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <meta http-equiv="refresh" content="0;URL=http://www.uihome.uidaho.edu/facstaff/"> </html> Connection to www-service.csrv.uidaho.edu closed by foreign host. Don -----Original Message----- From: dennis [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 3:19 PM To: perl-ldap@perl.org Subject: Re: Have to use DEBUG 1 to make Net::LDAPS work?? On Tuesday 16 May 2006 16:12, Don C. Miller wrote: > The output should not just be the html page. Hi Don, I ran reset.cgi from cmd line in both modes, debug = 0 and debug = 1. At cmd line both runs successfully bound to the ldap, searched, etc. There was also some nice extraneous output. I also use log4perl, and have logger output for both runs. I'll attach output file. There's a whole lot there that I do not understand, and I'd be very grateful for any help in understanding these secrets. /dennis
smime.p7s
Description: S/MIME cryptographic signature