[TAG] linuxgazette.net redirecting to gentikayos.com
mnzaki at gmail.com
Wed Mar 7 17:17:55 MSK 2007
On Wed, Mar 07, 2007 at 01:25:13PM +0000, Francis Daly wrote:
> On Wed, Mar 07, 2007 at 06:25:55PM +0400, MNZ wrote:
> Hi there,
> > 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.
For me, I get a "301 Moved Permanently"
> 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
> Host: linuxgazette.net
Thanks. I did read the RFC but I guess the "Host: " part was in one of the
sections I skipped :-)
> 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,
I'm actually writing a tiny client to just check that links ar ok (2xx). Now
don't tell me there's a header to do that instead of GETing
//MNZ\\ "We all need mirrors to remind ourselves who we are"
-- Leonard Shelby
More information about the TAG