This was an oddity of libsoup that no other GObject library does.
The downsides are mostly that tooling doesn't expect it so its
easy to not document them or not define them and developers don't
expect them so they don't realize the defines are just property names
or search codebases for one but miss the other.
It just doesn't follow convention.
A bug introduced in commit 53a3dd24e5 (a
copy/paste mistake has replaced a variable name) causes the example
httpd to not handle directories correctly.
Additionally, we add a comment recommending programmers to provide a
descriptive error message. This could give users and programmers a hint
as to what went wrong.
Fixes#2
Does not build libsoup-gnome and exclude gssapi and ntlm_auth, and also
misses other features of the autotools build system. But generates a
useable library.
I'm trying to debug an ostree issue with client cert interaction with
a specific server, and it's easier to drop ostree out of the picture
and use this libsoup equivalent of `curl`.
https://bugzilla.gnome.org/show_bug.cgi?id=768524
If a "WWW-Authenticate: Negotiate" HTTP header is spotted libsoup will check if
the host is on blacklist and the authentication fails if so. Otherwise the host
is compared against a trusted URIs (if the trusted URIs list is not set all
the HTTPS requests are trusted by default) and then processed. The trusted URIs
list and blacklist are both created when a SoupNegotiateAuth is created. The
trusted URIs list (blacklist) is parsed from the SOUP_GSSAPI_TRUSTED_URIS (
SOUP_GSSAPI_BLACKLIST_URIS) environment variable that expects the URIs be comma
separated (e.g. "http://www.example.com,https://www.test.com:80"). Then the
request is processed by the GSS library (the SPNEGO mechanism is used) which
produces a token that is send back to the server in the next request. The reply
is then again processed by the GSS library and the authentication succeeds by
receiving the GSS_S_COMPLETE status or we continue negotiating when the
GSS_S_CONTINUE_NEEDED is received.
The SoupAuth object is marked as not authenticated if a user will try to call
the soup_auth_authenticate() with the credentials provided as this is not
supported.
If the libsoup is configured with GSS-Negotiate support, a Kerberos library with
GSSAPI support needs to be available on the system (MIT Kerberos was tested
while working on this). Developers can check whether the libsoup was
compiled with the GSS-Negotiate support enabled by checking the
soup_auth_negotiate_supported() function.
To easily test the GSS-Negotiate functionality a new argument "N" was added to
the examples/get utility.
A support for NTLMSSP is provided by this patch given that a Kerberos library
supports NTLMSSP mechanism via GSSAPI. For MIT Kerberos one can use gss-ntlmssp
module, https://fedorahosted.org/gss-ntlmssp/.
Co-Authored-By: Tomas Popela <[email protected]>
Co-Authored-By: David Woodhouse <[email protected]>
Co-Authored-By: Dan Winship <[email protected]>
They were not marked as deprecated yet to give people time to port over
without getting annoying warnings. Now that we are at the start
of a cycle let's mark them.
Fix all the consequent deprecation warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=757146
Add a method to allow a SoupServer handler to steal the connection
from the server, and use this in simple-proxy to implement CONNECT.
Incorporates a patch from Lionel Landwerlin.
The "get" example is now able to handle a new "-o"
parameter specifying the path of a file in which
to write the received body of a "GET" operation.
If the file exists, it will be overwritten.
https://bugzilla.gnome.org/show_bug.cgi?id=703229
get, simple-httpd, and simple-proxy are more example code than test
programs, so move them into a separate directory.
Also, remove "dns", which was once a sort-of test of SoupAddress, but
is now just a redundant sort-of test of GResolver.