[SWLUG] How do I find the reason for a website refusing to connect
Dick Porter
dick at acm.org
Mon Jul 19 12:24:53 UTC 2004
On Mon, 2004-07-19 at 12:40, Gareth Bowker wrote:
> telnet www.randomwebsite.com 80
>
> If that's coming back as connection refused there's not a huge amount
> more you can do. If it comes back with something, try typing:
>
> GET / HTTP/1.0
>
> then hit return twice. If you get some html back then you at least know
> that the server is working (although the html may not be what you're
> expecting, if the site's hosted on a server with several websites).
HEAD / HTTP/1.0
is more useful for diagnostics, as you get all the headers you would
with a GET, but without the pages of html to wade through.
To see if it's a virtual hosting problem,
HEAD / HTTP/1.1
Host: www.example.com
(return, return)
- Dick
More information about the Swlug
mailing list