in reply to Problem with HEAD.. but I think can be related with DNS

If you get a 404, then DNS is not the problem.

If you can resolve the name to its IP address then DNS is not the problem.

What steps have you taken to eliminate DNS as the problem?

  • Comment on Re: Problem with HEAD.. but I think can be related with DNS

Replies are listed 'Best First'.
Re^2: Problem with HEAD.. but I think can be related with DNS
by hazylife (Monk) on Mar 20, 2014 at 16:49 UTC
    There was a typo in the URL.
Re^2: Problem with HEAD.. but I think can be related with DNS
by angeloulivieri (Novice) on Mar 20, 2014 at 16:50 UTC
    Yes.. you are right. If the server gives 404 the IP address is resolved. But what can be the problem otherwise? Do you tried this code? Is it working for you?

      At least I get no 404 error for the URL when I paste it into my browser.

      Maybe you want to print out more stuff while your program runs, and use LWP::Debug to see what actually happens? If the server is giving you a 404 but not other people, maybe the server administrators have banned your IP address, your user agent or some other attribute associated with you.

        I also get no error 404 by using the browser. The problem accessing it with PERL. If I can access it, I suppose that my IP is not banned. Maybe the User Agent. Thank you for giving me this reference to Debug function. I'll go through it...