[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    1.1 kioslave (HTTP redirection) bug ?
From:       David Faure <David.Faure () insa-lyon ! fr>
Date:       1999-02-14 11:08:05
[Download RAW message or body]

Please have a look at bug #649 :
what happens is a HTTP redirection in a loop.

Had a look at kioslave/http.cpp :

    else if ( strncasecmp( buffer, "Location: ", 10 ) == 0 )
            {
                Close();
                KURL u( url );
                KURL u2( u, buffer + 10 );
                emit redirection( u2.url() );
//              return Open( &u2, currentMode );
                bytesleft = 0;
                return (SUCCESS);
            }
 
        }
        emit mimeType( mType );
        if (!Cookie.isEmpty())
        {
           emit cookie( url.data(), Cookie.data() );
        }   

The redirection is emitted before the cookie is, and I think that's the
problem - shouldn't there be the cookie first, then the redirection ?
Ok, I tested adding the "if (...) emit cookie" before the redirection, and
added a debug(). There _is_ a cookie, as well as the redirection, but the
hack doesn't change anything.
Could somebody with more knowledge of kioslaves, HTTP, redirection, and
cookies have a look ? (I know quite nothing about the last 3!)...

-- 
 ____________________________________________________________________
|                                                                    |
|  David FAURE                                                       |
|  E-mail : David.Faure@insa-lyon.fr, faure@kde.org                  |
|  http://www.insa-lyon.fr/People/AEDI/dfaure/index.html             |
|____________________________________________________________________|

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic