Using:
const char request[] = "GET / HTTP/1.0\r\n"
"\r\n";
I get the following:
HTTP/1.1 200 OK
Date: Sun, 23 Mar 2008 21:40:01 GMT
Server: Apache
Connection: close
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>Index of /</TITLE>
<META NAME="generator", CONTENT="mod_autoindex"> </HEAD>
<BODY bgcolor="#ffffff" text="#000000">
<TABLE><TR><TD bgcolor="#ffffff" class="title">
<FONT size="+3" face="Helvetica,Arial,sans-serif">
<B>Index of /</B></FONT>
</TD></TR></TABLE><PRE><IMG border="0" src="/icons/blank.gif" ALT=" "> <A HREF="?N=D">Name</A> <A HREF="?M=A">Last modified</A> <A HREF="?S=A">Size</A> <A HREF="?D=A">Description</A>
<HR noshade align="left" width="80%">
<IMG border="0" src="/icons/back.gif" ALT="[DIR]"> <A HREF="/">Parent Directory</A> 02-Nov-2004 10:22 -
<IMG border="0" src="/icons/text.gif" ALT="[TXT]"> <A HREF="502-iloapp.html">502-iloapp.html</A> 17-Dec-2007 18:14 1k
<IMG border="0" src="/icons/folder.gif" ALT="[DIR]"> <A HREF="apache2-default/">apache2-default/</A> 24-Jan-2008 11:46 -
<IMG border="0" src="/icons/folder.gif" ALT="[DIR]"> <A HREF="default/">default/</A> 20-Sep-2006 16:34 -
<IMG border="0" src="/icons/folder.gif" ALT="[DIR]"> <A HREF="external-sla/">external-sla/</A> 18-Dec-2007 10:48 -
<IMG border="0" src="/icons/folder.gif" ALT="[DIR]"> <A HREF="iloapp/">iloapp/</A> 12-Sep-2006 11:39 -
<IMG border="0" src="/icons/folder.gif" ALT="[DIR]"> <A HREF="monitor/">monitor/</A> 18-Dec-2007 10:48 -
<IMG border="0" src="/icons/folder.gif" ALT="[DIR]"> <A HREF="one.com-external/">one.com-external/</A> 15-Sep-2006 02:47 -
<IMG border="0" src="/icons/folder.gif" ALT="[DIR]"> <A HREF="phpmyadmin/">phpmyadmin/</A> 22-Jan-2008 15:01 -
</PRE><HR noshade align="left" width="80%">
</BODY></HTML>
...and I have no idea where it comes from, I know of no file looking like that. What file is supposed to be sent back to me doing the request above? It sure isen't the index page.