POST & cgi-bin

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I developed some CGI code on a UNIX based system and am now installing it on
a windows based system and have ran into a problem with a FORM POST ACTION.
The problem is when the link to the URL is executed the open fails with the
windows flag waving forever. If I point it to the same URL on my UNIX server
it works just fine. A sample of the code is below.
<FORM name='Selection_Test'
METHOD='POST' ACTION='http://www.xxxxxx.org/cgi-bin/Test.cgi'
onsubmit='return Validate(this)'>
<INPUT TYPE='hidden' NAME='Test' VALUE='OK'>

All help is much appreciated and thanks in advance.
Leonard
 
Ok. I was able to get it to work by changing POST to GET. Does anybody know
why one works and the other doesn't? I see several examples where people are
using POST.
Thanks,
 
Have you set up the server to accept POST, as well as GET?
If using IIS, open the IIS MMC (Control Panel->Administrative
Tools->IIS ) and right click on website.
Then choose properties
Then Home Directory tag
Click Configuration button
Mappings tab
Find .cgi extension and check the entry in Verbs column.
 
Back
Top