cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Dirk Manske <dm_at_nettraffic.de>
Date: Mon, 15 Apr 2002 18:02:19 +0200

Am Montag 15. April 2002 17:06 schrieb Daniel Stenberg:
> Do the browsers do that check-for-? logic or how come you introduced that?

Code from Konqueror 3.0:

        // 301 Moved permanently
        // 302 Found (temporary location)
        // 303 See Other
        if (m_request.method != HTTP_HEAD && m_request.method != HTTP_GET)
        {
           // 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...

.
DM
Received on 2002-04-15