Fix HTTP redirection handling (3XX status code)

Review Request #115651 - Created Feb. 11, 2014 and submitted

Information
Dawit Alemayehu
kdelibs
origin/KDE/4.12
330795
Reviewers
kdelibs
ahartmetz, dfaure
The attached patch fixes how we handle HTTP redirection. Currently KIO does not correctly handle a "303 See Other" response. Instead of converting the redirection request to a GET operation as specified in the RFC, KIO simply repeats the same operation with the redirect URL. Additionally, KIO does not handle redirection of a delete operation that is handled internally.
Run tests at

http://greenbytes.de/tech/tc/httpredirects/t301methods.html
http://greenbytes.de/tech/tc/httpredirects/t302methods.html
http://greenbytes.de/tech/tc/httpredirects/t303methods.html
Andrea Iacovitti
Commit Hook
Commit Hook
This review has been submitted with commit 863f775bacf0a8f7a8ec34f558cc46ceabeacdf8 by Andrea Iacovitti to branch master.
Dawit Alemayehu
Review request changed

Status: Closed (submitted)

Loading...