devi fare queste modifiche:

print ("Content-Type: text/html\n\n");
print ("<html><head><title></title>
<meta http-equiv=\"refresh\" content=\"2; url=http://www.google.it\">
</head>\n");