Implement POST -> POST redirection support in KIO

Review Request #116017 - Created Feb. 24, 2014 and submitted

Information
Dawit Alemayehu
kdelibs
origin/KDE/4.13
330890
Reviewers
kdelibs
aiacovitti, dfaure
The attached patch implements support for redirecting one POST request to another in KIO. Unless implicitly disabled currently the automatic redirection handler in KIO always redirects any POST requests to a GET.

Note this patch also changes the original KIO::http_post implementation that accepted a QByteArray to simply store the data in a QBuffer and call the newer implementation that uses a QIODevice. I have updated the documentation for the original implementation to state as such and encourage developers to directly use the newer http_post method instead. Not sure if everyone will agree with my implementation but it makes it much easier to resend POST data on redirection.
http://greenbytes.de/tech/tc/httpredirects/t307methods.html
http://greenbytes.de/tech/tc/httpredirects/t308methods.html
http://www.w3.org/People/Bos/Test/redirect307.html

Issues

  • 0
  • 9
  • 0
  • 9
Description From Last Updated
David Faure
Andrea Iacovitti
Dawit Alemayehu
Dawit Alemayehu
Andrea Iacovitti
Andrea Iacovitti
Dawit Alemayehu
Dawit Alemayehu
Andrea Iacovitti
Dawit Alemayehu
Dawit Alemayehu
Commit Hook
This review has been submitted with commit 5fd9d1a7b2d0afda2bf76bcdbd4df5577b893387 by Dawit Alemayehu to branch KDE/4.13.
Dawit Alemayehu
Review request changed

Status: Closed (submitted)

Loading...