Loading ...
Sorry, an error occurred while loading the content.

HTTP 405

Expand Messages
  • Ian Fenelon
    Help! I m making some slow progress here. I get this error when I hit the submit button to test out a script I found in a book - HTTP Error 405 405 Method Not
    Message 1 of 1 , Apr 25, 2000
    • 0 Attachment
      Help!
       
      I'm making some slow progress here.
       
      I get this error when I  hit the submit button to test out a script I found in a book -
       

      HTTP Error 405

      405 Method Not Allowed

      The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting.

      Please contact the server's administrator if this problem persists.

       

      I have Perl installed.

      I have Microsoft Personal Web Server installed.

      I am using Windows 98.

      Both my HTML and Perl script are under the 'root' directory indicated by Personal Web Server (Inetpub/wwwroot).

      Here is my HTML

      <FORM ACTION="http://gbras0209/EchoTst.pl" METHOD="POST">
      <P>Please enter your name: <INPUT TYPE="text" NAME="name" SIZE=40>
      <P>E-mail address: <INPUT TYPE="text" NAME="email" SIZE=40>
      <P>Mailing address: <TEXTAREA NAME="address" ROWS=5 COLS=45></TEXTAREA>
      <P>Do you make homebrew?</B>
      <INPUT TYPE="radio" Name="hb" VALUE="Yes" CHECKED>Yes</B>
      <INPUT TYPE="radio" Name="hb" VALUE="No">No</B>
      <P><INPUT TYPE="submit" VALUE="Send Info">
      </FORM>

      Here is my script -

      #!/usr/local/bin/perl
      require("cgi-lib.pl");
      &ReadParse;
      print "Content-Type: text/html\n\n";
      print "<HTML><HEAD><TITLE>";
      PRINT "Results for: ",$in{'name'};
      print "<H1>Just For You</H1>";
      print "<P>Hi ",$in{'name'}," !\n";
      print "<HR>";
      print "<P>You live at ",$in{'address'};
      print "<P<STRONG>Is this Correct?</STRONG>";
      print "<P>Homebrewer? Lessee...",$in{'hb'};
      print "<P>You like homebrew!" if $in{'hb'} eq 'Yes';
      print "</BODY></HTML>";

      I'm not sure about the first 2 lines - are they valid in the Windows environment or do they pertain to Unix?

      I'm not even sure the script is being called....

      Can anyone help?

      Ian.

       

       

       

       

    Your message has been successfully submitted and would be delivered to recipients shortly.