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

List:       kde-devel
Subject:    Re: KIO::http_post authenticated requests
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2010-07-22 18:49:05
Message-ID: AANLkTimBnHR5jJzedCYbDnxy6-9atotx19pqeeobJfxR () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Fri, Jul 16, 2010 at 9:15 PM, George Kiagiadakis <
kiagiadakis.george@gmail.com> wrote:

> 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 <<
>

No it doesn't work like that. It's not like I should have a cookie but it
uses some http authorization (like the -u argument in curl).

Any idea on that?

[Attachment #5 (text/html)]

<div class="gmail_quote">On Fri, Jul 16, 2010 at 9:15 PM, George Kiagiadakis <span \
dir="ltr">&lt;<a href="mailto:kiagiadakis.george@gmail.com">kiagiadakis.george@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;"> <div><div></div><div class="h5">On Fri, Jul 16, 2010 \
at 9:30 PM, Aleix Pol &lt;<a href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>&gt; \
wrote:<br> &gt; Hi,<br>
&gt; I am creating some support for reviewboard, since the API is exposed using<br>
&gt; HTTP_POST, I&#39;m using that. Right now, my main problem is that I need<br>
&gt; authentication. I was told that it would just work by putting it into the<br>
&gt; url with QUrl::setUserName and QUrl::setPassword but it&#39;s not really \
working<br> &gt; out, I keep getting errors saying I&#39;m not logged in, I&#39;m \
pretty sure the<br> &gt; rest of the request is correct because it works with \
&quot;curl&quot;.<br> &gt; Could someone tell me how can I get to work? Any other \
code that&#39;s doing<br> &gt; anything similar?<br>
&gt; Thanks,<br>
&gt; Aleix<br>
&gt;<br>
<br>
</div></div>I don&#39;t know how reviewboard works and how you are supposed to post \
a<br> new review, but I assume that you need to login from the login page<br>
first, which will then save a cookie about your session and then post<br>
without using a username and password on the url. Afaik, putting a<br>
username and password on the url is useful for authenticating with the<br>
http server, not with the web application running on the http server.<br>
<br>
DrKonqi is doing something similar for logging in to bugs.kde.org...<br>
You may want to have a look there.<br>
<br>
Regards,<br>
George<br>
<br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> </blockquote></div><br><div>No it doesn&#39;t work like \
that. It&#39;s not like I should have a cookie but it uses some http authorization \
(like the -u argument in curl).</div><div><br></div><div>Any idea on that?</div>



>> 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