> -----Original Message-----
> From: Klemen Kozmus [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 06, 2006 5:55 PM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] Problems with cgi-bin and post method
> 
> Hi!
> 
> I'm having a trouble configuring Apache HTTP Server 2.2.3. I 
> want to run 
> Matlab server which I had set up as instructed.
> The form action in html is as followed:
> <form action="/cgi-bin/matweb.exe" method="POST">
>     <input type="hidden" name="mlmfile" value="webmagic">
> ...   
>     <p><input type="submit" name="Submit" value="Submit"></p>
> </form>
> 
> If I click the Submit button in Firefox, the browser offers 
> to download 
> matweb.exe, if I try it in Explorer I get the "Bad Request
> Your browser sent a request that this server could not 
> understand." message.
> 
> Can someone please tell me how to setup Apache so it will 
> understand the 
> form action.

What have you tried already on the server side?  Basically, you need to
declare that the directory containing matweb.exe is a CGI directory,
that could be as simple as:

ScriptAlias /path/to/cgi-bin /cgi-bin

Then make sure that matweb.exe is executable by the apache "User" and
that this user has access to any files that the program uses. See
http://httpd.apache.org/docs/2.2/howto/cgi.html for details.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 



> 
> Thanks a lot!
> Klemen Kozmus
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to