Redirection upon a POST

David Faure faure at kde.org
Tue Jan 25 21:36:53 GMT 2005


http://www.gandi.net/whois?l=en doesn't work in konqueror: if you type kde.org and hit Enter,
the same page appears again, instead of showing the "please copy this security code" text.

Using the URL http://www.gandi.net/whois?l=en&domain=kde.org does the job just fine.

The problem is that the HTTP POST leads to a redirection (Location: header),
which makes khtml reload "http://www.gandi.net/whois?l=en", losing the initial
HTML result which came with the POST response.
Why doesn't Mozilla follow the redirection? Hmm, more precisely, why does it
appear to follow it (the location bar doesn't show whois.html.en) without
reloading the new url?

kio_http: (559) POST /whois.html.en HTTP/1.1
kio_http: (559) Connection: Keep-Alive
kio_http: (559) User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) KHTML/3.3.91 (like Gecko)
kio_http: (559) Referer: http://www.gandi.net/whois?l=en
kio_http: (559) Pragma: no-cache
kio_http: (559) Cache-control: no-cache
kio_http: (559) Accept: text/html, image/jpeg, image/png, text/*, image/*, */*
kio_http: (559) Accept-Encoding: x-gzip, x-deflate, gzip, deflate
kio_http: (559) Accept-Charset: utf-8, utf-8;q=0.5, *;q=0.5
kio_http: (559) Accept-Language: en
kio_http: (559) Host: www.gandi.net
kio_http: (559) Content-Type: application/x-www-form-urlencoded
kio_http: (559) ============ Received Response:
kio_http: (559) "HTTP/1.1 302 Found"
kio_http: (559) "Date: Tue, 25 Jan 2005 21:31:18 GMT"
kio_http: (559) "Server: Apache"
kio_http: (559) "Location: http://www.gandi.net/whois?l=en"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kio_http: (559) "Keep-Alive: timeout=15, max=100"
kio_http: (559) "Connection: Keep-Alive"
kio_http: (559) "Transfer-Encoding: chunked"
kio_http: (559) "Content-Type: text/html; charset=iso-8859-1"
kio_http: (559) --empty--

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list