Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2010
    Posts
    5

    Unanswered: GET Request - Receiving 500 Server Error

    Hello everyone,

    I am running into an issue when attempting to pull up php webpages from my server via GET requests in Telnet. I can connect to my server via Telnet, perform a GET request on a regular html page and it echoes fine, but whenever I perform a GET request that uses .php the page gives me an "Error 500 - Internal Server Error"

    Code:
    GET http://myserver.com/nameinsert.php?wname=steve
    When I open the page in my Firefox browser, the script runs correctly and puts the name steve in the database, and takes me to a new page that says "data inserted". But when accessing the same page via telnet I receive this error:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>Error 500 - Internal server error</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="cache-control" content="no-cache" />
        </head>
        <body style="font-family:arial;">
        <h1 style="color:#0a328c;font-size:1.0em;">Error 500 - Internal server error</h1>
        <p style="font-size:0.8em;">An internal server error has occured!<br/>Please try again later.</p>
    </body>
    </html>
    *NOTE: For some reason I cannot include the "HTTP/1.1" at the end of the GET statement, because it returns an error. It seems as though it reads the second set of http:/ as the beginning of a new website and returns an error stating to include the hostname in the address. When I do not include HTTP/1.1 it works fine and echos the html.

    Any idea what could be causing this 500 error? I am not sure if it is my server settings, I am using the default settings for a 1and1.com mysql database. Thank you in advance for helping me out.

  2. #2
    Join Date
    Jul 2010
    Location
    Winnipeg, Canada
    Posts
    7
    500 errors are very generic and don't offer much information. The problem could be anything. You will need to consult your webserver logs, which may provide some insight.

  3. #3
    Join Date
    Aug 2010
    Posts
    2
    Have you attempted to do a Google Search for the specific 500 error you are getting. This may help in addition to what R45 stated.

  4. #4
    Join Date
    Aug 2010
    Posts
    2
    In addition to what R45 stated, have you done a google search for this error?

  5. #5
    Join Date
    Jun 2010
    Posts
    5
    Thanks guys for helping me out. I contacted my ISP and they stated I am getting the error because I am using shared hosting. They told me to set up a dedicated server to solve this issue.

    Thanks again for helping me out, have a good one!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •