45 users online (0 members and 45 guests)  


  Results 1 to 5 of 5

Related

  1. HTTP/1.1 500 Server Error    Forum: CGI Perl Forum
    Replies: 1
  2. Wondering why this script gets a 500 error    Forum: CGI Perl Forum
    Replies: 5
  3. Replies: 0
  4. Web-edit Script Error    Forum: PHP Forum
    Replies: 5
  5. PHP Upload script error    Forum: PHP Forum
    Replies: 14
  1. #1
    mpriest88's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2008
    Posts
    10

    Script Returns HTTP Error 405

    I am new to CGI & Perl. Right now I'm just trying to get a Test button return a page that says "You pressed the button". I've uploaded my cgi file to my webhost server to test it and I get the following error:
    The page cannot be displayed
    The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

    Please try the following:

    Contact the Web site administrator if you believe that this request should be allowed.
    Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    HTTP Error 405 - The HTTP verb used to access this page is not allowed.
    Internet Information Services (IIS)

    Here is the Form in the html:
    <form method="post" action="http://mpriest88.startlogic.com/cgi-bin/first.cgi">
    <input type="submit" value="Send">
    </form>

    And here is the entire cgi file named first.cgi:
    #!/usr/bin/perl -wT
    print "Content-type: text/html\n\n";
    print "<html><head><title>Hello World</title></head>\n";
    print "<body>\n";
    print "<h2>YOU PRESSED THE BUTTON!</h2>\n";
    print "</body></html>\n";

    I have no idea what I'm doing wrong. Any help or suggestions will be greatly appreciated.

    Thanks

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Script Returns HTTP Error 405

    Check with startlogic and see if you are allowed to use the POST method on a startlogic subdomain.

    My guess is no, hence the error.
    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  3. #3
    mpriest88's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2008
    Posts
    10

    Re: Script Returns HTTP Error 405

    I changed the Method to GET and it still didin't work

  4. #4
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Script Returns HTTP Error 405

    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  5. #5
    mpriest88's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2008
    Posts
    10

    Re: Script Returns HTTP Error 405

    Thanks for your help and time Dave. I talked to StartLogic it was a problem with their server. Again thank you for helping and time
    Mike



Tags for this Thread