http://www.perlmonks.org?node_id=199543


in reply to Why don't I get a redirect

Odd. I telnetted to port 80 on said box, sent "GET /glujodat.html" and got the following reponse (HTML removed:)

Could not determine the website that you were looking for.

Why did this happen?

This website, like many others, makes use of advanced features of modern web browsers. All standard web browsers released since June 1996 support these features. This list includes Microsoft Internet Explorer 3.0 and above, Netscape Navigator 2.0 and above, Opera, Lynx, Web TV, and others. You may want to install the latest version of your favorite web browser to take advantage of these advanced features. Until you upgrade your web browser, select the link below to access this website

Please select this link to continue

The link in question is /_dnscentral_scripts/findhost

I can only assume the page redirects you to that script, which does not exist.

Update: Two bits of info. Twiddling the Agent (as suggested by dws) didn't seem to make a difference in this case (though it's good general advice). And the error I got also mentioned: DNS Code: HTTP_HOST not available . I'm not sure if that's relevant, since HTTP_HOST is a server-side heading (I thought), but maybe it's useful.

Replies are listed 'Best First'.
Re: Re: Why don't I get a redirect
by dws (Chancellor) on Sep 20, 2002 at 17:39 UTC
    Odd. I telnetted to port 80 on said box, sent "GET /glujodat.html" ...

    If that box supports multiple virtual sites, you'll need to issue a complete HTTP/1.1 request, naming the site you're trying to fetch the page from.

    GET /glujodat.html HTTP/1.1 Host: www.nellware.com
    should suffice.

      Yes, specificing the agent as suggested does not work.
      And, telnet to the box as suggest above only returns a customized 404 page. I suspect that there is some sort of DNS forwarding going on, but I am not sure how it works in this case.


      I admit it, I am Paco.