Fix for 20000409.001
authorStephen P. Potter <spp@ds.net>
Fri, 17 Nov 2000 08:55:45 +0000 (03:55 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 17 Nov 2000 14:12:31 +0000 (14:12 +0000)
Message-Id: <200011171355.IAA05104@spotter.yi.org>

p4raw-id: //depot/perl@7725

pod/perlfaq9.pod

index ddc577b..4c701ca 100644 (file)
@@ -224,13 +224,11 @@ available from CPAN.
 
 =head2 How do I redirect to another page?
 
-Instead of sending back a C<Content-Type> as the headers of your
-reply, send back a C<Location:> header.  Officially this should be a
-C<URI:> header, so the CGI.pm module (available from CPAN) sends back
-both:
+According to RFC 2616, "Hypertext Transfer Protocol -- HTTP/1.1", the
+preferred method is to send a C<Location:> header instead of a
+C<Content-Type:> header:
 
     Location: http://www.domain.com/newpage
-    URI: http://www.domain.com/newpage
 
 Note that relative URLs in these headers can cause strange effects
 because of "optimizations" that servers do.