Re: 401 error
- From: Fabio <marmis85 gmail com>
- To: Sam Bull <sam hacking sent com>, libsoup-list gnome org
- Subject: Re: 401 error
- Date: Thu, 16 Jul 2015 17:31:40 +0200
Hello,
I'm not really 100% familiar whit the library, so sorry if I jump in the discussion, but reading the docs and from my experiments I was under the impression that, assuming that the server side implementation is correct, the "right" flow would be to send your SoupMessage WITHOUT concatenating user and password in the url, the server would respond with some form of 401, the "authenticate" signal would be emitted by the library and
soup_auth_authenticate () should be called in the signal handler, and to avoid the useless 401 when you are sure the url requires authentication there is
soup_auth_manager_use_auth ()
Did you check if the "authenticate" signal is emitted if you don't put user/pass in the url?
Are my assumptions wrong?
Fabio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]