Angela_work wrote:

> Hi all,
>
> I have cgi.pl file in internet server. I would like to copy a log file(read
> only file) in J:\ (which I map it to the other server) to my d:\temp folder.
> With the following code, I got "can't open input : Permission denied"
> message when I open th cgi.pl file thru IE browser. How could I get
> Permission?  Thanks.
>
> Angela

It might have nothing to do with the code, but with the request.  The default method 
for browser requests is GET, running cgi usually requires POST.  Although there are 
probably easier ways, one Q&D approach would be to make an almost empty web page:
<html>
<head>
  <script language="JavaScript1.2">
    function CallScript() {
      document.MyForm.submit();
    }
  </script>
</head>
<body onload="CallScript()">
<form name="MyForm" method=POST action="cgi_script.pl">
<input type=hidden name="FirstParam" value="FristValue">
</form>

Call this to launch your script with the appropriate request type.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to