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

List:       kde-devel
Subject:    Re: KIO::http_post authenticated requests
From:       George Kiagiadakis <kiagiadakis.george () gmail ! com>
Date:       2010-07-16 19:15:15
Message-ID: AANLkTimuq2sM6Di251Qvnw9Uee5gYeDCQv1MqLL4HsBc () mail ! gmail ! com
[Download RAW message or body]

On Fri, Jul 16, 2010 at 9:30 PM, Aleix Pol <aleixpol@kde.org> wrote:
> Hi,
> I am creating some support for reviewboard, since the API is exposed using
> HTTP_POST, I'm using that. Right now, my main problem is that I need
> authentication. I was told that it would just work by putting it into the
> url with QUrl::setUserName and QUrl::setPassword but it's not really working
> out, I keep getting errors saying I'm not logged in, I'm pretty sure the
> rest of the request is correct because it works with "curl".
> Could someone tell me how can I get to work? Any other code that's doing
> anything similar?
> Thanks,
> Aleix
>

I don't know how reviewboard works and how you are supposed to post a
new review, but I assume that you need to login from the login page
first, which will then save a cookie about your session and then post
without using a username and password on the url. Afaik, putting a
username and password on the url is useful for authenticating with the
http server, not with the web application running on the http server.

DrKonqi is doing something similar for logging in to bugs.kde.org...
You may want to have a look there.

Regards,
George
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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