Bug 54654

Summary: reload after redirecting from POST request
Product: [Frameworks and Libraries] kio Reporter: anders pearson <apearson>
Component: httpAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: critical    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description anders pearson 2003-02-14 22:07:42 UTC
Version:           unknown (using KDE 3.1.0)
Installed from:    Gentoo
Compiler:          gcc version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)
OS:          Linux (i686) release 2.4.19-gentoo-r10

if you submit a POST request to a page and the page replies with a 302 Moved Temporarily, redirecting to a second page and reload the second page, konqueror reloads the POST request rather than the request for the page it was redirected to. 

here's a test case: 
___________
a.html:

<html>
 <head><title>test part a</title>
</head>
<body>
<form action="b.pl" method="POST">
<input type="submit" value="submit a post request" />
</form>
</body>
</html>

__________
b.pl

#!/usr/bin/perl -wT

# File: b.pl

use strict;
use CGI;

my $cgi = new CGI();

# do some stuff to process the POST
# request and then immediately redirect away

print $cgi->redirect('http://www.google.com/');

________

load a.html, click the button. once google loads, hit reload.  hitting reload should reload the request to google.
Comment 1 Dawit Alemayehu 2003-03-02 00:49:42 UTC
Hello Anders, 
 
Fixed and backported to the stable 3_1_BRANCH as well. 
Thanks for the report. 
 
Regards, 
Dawit A.