[TAG] linuxgazette.net redirecting to gentikayos.com
francis at daoine.org
Wed Mar 7 16:25:13 MSK 2007
On Wed, Mar 07, 2007 at 06:25:55PM +0400, MNZ wrote:
> Whenever I try to get to linuxgazette.net:80 from a perl script I get a
> redirect to gentikayos.com
When I do it and leave out the http Host: header, I get the content for
genetikayos.com, but I don't get a redirect.
It might just be a terminology thing.
> What can be causing this?
Your script isn't doing what it should.
What you should do is send lines like
GET / HTTP/1.0
to the tcp port 80. If your client doesn't send the Host: header, it
can't really expect to work well on the current web. (There are other
headers that probably should be sent too, as per RFC. And if you're a
spider, there are other things to be aware of.)
Module authors hopefully wrote correct clients, if you're in a rush to
"have a client" rather than "write a client", that might be a useful
path to take.
All the best,
Francis Daly francis at daoine.org
More information about the TAG