cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: POST+30x=GET? [konquerors way]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 16 Apr 2002 08:24:31 +0200 (MET DST)

On Mon, 15 Apr 2002, Dirk Manske wrote:

> // NOTE: This is wrong according to RFC 2616. However,
> // because most other existing user agent implementations
> // treat a 301/302 response as a 303 response and preform
> // a GET action regardless of what the previous method was,
> // many servers have simply adapted to this way of doing
> // things!! Thus, we are forced to do the same thing or we
> // won't be able to retrieve these pages correctly!! This
> // implementation is therefore only correct for a 303 response
> // according to RFC 2616 section 10.3.2/3/4/8
> m_request.method = HTTP_GET; // Force a GET
>
> Mmm, they allways force GET. But Konqueror does not have reached world
> domination yet...
>
> I've looked into Mozilla 0.9.7, but too much code. I've not found any special
> treatings of 30x (only caching and 305 proxy), so I bet they always do a GET.
> I will build a small test suit to check this...

I think it makes better sense to always use GET than having the check-for-?
stuff, as it makes things harder to understand and follow.

Can you please re-post your patch to do that, and to include a huge
alert/description comment like the one above?

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-04-16