Wednesday, August 03, 2005

google.com redirecting to google.co.nz

We've had the weirdest thing happen to us at work the past couple days. Going to www.google.com redirects us to www.google.com.nz. Even when just using a telnet client to manually make the request it happens, so I'm sure it's not just cookies. And clicking on Go to Google.com still leaves me with a page that says Go to Google New Zealand. Weird!

Here's the output from the telnet session if anyone is interested (some lines are broken up so that they fit in the blogger template:
# telnet www.google.com 80
Trying 66.102.7.99...
Connected to www.google.com.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.0 302 Found
Location: http://www.google.co.nz/cxfer?c=PREF%3D:TM%3D1123089653: S%3D782JnXlZiZszEbUZ&prev=/
Set-Cookie: PREF=ID=155668e6e3831c79:CR=1:TM=1123089653:LM=1123089653:S=xcmaIuHxEGXCUaQX; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
Content-Type: text/html
Server: GWS/2.1
Content-Length: 217
Date: Wed, 03 Aug 2005 17:20:53 GMT
Connection: Keep-Alive

<HTML><HEAD><TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.co.nz/cxfer?c=PREF%3D:TM%3D1123089653: S%3D782JnXlZiZszEbUZ&prev=/">here</A>.
</BODY></HTML>
Connection closed by foreign host.
#
My best guess is that google does some sort of IP address lookup to guess what country you are in and has got our IP address range wrong!

Maybe the Gangsta Programma can help explain, he works at Google.

3 comments:

Pedram Keyani said...

Yes, the problem is that the rocket powered google-flopper was having an alpha flow pipe replaced at the local nurfhearder shop. While it was being repaired, they put me in charge of all URL based operations but I got drunk and fell asleep. Sorry about Dave, will you forgive me?

Unknown said...

Ah, that clears it all up!

Unknown said...

it works for: GET google.co.nz/ HTTP/1.1