--lCAWRPmW1mITcIfM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Jim Freeze (jim / freeze.org) wrote:

> On Mon, Oct 07, 2002 at 12:05:01PM +0900, Eric Hodel wrote:
> > Jim Freeze (jim / freeze.org) wrote:
> >=20
> > >  telnet mysite 80
> > > Trying 63.106.140.203...
> > > Connected to mysite
> > > Escape character is '^]'.
> > > GET /preload_timetest HTTP/1.0
> > >=20
> > > HTTP/1.1 404 Not Found
> > > Date: Mon, 07 Oct 2002 00:57:51 GMT
> > > Server: Apache/1.3.26 (Unix) mod_ruby/0.9.8 Ruby/1.6.7 PHP/4.0.6
> > > Connection: close
> > > Content-Type: text/html; charset=3Diso-8859-1
> > >=20
> > > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> > > <HTML><HEAD>
> > > <TITLE>404 Not Found</TITLE>
> > > </HEAD><BODY>
> > > <H1>Not Found</H1>
> > > The requested URL /preload_timetest was not found on this server.<P>
> > > <HR>
> > > <ADDRESS>Apache/1.3.26 Server at 63.106.140.203 Port 80</ADDRESS>
> > > </BODY></HTML>
> > > Connection closed by foreign host.
> > >=20
> > > Looks like Net/HTTP is doing the right thing, I'm just not
> > > sure what my browser does to get the page to work.
> >=20
> > Do you have Vhosts? =20
> =20
> It is a named host, but that has not affected net/http from working
> when the path is either a directory or a an existing file.
> However, for this case it is neither.
>=20
> > You should be sending the Host: mysite header after
> > the GET line
>=20
> I don't know what this is. What would it look like?

$ telnet 63.106.140.203 80
Trying 63.106.140.203...
Connected to 63.106.140.203
Escape character is '^]'
GET /preload_timetest HTTP/1.0
Host: mysite << type this also

HTTP/1.1 200 OK
=2E..

--=20
Eric Hodel - drbrain / segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04


--lCAWRPmW1mITcIfM
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9od/AMypVHHlsnwQRAq9pAJ4h2OJIWV9QodjWWA8xQy/lDBxDbACfd1Os
Bv/zrZJp/tCOKBGdw/OZgiQ=
=z+/v
-----END PGP SIGNATURE-----

--lCAWRPmW1mITcIfM--

Jim Freeze (jim / freeze.org) wrote:

> On Mon, Oct 07, 2002 at 12:05:01PM +0900, Eric Hodel wrote:
> > Jim Freeze (jim / freeze.org) wrote:
> >=20
> > >  telnet mysite 80
> > > Trying 63.106.140.203...
> > > Connected to mysite
> > > Escape character is '^]'.
> > > GET /preload_timetest HTTP/1.0
> > >=20
> > > HTTP/1.1 404 Not Found
> > > Date: Mon, 07 Oct 2002 00:57:51 GMT
> > > Server: Apache/1.3.26 (Unix) mod_ruby/0.9.8 Ruby/1.6.7 PHP/4.0.6
> > > Connection: close
> > > Content-Type: text/html; charset=3Diso-8859-1
> > >=20
> > > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> > > <HTML><HEAD>
> > > <TITLE>404 Not Found</TITLE>
> > > </HEAD><BODY>
> > > <H1>Not Found</H1>
> > > The requested URL /preload_timetest was not found on this server.<P>
> > > <HR>
> > > <ADDRESS>Apache/1.3.26 Server at 63.106.140.203 Port 80</ADDRESS>
> > > </BODY></HTML>
> > > Connection closed by foreign host.
> > >=20
> > > Looks like Net/HTTP is doing the right thing, I'm just not
> > > sure what my browser does to get the page to work.
> >=20
> > Do you have Vhosts? =20
> =20
> It is a named host, but that has not affected net/http from working
> when the path is either a directory or a an existing file.
> However, for this case it is neither.
>=20
> > You should be sending the Host: mysite header after
> > the GET line
>=20
> I don't know what this is. What would it look like?

$ telnet 63.106.140.203 80
Trying 63.106.140.203...
Connected to 63.106.140.203
Escape character is '^]'
GET /preload_timetest HTTP/1.0
Host: mysite << type this also

HTTP/1.1 200 OK
=2E..

--=20
Eric Hodel - drbrain / segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9od/AMypVHHlsnwQRAq9pAJ4h2OJIWV9QodjWWA8xQy/lDBxDbACfd1Os
Bv/zrZJp/tCOKBGdw/OZgiQ=
=z+/v
-----END PGP SIGNATURE-----