summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Replace SoupBuffer with GBytesPatrick Griffis2020-09-192-12/+12
|
* Remove SoupSessionAsyncPatrick Griffis2020-09-191-14/+6
|
* Remove deprecated proxy APIsPatrick Griffis2020-09-191-1/+4
|
* examples/get: pull a leak with the GOptionContextClaudio Saavedra2019-09-111-2/+4
|
* meson: Check TLS support only when external glib dependency is availableSeungha Yang2019-05-031-1/+1
| | | | meson does not allow compile with internal dependency (i.e., fallback dependency)
* Remove the Autotools build system filesTomas Popela2019-01-111-16/+0
| | | | | | | The main build system of the libsoup project is now Meson. Also remove the TAP support files. Closes: #12
* examples/simple-httpd.c: Fix handling of directoriesMooffie2018-07-011-1/+6
| | | | | | | | | | | | A bug introduced in commit 53a3dd24e5b572fafa79e7cc4cdc4eb17d193e3e (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
* Address review comments from Iñigo MartínezTomas Popela2018-04-111-6/+12
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=784212#c31
* Add Meson port files to the Autotools EXTRA_DISTTomas Popela2018-04-111-0/+2
| | | | | So it's possible to build with the Meson from the tarball that is produced by Autotools
* Initial meson supportSebastian Dröge2018-04-111-0/+8
| | | | | | 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.
* Only set "ssl-ca-file" in examples/get if provided on the commandlineSebastian Dröge2017-07-041-1/+2
| | | | | | | Otherwise the default system CA database is not going to be used if nothing is given on the commandline, and certificate verification fails. https://bugzilla.gnome.org/show_bug.cgi?id=784259
* Don't leak the SoupMessage and SoupSession objects in the examples/get utilityTomas Popela2017-06-221-0/+3
|
* examples/get: Add TLS client certificate supportColin Walters2016-07-121-0/+75
| | | | | | | | 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
* examples/simple-httpd.c: Make it work better for WindowsChun-wei Fan2016-03-151-16/+16
| | | | | | | Replace dirent calls and POSIX file API calls with GLib calls, so that the code will build and work better across different platforms. https://bugzilla.gnome.org/show_bug.cgi?id=758759
* Bug 587145 - Add GSS-Negotiate supportGuido Guenther2016-03-141-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <tpopela@redhat.com> Co-Authored-By: David Woodhouse <dwmw2@infradead.org> Co-Authored-By: Dan Winship <danw@gnome.org>
* Mark old session-(async|sync) methods as deprecatedIgnacio Casal Quinteiro2015-11-221-1/+1
| | | | | | | | | 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
* soup-server: add soup_client_context_steal_connection()Dan Winship2015-03-011-1/+212
| | | | | | | 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.
* soup-server: add new-and-improved APIsDan Winship2014-05-022-43/+51
| | | | | | | | | | Add new APIs to SoupServer, allowing multiple listening sockets on a server, and listening on an existing fd or GSocket, and with better error handling. https://bugzilla.gnome.org/show_bug.cgi?id=522519 https://bugzilla.gnome.org/show_bug.cgi?id=561547 https://bugzilla.gnome.org/show_bug.cgi?id=621138
* examples: fix simple-proxyDan Winship2014-01-071-1/+1
| | | | startup error checking was busted, making this not even work
* get: fix to not send the request twiceDan Winship2013-08-181-3/+2
|
* examples: port get to plain SoupSessionDan Winship2013-07-131-4/+16
|
* build: use AM_CPPFLAGS rather than INCLUDESDan Winship2013-07-101-1/+1
| | | | to make automake 1.13 happy
* [examples] "get" uses -o to save to a fileAndres Gomez2013-07-031-4/+23
| | | | | | | | | | 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
* [examples] Added SoupLogger to get exampleAndres Gomez2013-07-031-29/+19
| | | | | | | | Now, instead of printing the debug information manually we use SoupLogger for this with the "-d" flag. https://bugzilla.gnome.org/show_bug.cgi?id=703231
* examples: use GOptionContext (finally)Dan Winship2013-02-233-144/+146
|
* examples: move examples from tests/ to examples/Dan Winship2013-02-234-0/+683
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.