Redirecting Using CGI.pm

To generate a redirection header in CGI.pm use the following syntax where $q is the cgi handle:
print $q->redirect(‘http://wyzaerd.com/documents/resume.pdf’);
If you use redirection like this, you should not print out a header as well.
You should always use full URLs (including the http: or ftp: part) in redirection requests. Relative URLs will NOT work correctly.
Leave Your Comment
All fields marked with "*" are required.