in reply to Re^2: CGI redirect
in thread CGI redirect

Thanks guys. Now it works. I removed all the headers (header,start_html,end_html) and used :
print "Location: http://abc/xyz\n\n"
Now it redirects correctly.