Re: [Nolug] Help please

From: Ron Johnson <ron.l.johnson_at_cox.net>
Date: Fri, 02 Apr 2004 11:13:12 -0600
Message-Id: <1080925992.24525.124.camel@haggis.homelan>

On Fri, 2004-04-02 at 05:06, pltaylor wrote:
> > Paul, what happens when you try to telnet to google's http port:
> >
> > $ telnet www.google.com 80
> >
> > If you get back something like
> >
> > Trying 64.233.161.99...
> > Connected to www.google.com.
> > Escape character is '^]'
> >
> > then you can try getting their index page directly:
> >
> > GET / HTTP/1.1
> >
> > (be sure to hit enter twice after the 1.1). If it doesn't connect or
> > it hangs, though, that's where your problem is.
> >
> > Kevin
> >
> > ___________________
> > Nolug mailing list
> > nolug@nolug.org
>
> plt@chon:~$ GET / HTTP/1.1
>
> <HTML>
> <HEAD>
> <TITLE>Directory /</TITLE>
> <BASE HREF="file:/">
> </HEAD>
> <BODY>
> <H1>Directory listing of /</H1>
[snip]
> </UL>
> </BODY>
> </HTML>
> <!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 /1.1 was not found on this server.<P>
> <HR>
> <ADDRESS>Apache/1.3.22 Server at www.http.com Port 80</ADDRESS>
> </BODY></HTML>
> plt@chon:~$
>
>
> plt@chon:~$ telnet www.google.com 80
> Trying 216.239.41.104...
> plt@chon:~$
>
> waited a minute before giving up.

You did it backwards.

First you do "telnet www.google.com 80".
Then you see:
  Trying 216.239.39.104...
  Connected to www.google.com.
  Escape character is '^]'.

*Immediately* type "GET / HTTP/1.1" (no quotes, of course) and press
<Enter> twice.

You should see a bunch of html stream across the window.

-- 
-----------------------------------------------------------------
Ron Johnson, Jr. ron.l.johnson@cox.net
Jefferson, LA USA
"I have created a government of whirled peas..."
Maharishi Mahesh Yogi, 12-May-2002, CNN, Larry King Live
___________________
Nolug mailing list
nolug@nolug.org
Received on 04/02/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST