Bug 54654 - reload after redirecting from POST request
Summary: reload after redirecting from POST request
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: http (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR critical
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-14 22:07 UTC by anders pearson
Modified: 2003-03-02 00:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.