If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > GET Request - Receiving 500 Server Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-10, 02:19
Joe3Harris Joe3Harris is offline
Registered User
 
Join Date: Jun 2010
Posts: 5
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.
Reply With Quote
  #2 (permalink)  
Old 07-15-10, 17:43
R45 R45 is offline
Registered User
 
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.
Reply With Quote
  #3 (permalink)  
Old 08-23-10, 17:42
smoothies4all smoothies4all is offline
Registered User
 
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.
Reply With Quote
  #4 (permalink)  
Old 08-23-10, 17:47
smoothies4all smoothies4all is offline
Registered User
 
Join Date: Aug 2010
Posts: 2
In addition to what R45 stated, have you done a google search for this error?
Reply With Quote
  #5 (permalink)  
Old 08-23-10, 18:23
Joe3Harris Joe3Harris is offline
Registered User
 
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!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On