Hi... I'm trying to request that my script reads fileserver.txt on my http server. I try using
sockwrite -n $sockname GET updates/filserver.txt
sockwrite -n $sockname Host: depodra.afraid.org
sockwrite -n $sockname Connection: keep-alive
sockwrite $sockname $crlf
But the $crlf returned is,
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br /></p>
<address>Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2 Server at localhost Port 80</address>
Can anyone help me please?