On Mon, Nov 12, 2001 at 05:44:35PM -0500, Jeremy Kerwin wrote:
> The only problem is, when he runs wget with out web address of
> http://www.cardsetc.com, he gets an error message saying.
>
> "index.htm: Unknown/unsupported protocol."
Here's what happens when you ask your web server for `/':
[johnc@dropbear ~]$ telnet www.cardsetc.com 80
Trying 203.42.157.131...
Connected to www.cardsetc.com.
Escape character is '^]'.
GET / HTTP/1.0
HTTP/1.1 302 Found
Server: Lotus-Domino/5.0.7
Date: Mon, 12 Nov 2001 22:50:12 GMT
Location: index.htm
Connection: close
Content-Type: text/html
Content-Length: 297
<HTML><HEAD><TITLE>Redirection</TITLE></HEAD><BODY><H1>Redirection</H1>This
document can be found<A HREF="index.htm">elsewhere.</A><P>You see this
messagebecause your browser does not support automaticredirection
handling. <P><HR><ADDRESS><A HREF="/">Lotus-Domino
5.0.7</A></ADDRESS></BODY></HTML>Connection closed by foreign host.
Run tcpdump and watch what wget does. It requests `/', gets the above
response, and closes the connection. wget doesn't follow the
redirection, but instead gives a misleading error message. This may be
due to the redirection not being to an absolute URL, or it may be simply
that wget doesn't do redirections.
Cheers,
John
--
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug