So what am I doing wrong?
It connects, so then I send this:
"GET /shifta/testfileVer.txt HTTP/1.1\r\nHost: freewebtown.com\r\nUser-Agent: Torque/1.0\r\n\r\n"
to try and get a file at:
http://www.freewebtown.com/shifta/testfileVer.txt
but instead it gives me this:
HTTP/1.1 301 Moved Permanently
Date: Fri, 26 Jun 2009 17:32:20 GMT
Server: Apache
Location: http://www.freewebtown.com/shifta/testfileVer.txt
Content-Length: 257
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.freewebtown.com/shifta/testfileVer.txt">here</a>.</p>
</body></html>