Chris Devers wrote:
Go back to the original telnet line, establish a connection, and then type one word, followed by hitting the enter key twice. (Did you see how CGI scripts have to terminated headers with "\n\n" ? Hitting return twice is the same thing.)
This should bring back a response from the server.
Tried this very quickly: worked fine!! Almost identical to your output.
On the other hand, now that we know you have Linux, you can probably do this more easily by using the "lynx" text-mode web browser. Try one of these lines:
lynx -dump -head http://localhost/ lynx -dump -head http://localhost:8080/
You should get back responses something like this:
I did the lynx -dump -head http://localhost:8080/ command and I saw a few more lines than what you list, so this implies apache is in good shape and listening but impervious to my requests.
$ lynx -dump -head http://localhost:8080/
HTTP/1.1 200 OK
Date: Fri, 13 Aug 2004 15:38:50 GMT
Server: Apache/1.3.29 (Darwin) mod_perl/1.26 mod_ssl/2.8.16 OpenSSL/0.9.7b
Connection: close
Content-Type: text/html
$ lynx -dump -head http://localhost:8080/
HTTP/1.1 200 OK
Date: Fri, 13 Aug 2004 15:38:55 GMT
Server: Apache/1.3.29 (Darwin) mod_perl/1.26 mod_ssl/2.8.16 OpenSSL/0.9.7b
Connection: close
Content-Type: text/html
The details may vary, but it'll be substantially the same block.
Here is what I am seeing that seems to have more content than you listed. Are any clues in this listing?
HTTP/1.1 200 OK Date: Fri, 13 Aug 2004 16:06:29 GMT Server: Apache/1.3.31 (Unix) Content-Location: index.html.en Vary: negotiate,accept-language,accept-charset TCN: choice Last-Modified: Fri, 04 May 2001 00:00:38 GMT ETag: "241e73-5b0-3af1f126;4116b8e2" Accept-Ranges: bytes Content-Length: 1456 Connection: close Content-Type: text/html Content-Language: en Expires: Fri, 13 Aug 2004 16:06:29 GMT
If you can get this far, Apache is basically working.
If you hit errors here, you need to fix Apache.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>