Redirection upon a POST

Allan Sandfeld Jensen kde at carewolf.com
Tue Jan 25 23:37:44 GMT 2005


On Tuesday 25 January 2005 22:36, David Faure wrote:
> 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?
>
It is a 302 and not 303. It should according the specification either be 
refetched with GET or resend with POST, but since 303 specifically means go 
there with GET, 302 is ordinary interpreted as repeat current command to new 
location. Since it is a POST there should be no visible redirection.

`Allan




More information about the kfm-devel mailing list