Dennis, if you are passing arguments via GET you should be able to submit parameters on the command line in parameter=value¶meter2=value pairs. The strings must be urlencoded. ./reset.cgi username=joebob&password=testing If you are using POST it reads from standard in (you may have to set CONTENT_LENGTH depending on what the CGI module(s) expect). Assuming bash or equivalent shell. export CONTENT_LENGTH=32 echo username=joebob&password=testing | ./reset.cgi Might do the trick. From the web log error you will want to make sure the output contains proper header information with most likely a minimum of "Content-type: mime/type" like "Content-type: text/html" with an extra line after the header and before the content. Different web servers may require slightly different header information. The output should not just be the html page.
Don -----Original Message----- From: dennis [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 12:51 PM To: perl-ldap@perl.org Cc: Don C. Miller Subject: Re: Have to use DEBUG 1 to make Net::LDAPS work?? On Tuesday 16 May 2006 14:13, Don C. Miller wrote: > Dennis, when you run it from the command line what is the output using > both methods? It could be that part of the extra output provided by > debug provides enough "header" information for the web server in > question. By the way, what web server are you using and what version? Hi Don, I'm not actually certain how to run at command line supplying the bits needed to run reset.cgi in different modes. I usually run it in a gross manner (./reset.cgi) when making sure I haven't made any silly coding errors. With no options, it pumps out the search page in which one enters the username. When accessed thru browser, by clicking the 'Search' button, there's a variable named op that tells the script what to do next. For instance, when in the user search form the op code named SHOWRESETFORM invokes the user entry search routine, then invokes the routine that prints the actual password reset form. If you wouldn't mind showing me how to send reset.cgi the arguments at commandline, I'll try running with different op codes and see what comes out. The web server is Sun ONE 6.1; ldap server is Sun ONE Directory Server 5.2. best, /dennis