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.