Web App On IIS With Form Method Post Getting Error 405 (OpenInsight)
At 02 OCT 2000 11:46:06AM Randy Richard wrote:
We are attempting to launch our first web application through OI's INET utilities. The server runs Win NT and IIS.
When I created our first form using the POST method, I get Error 405.
When I change the method to GET, I receive the Page Cannot Be Found error page.
Question #1: Can I use GET or do I have to use POST? What is the difference exactly in terms of OI's web apps…?
Question #2: We put cgi-bin directly under the domain folder associated with the IP address. Due to Error 405, it is unclear whether its location is correct. I would rather put cgi-bin in a more centralized folder (not under a domain name which represents only one of the apps). Can it be put directly under InetPub?
Thanks for your help…
At 02 OCT 2000 01:42PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
[notag]Try running INET_TRACE to ensure OICGI is actually working and receiving requests.
Is OICGI in the CGI-BIN directory, or whatever directory has been directed to process CGI scripts?
The difference between GET and POST is subtle. Essentially, GET sends the data back as a replacement URL and the information sent back to the server is passed as part of the location. This is limited to about 1K. POST sends the data as "attached" and is theoretically unlimited.
[<A HREF="http://www.sprezzatura.com" onMouseOver="window.status='Click here to visit our web site?';return(true)">The Sprezzatura Group</A>]
[<I>World Leaders in all things RevSoft</I>]
[<img src="http://www.sprezzatura.com/zz.gif">]
[<script language="javascript">function openNewPage () {window.location.href=(document.TOCNavigator.pageToGoTo.options[document.TOCNavigator.pageToGoTo.selectedIndex].value);document.TOCNavigator.pageToGoTo.selectedIndex="0";}end hiding from non-JS browsers –></script>] [<FORM ACTION "" METHOD=GET NAME="TOCNavigator" <SELECT NAME="pageToGoTo" SIZE=1 onChange="openNewPage()"> <OPTION>Pull down this menu to choose whereabouts on the Sprezz site to go <OPTION VALUE="http://www.sprezzatura.com">Home Page <OPTION VALUE="http://www.sprezzatura.com/whatsnew.htm">What's New <OPTION VALUE="http://www.sprezzatura.com/senl.htm">SENL <OPTION VALUE="http://www.sprezzatura.com/patches.htm">Download S/LIST <OPTION VALUE="mailto:support@sprezzatura.com">Send mail to support at Sprezzatura <OPTION VALUE="mailto:sales@sprezzatura.com">Send mail to sales at Sprezzatura </SELECT> </FORM>] [/notag] </QUOTE> —- === At 02 OCT 2000 01:46PM Randy Richard wrote: === <QUOTE>OICGI.exe has been placed in a cgi-bin folder under the directory (domain) assigned to the IP address referenced in the ACTION property for the FORM. 1) Will look into INET_TRACE. Thanks. 2) Are GET and POST interchangeable or is POST recommended and preferred? 3) Am also investigating whether MS Front Page Server Extensions are installed and configured properly… Thanks for the response. </QUOTE> —- === At 03 OCT 2000 08:11AM The Sprezzatura Group wrote: === <QUOTE>[notag]Get and Post are relatively interchangable. We prefer to use Post in most cases though. [<A HREF="http://www.sprezzatura.com" onMouseOver="window.status='Click here to visit our web site?';return(true)">The Sprezzatura Group</A>] [<I>World Leaders in all things RevSoft</I>] [<img src="http://www.sprezzatura.com/zz.gif">] [<script language="javascript">function openNewPage () {window.location.href=(document.TOCNavigator.pageToGoTo.options[document.TOCNavigator.pageToGoTo.selectedIndex].value);document.TOCNavigator.pageToGoTo.selectedIndex="0";}end hiding from non-JS browsers –></script>]
[<FORM ACTION "" METHOD=GET NAME="TOCNavigator"
<SELECT NAME="pageToGoTo" SIZE=1 onChange="openNewPage()">
<OPTION>Pull down this menu to choose whereabouts on the Sprezz site to go
<OPTION VALUE="http://www.sprezzatura.com">Home Page
<OPTION VALUE="http://www.sprezzatura.com/whatsnew.htm">What's New
<OPTION VALUE="http://www.sprezzatura.com/senl.htm">SENL
<OPTION VALUE="http://www.sprezzatura.com/patches.htm">Download S/LIST
<OPTION VALUE="mailto:support@sprezzatura.com">Send mail to support at Sprezzatura
<OPTION VALUE="mailto:sales@sprezzatura.com">Send mail to sales at Sprezzatura
</SELECT>
</FORM>] [/notag]
At 04 OCT 2000 06:32AM James Birnie wrote:
Both methods will generally work however GET info is appended to the action url and visible to the user, whereas POST is not. POST is contained within the body of the request. I've a feeling the string length of GET is limited to 256? also.
My advice: always POST